bladeRF/host/libraries/libbladeRF_bindings/python/bladerf
realmadsci ac7456ebed Python bindings: Fix get_gain_modes
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.
2022-04-03 19:35:01 -07:00
..
__init__.py host: python: Python packaging (#18) 2018-03-26 12:26:46 -04:00
_bladerf.py Python bindings: Fix get_gain_modes 2022-04-03 19:35:01 -07:00
_cdef.py host: python: add support for BLADERF_FORMAT_PACKET_META 2020-12-23 20:29:39 -08:00
_tool.py host: python: bladerf-tool: don't print gain mode if tx channel 2018-12-21 16:38:50 -05:00