Commit graph

248 commits

Author SHA1 Message Date
Rey Tucker
9bab63979b host: libbladeRF: add bladeRF2 capabilities, bladerf_get_channel_count
Squashed commit of the following:

commit d12066467c99bdbb7048285c0616db70ff383e2f
Merge: 3493a3b3c 2770a187a
Author: Rey Tucker <rey.tucker@nuand.com>
Date:   Tue Sep 19 13:56:34 2017 -0400

    Merge branch 'master' into rtucker-host-capabilities

commit 3493a3b3c1ab17ea4a616bbf8b543108e5defeca
Author: Rey Tucker <rey.tucker@nuand.com>
Date:   Thu Sep 14 13:40:33 2017 -0400

    host: libbladeRF: add bladerf_get_channel_count call

    This will return the number of channels available on a given hardware.

commit 609bfc7d4bc4bb1fea09164de184b94fe9f691da
Author: Rey Tucker <rey.tucker@nuand.com>
Date:   Thu Sep 14 13:37:04 2017 -0400

    host: libbladeRF/board: add FW capabilities for bladeRF 2

    Not entirely certain we need a capability flag for bladeRF 2 support in
    the firmware, but now there is one.

commit 12f6d61c0c04df1a52d7552ff3ee45f6faaaf6b1
Author: Rey Tucker <rey.tucker@nuand.com>
Date:   Thu Sep 14 13:35:11 2017 -0400

    host: libbladeRF/board: move capabilities to board.h

    Keeping them common between boards seems prudent for now.
2017-12-21 12:55:07 -05:00
Rey Tucker
6662cf40f2 host: libbladeRF: backwards compat for gain mode
older libbladeRF had BLADERF_GAIN_AUTOMATIC, so aliasing it to
BLADERF_GAIN_DEFAULT to avoid mysterious code breakage
2017-12-21 12:55:07 -05:00
Rey Tucker
c677516ab3 host: libbladeRF: add bladerf_get_gain_modes
Squashed commit of the following:

commit b06ffe841dc5e8cc91cfa743213979be49843b83
Author: Rey Tucker <rey.tucker@nuand.com>
Date:   Fri Sep 15 13:46:59 2017 -0400

    host: libbladeRF: forgot bladerf_get_gain_modes implementation

commit ef115599d0baea3ae27136059aedadaaf67f5f43
Author: Rey Tucker <rey.tucker@nuand.com>
Date:   Fri Sep 15 12:15:07 2017 -0400

    libbladeRF: add bladerf_get_gain_modes

    bladerf_get_gain_modes provides a pointer to an array of gain modes
    supported by the device, including human-readable names.
2017-12-21 12:55:07 -05:00
Rey Tucker
11806609ec libbladeRF/bladerf2: add A9 FPGA support 2017-12-21 12:55:07 -05:00
Rey Tucker
62857242b4 libbladeRF: bladerf_enable_module MIMO support
Change bladerf_enable_module to expect a bladerf_channel instead of a
bladerf_direction.  This should have no impact on existing applications:
BLADERF_RX and BLADERF_TX map to BLADERF_CHANNEL_RX(0) and
BLADERF_CHANNEL_TX(0) respectively.

Modify bladerf2_enable_module to set the expected RFFE control reg bits.
2017-12-21 12:55:07 -05:00
Rey Tucker
81fc77760d libbladeRF: add prototypes for MIMO (de)interleave 2017-12-21 12:55:06 -05:00
Rey Tucker
4dee30d2b2 libbladeRF: constify samples param on sync_tx
Since we aren't going to touch any of the data in the sample buffer on
TX, consting it is a good thing to do.
2017-12-21 12:55:06 -05:00
Rey Tucker
ae0c803f39 libbladeRF: add bladerf_adf4002_{read,write} accessors 2017-12-21 12:55:06 -05:00
Ryan Tucker
a378f6a037 bladerf2: handle invalid gain changes gracefully
Squashed commit of the following:

commit da6b51bbe208e5beaeb5de7302177acd10eb096e
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Thu Jul 20 14:16:23 2017 -0400

    libbladeRF: improve wording for clarity

commit 0b14959d6192f687f7c584e0c3d66d83b814530a
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Thu Jul 20 14:16:02 2017 -0400

    bladerf2: general error message improvements

commit 36d6ba728bfc17cf6461fe131ae3af5c2e4c4f1b
Author: Ryan Tucker <ryan.tucker@nuand.com>
Date:   Thu Jul 20 14:05:56 2017 -0400

    bladerf2: warn on invalid gain stage but don't fail

    Some software blindly sets gain stages without checking first, e.g. gqrx
    when switching between bladeRF 1 and bladeRF 2. This will avoid crashes
    in those cases.
2017-12-21 12:55:05 -05:00
Ryan Tucker
2effd65b01 libbladeRF: fix handling of tx gain on bladerf2 2017-12-21 12:55:04 -05:00
Rey Tucker
0c386f45c1 libbladeRF/bladerf2: add initial FPGA size data
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
2017-12-21 12:55:04 -05:00
Ryan Tucker
8e98542d95 libbladeRF: doc/formatting fixes
Constrained everything to within 80 characters width, did some
doxygen-oriented cleanup, corrected some misleading information
2017-12-21 12:55:04 -05:00
Ryan Tucker
a3be0b955d host: libbladeRF: add get_gain_mode, set_gain_mode
On boards with hardware AGC, permit client applications to query and
change the gain mode (e.g. manual, automatic fast attack, etc).
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
53e3bf6c2c libbladeRF: update docstring for enable module method 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
9260495ca9 libbladeRF: move dc/phase/gain correction from bladerf1-specific to generic 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
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
1d41ea5505 libbladeRF: update param directions and returns in api docs 2017-12-21 12:55:02 -05:00
Vanya A. Sergeev
8fa0710227 libbladeRF: move trim dac read/write from bladerf1-specific to generic 2017-12-21 12:55:01 -05:00
Vanya A. Sergeev
7ac2caf419 libbladeRF: move get vctcxo trim from bladerf1-specific to generic 2017-12-21 12:55:01 -05:00
Robert Ghilduta
d8de9f4303 Add bladerf_ad9361_read() and bladerf_ad9361_write() functions 2017-12-21 12:55:00 -05:00
Vanya A. Sergeev
e63af470b9 libbladeRF/bladerf: make rx mux enumerated values generic 2017-12-21 12:54:59 -05:00
Vanya A. Sergeev
2a4c8998a7 libbladeRF: move set/get loopback from bladerf1-specific to generic 2017-12-21 12:54:59 -05:00
Vanya A. Sergeev
9e371cc375 libbladeRF: move set tuning mode from generic to bladerf1-specific 2017-12-21 12:54:59 -05:00
Vanya A. Sergeev
97728b06f3 libbladeRF: move get/set sampling from generic to bladerf1-specific 2017-12-21 12:54:59 -05:00
Vanya A. Sergeev
348bbd3dc9 libbladeRF: move get/set correction from generic to bladerf1-specific 2017-12-21 12:54:59 -05:00
Vanya A. Sergeev
4ff2639e9d libbladeRF: add not initialized error code 2017-12-21 12:54:59 -05:00
Vanya A. Sergeev
a137aefba5 libbladeRF: add rf port methods 2017-12-21 12:54:58 -05:00
Vanya A. Sergeev
bccd7e19f7 libbladeRF: migrate api to 64-bit frequency 2017-12-21 12:54:58 -05:00
Vanya A. Sergeev
80a0ec0658 libbladeRF: add get board name method 2017-12-21 12:54:58 -05:00
Vanya A. Sergeev
54296975ed libbladeRF: add get range methods for sample rate, bandwidth, frequency 2017-12-21 12:54:58 -05:00
Vanya A. Sergeev
ad77aa9a8e libbladeRF: add generic gain methods 2017-12-21 12:54:58 -05:00
Vanya A. Sergeev
b4590950f4 libbladeRF: add bladerf_stream_layout concept for mimo streams 2017-12-21 12:54:58 -05:00
Vanya A. Sergeev
9062b66d9c libbladeRF: migrate bladerf_module to bladerf_channel and bladerf_direction 2017-12-21 12:54:58 -05:00
Vanya A. Sergeev
823f15da5a libbladeRF: reorganize generic from board specific functions in public API 2017-12-21 12:54:58 -05:00
Robert Ghilduta
df369b01f4 libbladeRF: bump API version and add changelog for v1.9.0 2017-12-07 21:26:28 -08:00
Robert Ghilduta
1434ae89b8 libbladeRF: Updated to v1.8.0
libbladeRF v1.8.0 introduces support for the Automatic Gain Control.
2017-07-06 08:27:47 -07:00
Robert Ghilduta
f1ef088f2b libbladeRF: add gain_mode settings to control AGC
bladerf_set_gain_mode() and bladerf_get_gain_mode() were added to allow for
control of the bladeRF's AGC.
2017-07-05 08:59:09 -07:00
Robert Ghilduta
905c65c2a5 libbladeRF: add AGC GPIO bit
Bit 12 controls the AGC
2017-07-05 08:59:08 -07:00
Jon Szymaniak
587e4ac5c2 libbladeRF: Updated to v1.7.2 2016-06-29 11:55:21 -04:00