* host: libbladeRF-bindings/python: general updates
This commit adds the following changes:
Overall:
* Adds an _import_header.py tool, which parses libbladeRF.h (or other
headers) into a convenient string ready for ffi.cdef
* Passes pycodestyle and pyflakes checks cleanly
bladerf.py:
* Various new class wrappers for enums, etc
* Subclassed exceptions (e.g. bladerf.UnsupportedError will be raised if
libbladeRF returns BLADERF_ERR_UNSUPPORTED)
* Added functions for bootloader firmware recovery
* More comments all around
* Use properties instead of getters/setters:
>>> b = bladerf.BladeRF()
>>> # OLD:
>>> b.get_devinfo()
>>> b.set_clock_select(ClockSelect.External)
>>> # NEW:
>>> b.devinfo
>>> b.clock_select = ClockSelect.External
* Added more functions, particularly for bladeRF 2
* Added a Channel class, for channel-specific properties:
>>> b = bladerf.BladeRF()
>>> ch = d.Channel(bladerf.CHANNEL_RX(0))
>>> ch.frequency = 2.45e9
bladerf-tool.py:
* General changes to use properties instead of get_/set_ functions
* Also updated to use subclassed exceptions from bladerf.py
* Dump a lot more info with the 'info' command
* Look for bootloader devices with the 'probe' command
* Added 'recover_fw' command, for firmware recovery
* Moved from single-channel paradigm to MIMO paradigm on 'rx', 'tx'
* host: python: implement more methods, various fixes
Implement loopback, rx_mux, ad9361_temperature, and adf4002_* functions
Fix set_clock_select type handling
Use 4-space indent in cffi block, for placating text editors
Add -v option to bladerf-tool.py info, to clean things up a bit
Assume an A4 for now.
This lets one stash hostedxA4.rbf into <install_prefix>/share/Nuand/bladeRF
and have it Do The Right Thing for autoloading.
Full implementation will depend on SPI flash, etc