* add python command to print gain table values to steal from nuand
* add gain table loading to bladeRF-cli util with load_gain command
* fix command filename in cmake
* add print function for gain tables to confirm loading
* add doc saying limitation of new cmd to rx0/tx0
Despite documentation to the contrary (https://github.com/Nuand/bladeRF/blob/master/host/libraries/libbladeRF/include/libbladeRF.h#L902), you should *not* call bladerf_get_gain_modes with NULL to get the number of modes to expect.
Just call it with a `struct bladerf_gain_modes **` and let it point you at the internal structure which lists the applicable modes, and then use its return value as the length.
These functions were previously constructing a `bladerf_range *` and a `bladerf_range **` which pointed at it, and assuming that the `bladerf_get_*_range()` functions would write into the `bladerf_range *` that we provided.
However, those functions actually just point the `bladerf_range **` at their internal structure which already exists.
This patch corrects this wrong assumption and allows these functions to return valid range info.
The bladeRF-micro has an option to use either its onboard VCTCXO or an
external 38.4 MHz clock as the clock source for components on the
board. This change addresses some ambiguity in the naming of the onboard
option by renaming it from 'vctcxo' to 'onboard'.
The valid options are now:
1. onboard
2. external
* libbladeRF: add typedefs for common parameter types
This adds typedefs for, and changes libbladeRF.h to use said typedefs
for, the following:
bladerf_gain -> int
bladerf_sample_rate -> unsigned int
bladerf_bandwidth -> unsigned int
bladerf_frequency -> uint64_t
bladerf_timestamp -> uint64_t
bladerf_correction_value -> int16_t
* host: libbladeRF: add bladerf_ad9361_get_ctrl_out
Adds functionality to read the CTRL_OUT pins from the AD9361 RFIC.
* host: bladeRF-cli: add print for AD9361 CTRL_OUT
* host: python: add support for ad9361_ctrl_out