Ryan Tucker
5bddc8da29
host: bladerf2: init ina219 before ad9361
...
This is a workaround for persistent USB timeouts after AD9361
init when CMAKE_BUILD_TYPE=Release.
If DEBUG is defined, ad9361_verify_fir_filter_coef reads in all
the FIR filter coeffs from the 9361 and makes sure they are as
expected. If it is NOT defined, it skips this check.
For reasons unknown, if ina219_init is called immediately after
ad9361_ensm_restore_prev_state (the last thing that happens before
ad9361_verify_fir_filter_coef in ad9361_load_fir_filter_coef),
libusb times out and everything goes terribly wrong. Adding a
usleep(100) is sufficient to avoid this.
There does not seem to be a reason why this should make any
difference whatsoever, but this seems to do the trick.
2017-12-21 12:55:04 -05:00
Ryan Tucker
6b2b5164a8
host: ina219: add error logging messages
2017-12-21 12:55:04 -05:00
Ryan Tucker
9c8187e000
host: nios_access.c: debugging/error-logging improvements
2017-12-21 12:55:04 -05:00
Ryan Tucker
59b7559592
host: bladerf2_init: add log_errors to early returns
...
There are a number of places where bladerf2_init can return early
from a failed initialization attempt. Log a message with error
priority when it happens, to ease troubleshooting.
2017-12-21 12:55:04 -05:00
Vanya A. Sergeev
03ee0cd2a4
libbladeRF/bladerf2: add fixmes for future MIMO configuration
2017-12-21 12:55:04 -05:00
Ryan Tucker
65f19e30bf
libbladeRF: add ad9361 bist loopback mode
2017-12-21 12:55:04 -05:00
Vanya A. Sergeev
64a69f569b
libbladeRF: update docs and examples with new API
2017-12-21 12:55:04 -05:00
Vanya A. Sergeev
53e3bf6c2c
libbladeRF: update docstring for enable module method
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
8e62d0aad6
libbladeRF/backend: fix field order in dummy backend function table
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
e4f349a2a5
libbladeRF/backend: fix two function prototypes in dummy backend
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
6d1b456d05
libbladeRF: clean up API docs
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
768ddd9364
libbladeRF: strip lms mentions from docs for generic API
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
36b3233c3b
libbladeRF: add union + anon struct to quick tune structure for bladeRF2
...
for future implementation.
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
4527d92e89
libbladeRF: split bladerf 1 & 2 specific APIs into their own header files
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
ebcffdd11c
libbladeRF/backend: add nios legacy dummy read/write trigger methods
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
90616767c7
libbladeRF/backend: remove unused id field from usb function table
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
55f0654b3a
libbladeRF/backend: fix field order in usb driver structure
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
61d7df0cb7
libbladeRF/backend: fix field order in usb backend function tables
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
3c61ce4b55
libbladeRF/bladerf2: fix field order in board function table
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
7266ccc868
libbladeRF/bladerf1: fix field order in board function table
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
790b6352c7
libbladeRF/bladerf2: use portable macro for struct designated initializers
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
07f2246a38
libbladeRF/bladerf1: use portable macro for struct designated initializers
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
a5b3a012cd
libbladeRF/bladerf2: implement set correction method
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
ba3f38d1fb
libbladeRF/bladerf2: implement get correction method
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
eaa8e62260
libbladeRF/bladerf2: remove unused device state calibrated
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
fa7dda55c7
libbladeRF/bladerf1: remove unused device state calibrated
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
0db3fa1c73
libbladeRF/bladerf2: fix error handling for ad9361 api func in set loopback
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
02a26740c1
libbladeRF: move common fx3 firmware methods from bladerf1 to top-level
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
9260495ca9
libbladeRF: move dc/phase/gain correction from bladerf1-specific to generic
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
0f9fbef33e
libbladeRF/bladerf2: mark cancel scheduled retunes method static
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
532534d404
libbladeRF/bladerf1: mark cancel scheduled retunes method static
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
337a084061
libbladeRF/board: rearrange get vctcxo trim with vctcxo trim dac accessors
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
8a42e206f7
libbladeRF: move vctcxo tamer mode from bladerf1-specific to generic
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
5d488173d0
libbladeRF: move config gpio accessors from bladerf1-specific to generic
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
51607bb327
libbladeRF: move trigger control accessors from bladerf1-specific to generic
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
fec3595463
libbladeRF: add doc group for low-level vctcxo trim dac methods
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
660fb291d2
libbladeRF: move spi flash accessors from bladerf1-specific to generic
2017-12-21 12:55:03 -05:00
Vanya A. Sergeev
d8c715420d
libbladeRF/bladerf2: fix locking in trim dac read/write
...
also mark the method implementations static.
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
d63471310d
libbladeRF/bladerf1: fix locking in trim dac read/write
...
also mark the implementations static.
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
2dab2a4466
libbladeRF/board: improve heading comment for vctcxo trim dac access methods
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
e54b76cbb3
libbladeRF: add get tuning mode method
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
78f8140655
libbladeRF: move set tuning mode from bladerf1-specific to generic
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
cc57513408
libbladeRF/bladeRF2: move fpga version & capabilities checks to initialize
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
e3e22f5a8f
libbladeRF/bladeRF1: move fpga version & capabilities checks to initialize
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
1d41ea5505
libbladeRF: update param directions and returns in api docs
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
ea94f58cfa
libbladeRF/driver: fix const correctness of fx3_fw_entry_point()
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
a0fd5994c6
libbladeRF/bladerf1: fix const correctness of dc_cal_tbl_load()
2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
d795aabaa4
libbladeRF: improve consistency of include guards
2017-12-21 12:55:01 -05:00
Vanya A. Sergeev
898b069e02
libbladeRF/bladerf2: use ad9361_deinit() to deinitialize ad9361
2017-12-21 12:55:01 -05:00
Vanya A. Sergeev
8c8ed1b0cc
libbladeRF/driver: add ad9361_deinit() to ad9361 driver
2017-12-21 12:55:01 -05:00