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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _bladerf.py | ||
| _cdef.py | ||
| _tool.py | ||