the `bladerf_channel` enum strings because
`bladerf_channel` is declared as an int, rather than
as an enum.
To resolve this, add a new static method
`bladeRF.str2ch` to handle the conversion
and use it to wrap appropriate `obj.channel`
and `obj.module` arguments in function calls.
Further, replace enum strings
`BLADERF_CORR_LMS_DCOFF...` --> `BLADERF_CORR_DCOFF...`
and
`BLADERF_CORR_FPGA_PHASE...` --> `BLADERF_CORR_PHASE...`
because MATLAB doesn't pick up the #define
which does so for the C code.
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.
Note: an erroneous python_v1.0.2 tag was created, which is basically
identical to this, but had the wrong version number. I apologize for any
confusion this may cause.
fixes:
- Script will now look in the same dir as the input file
(e.g. ../../../libbladeRF/include/) for other headers. This
is specifically to let it find bladeRF1.h and bladeRF2.h
more expeditiously.
- Create a stoplist of lines to not include in the output.
This largely consists of typedefs from pycparser's fake
system header files.
v1.0.1 (2018-08-24)
--------------------------------
This version is intended for use with libbladeRF v2.0.1.
Changes:
* host: libbladeRF: Rename clock select option
v1.0.1 (2018-08-24)
--------------------------------
This version is intended for use with libbladeRF v2.0.1.
Changes:
* host: libbladeRF: Rename clock select option
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