GNU Radio appears to utilize some RT signals, which was causing
bladerf_read_c16 to fail out. These calls now retry so long
as the only error encountered is EINTR.
A last_errno field has been added to struct bladerf to assist
in debugging. We may want to either remove this or make it
(and its accesses/updates) conditionally compiled.
The value of x was being returned as 0 when the FPGA was either not
loaded or when the LMS was still in reset. Catch this condition and
return back an invalid parameter.
Credit where credit is due -- All the code here is basically
copy/paste from Robert's earlier test code, with some added error
checks and debug output.
The firmware loading now checks the write return value and
performs partial writes as needed.
Items that need to be revisited are the sanity checks on file
sizes. In the future I plan to implement a "bladeRF Image" format
that will wrap size and a hash around a firmware/bitstream. These
checks will probably go into that code.
This commit introduces LMS library support for controlling the LimeMicro
LMS6002D transceiver. The LMS library functions were originally developed by
bpadalino.
This is the first commit in a set of upcoming changes that will
move functionality from simple_load and upgrade_firmware into the
libbladeRF library and provide access to these routines through a
bladeRF cli.
Don't merge from jon-dev until I get this straightened out, or
you'll be left with something possibly unusable...
Fixed bladerf_get_device_list return value for condition where no
devices are attached. (Now returns 0, previously returned -1).
Also added a missing catch of a malloc failure and now return appropriate
error value.
Jon's TODO items in the following commits will include:
- Implementing the init/deinit functions
- Implementing the device info and programming functions
- Integrating ../app items into this lib
- Adding libbladerf support to gr-osmosdr