Commit graph

2,501 commits

Author SHA1 Message Date
Ryan Thompson
ecbfb99b8a libbladeRF: log sample rate ranges on failed sample rate assignment 2025-04-09 23:17:40 -07:00
Ryan Thompson
50eaaa6e0c libbladeRF: added direction to transfer timeout errors 2025-04-09 23:17:40 -07:00
Ryan Thompson
90bd8bb9cc doc: update sync config buffer size description 2025-04-09 23:17:40 -07:00
Ryan Thompson
234fcfeebf doc: added Doxygen support for light and dark modes 2025-04-09 23:17:40 -07:00
Ryan Thompson
0e2a978554 doc: Doxygen config update v1.8.8 > v1.9.8
└> doxygen -u Doxyfile.in
warning: Tag 'TCL_SUBST' at line 247 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Tag 'COLS_IN_ALPHA_INDEX' at line 1059 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Tag 'HTML_TIMESTAMP' at line 1194 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Tag 'FORMULA_TRANSPARENT' at line 1475 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Tag 'LATEX_SOURCE_CODE' at line 1749 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Tag 'DOCBOOK_PROGRAMLISTING' at line 1911 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Tag 'PERL_PATH' at line 2090 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Tag 'CLASS_DIAGRAMS' at line 2103 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Tag 'MSCGEN_PATH' at line 2112 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Tag 'DOT_FONTNAME' at line 2154 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Tag 'DOT_FONTSIZE' at line 2161 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Tag 'DOT_TRANSPARENT' at line 2372 of file 'Doxyfile.in' has become obsolete.
         This tag has been removed.
warning: Changing CLASS_GRAPH option to TEXT because obsolete option CLASS_DIAGRAM was found and set to NO.
2025-04-09 23:17:40 -07:00
Ryan Thompson
45e2d8f128 test: bump python requirements.txt versions 2025-04-09 23:17:40 -07:00
Ryan Thompson
79785afcf1 bladeRF-cli: added sc16q11 packed format support 2025-04-09 23:17:40 -07:00
Ryan Thompson
b774f45d38 bladeRF-cli: added sc16q11 packed format support 2025-04-09 23:17:40 -07:00
Ryan Thompson
72db17fa2c libbladeRF: fix packet format async stream to bytes
This fixes the sync interface packet format misalignment when sync
config assumes the sync config buffer is in bytes.
2025-04-09 23:17:40 -07:00
Ryan Thompson
2d2904e880 libbladeRF: added bladerf_format_to_string function 2025-04-09 23:17:40 -07:00
Ryan Thompson
0917d0780b libbladeRF: support for smaller GPIF buffer FPGA and FX3 versions 2025-04-09 23:17:40 -07:00
Ryan Thompson
0b00acac09 libbladeRF: error on GPIF buffer size mismatch between FX3 and HDL
While retaining the original non-fail condition for mismatches, we
throw an error for FPGA and FX3 images that have incompatible buffer
sizes. This prevents operational issues when mixing firmware versions
that support larger USB transfer buffers with FPGA versions that don't,
and vice versa.
2025-04-09 23:17:40 -07:00
Ryan Thompson
d586de33c1 libbladeRF: added legacy GPIF buffer size support for FW < v2.5.0 2025-04-09 23:17:40 -07:00
Ryan Thompson
b086beee7e libbladeRF: added error print for set frequencies out of range 2025-04-09 23:17:40 -07:00
Ryan Thompson
bfadb91e06 libbladeRF: fixed rx meta packet timestamp and flags assignment 2025-04-09 23:17:40 -07:00
Ryan Thompson
899cd2274f libbladeRF: refactored bladerf_enable_feature
These changes make it much easier to add features to libbladeRF.
The nested ifs have been restructured for a switch and errors leverage
the goto error. The device handle now is also null checked. The mutex
lock has also been removed.

Regression test passed.
2025-04-09 23:17:40 -07:00
Ryan Thompson
0b54c576e3 host: NULL_CHECK made variadic 2025-04-09 23:17:40 -07:00
Ryan Thompson
16c184b6dc test: added fx3_gpif_iq_packed_tb to regression test 2025-04-09 23:17:40 -07:00
Ryan Thompson
b2d9f969a5 bladeRF-cli: added sc16q11 packed mimo tx example 2025-04-09 23:17:40 -07:00
Ryan Thompson
709d45d853 bladeRF-cli: added sc16q11 packed siso tx example 2025-04-09 23:17:40 -07:00
Ryan Thompson
c407de2c9f bladeRF-cli: added sc16q11 packed mimo rx example 2025-04-09 23:17:40 -07:00
Ryan Thompson
3ae66b49a1 bladeRF-cli: added sc16q11 packed siso rx example 2025-04-09 23:17:40 -07:00
Ryan Thompson
6eab5f6a5e bladeRF-cli: added sc16q11 packed format support 2025-04-09 23:17:40 -07:00
Ryan Thompson
b655422a71 bladeRF-cli: replace cli state member bit_mode_8bit with sample_format
Instead of relying on a bit_mode boolean assignment, we can directly
rely on a bladerf_format state member.
2025-04-09 23:17:40 -07:00
Ryan Thompson
59b68f7bf2 bladeRF-cli: sample format tracked by cli state
This will allow us to track the sample format across the cli and can
replace the bit_mode cli state member.
2025-04-09 23:17:40 -07:00
Ryan Thompson
5ff41748aa libbladeRF: added sc16q11 packed error when initializing async stream
BLADERF_FORMAT_SC16_Q11_PACKED is only supported with the synchronous
interface.
2025-04-09 23:17:40 -07:00
Ryan Thompson
ff1b3d4e97 libbladeRF: added sc16q11 packed tx support 2025-04-09 23:17:40 -07:00
Ryan Thompson
79cae1e87f libbladeRF: added sc16q11 packed sample format
libbladeRF ingests SC12 Q11 samples and expands them to SC16 Q11 before
filling the end buffer. The trade-off is CPU cycles for the 12b to 16b
conversion.
2025-04-09 23:17:40 -07:00
Ryan Thompson
04c1215e02 libbladeRF: test: added packet test 2025-04-09 23:17:40 -07:00
Ryan Thompson
bdd4f39a3d fx3_firmware: rev libbladeRF, hdl, and fx3 for 2048 sample gpif buffers
FX3 GPIF buffers set to 2048 samples and number of buffers reduced to
11 per dma channel. This substantially increases the theoretical USB
SuperSpeed throughput from roughly 228MB/s to 356MB/s.

$ make test_libbladeRF
[       OK ] libbladeRF.scheduled_retune (19755 ms)
[----------] 29 tests from libbladeRF (308802 ms total)

[----------] Global test environment tear-down
[==========] 29 tests from 1 test suite ran. (308802 ms total)
[  PASSED  ] 29 tests.
2025-04-09 23:17:40 -07:00
Ryan Thompson
d0d6d97eb4 doc: bladeRF-cli: updated sample limit to match buffer limit 2025-04-09 23:17:40 -07:00
Ryan Thompson
a0937cc50c doc: updated buf size limit in examples and tests 2025-04-09 23:17:40 -07:00
Ryan Thompson
a62c1d4903 libbladeRF: support and clamp byte alignment to larger GPIF buffer size
This change also includes a refactor of the redundant format to sample
size conversions found within the synchronous and asynchronous
interfaces.
2025-04-09 23:17:40 -07:00
Ryan Thompson
05ede8f541 fx3_firmware: increase DMA buffer sizes for USB throughput bottleneck
$ make test_hdl
[----------] Global test environment tear-down
[==========] 63 tests from 2 test suites ran. (381209 ms total)
[  PASSED  ] 63 tests.
[100%] Built target test_hdl
2025-04-09 23:17:40 -07:00
Ryan Thompson
465ea0a49e libbladeRF: test: added streaming test
The streaming test allows for cross testing between MIMO, SISO, TX, RX, meta,
and non-meta configurations.

Example: TX a CW at 50MSPS and at a frequency of (915MHz+50MHz/16) with meta enabled
./output/libbladeRF_test_streaming -te -s 50M

Example: TX and RX at 25MSPS and at a frequency of (915MHz+25MHz/16) without meta enabled
./output/libbladeRF_test_streaming -tr -s 25M
2025-04-09 23:17:40 -07:00
Ryan Thompson
a8481c2af7 doc: added packet length warning for BLADERF_FORMAT_PACKET_META
A packet length of (n*256-4) DWORDs will cause the synchronous
buffer it's filled into to indefinitely persist.
2025-04-09 23:17:40 -07:00
Ryan Thompson
73e78639aa doc: fix API sections menu item with Doxygen 1.9.8
The API sections aren't stored as modules anymore. They're topics.
Error likely introduced at doxygen commit: 6d80fc7e5
2025-04-09 23:17:40 -07:00
Ryan Thompson
65cdf88994 bladeRF-power: fixed ncurses dep
On macOS, sometimes the ${CURSES_LIBRARIES} variable provided by
 find_package(Curses) doesn't correctly include all the necessary linkage
 information, especially when using wide character support. By explicitly adding
 ncurses to the link libraries for Apple platforms, we ensure that the linker
 can find all the required symbols.
2025-04-09 23:17:33 -07:00
Ryan Thompson
179fe7c600 hdl: corrected bladeRF 1.0 FPGA version number 2025-01-06 13:36:48 -06:00
Asa Zernik
cbc3d30a27 libbladeRF: Return error code instead of asserting in version_check
Specifically, when there's a missing compat table entry. All callers
specify that they want to be forgiving of version mismatches, so this
seems in the spirit of the call tree.

Ran into this error when playing with a custom-loaded FPGA; if I had
flashed the FPGA instead of simply loading it, this could have bricked
the blade (or at least forced me into a very involved recovery process).
2024-08-13 11:43:21 +03:00
Ryan Thompson
26e91a550e libbladeRF: test: fix gain compare dev init 2024-08-10 18:20:33 -07:00
Ryan Thompson
e1a5c9260d libbladeRF: fix calibration load check for get_gain_calibration
Fixes #981
2024-08-10 18:16:51 -07:00
Ryan Thompson
d746811bd9 cmake: added Clang alternatives to compiler configurations 2024-08-10 18:16:51 -07:00
Ryan Thompson
f81b82aa8e libbladeRF: bump to version 2.5.1
Introduces bladeRF-power cli tool and gain calibration functionality.
2024-08-08 00:15:01 -05:00
Ryan Thompson
b98f385fb4 bladeRF-power: added sample rate assignment 2024-08-08 00:15:01 -05:00
Ryan Thompson
5f64e3f1c4 bladeRF-power: set test gain control to manual when TX 2024-08-07 15:35:55 -05:00
Ryan Thompson
94c08ebc9f bladeRF-power: added channel select 2024-08-07 15:35:55 -05:00
Ryan Thompson
68f396a102 bladeRF-power: added ascii text art for power measurements
█████╗    ███████╗       ██████╗     ██╗         ██████╗ ██████╗ ███╗   ███╗
           ██╔══██╗   ╚════██║       ╚════██╗   ███║         ██╔══██╗██╔══██╗████╗ ████║
███████╗   ╚██████║       ██╔╝        █████╔╝   ╚██║         ██║  ██║██████╔╝██╔████╔██║
            ╚═══██║      ██╔╝        ██╔═══╝     ██║         ██║  ██║██╔══██╗██║╚██╔╝██║
            █████╔╝     ██╔╝      ██╗███████╗    ██║         ██████╔╝██████╔╝██║ ╚═╝ ██║
            ╚════╝      ╚═╝       ╚═╝╚══════╝    ╚═╝         ╚═════╝ ╚═════╝ ╚═╝     ╚═╝
2024-08-07 15:35:55 -05:00
Ryan Thompson
818082947a bladeRF-power: cli: added stderr message viewer 2024-08-07 15:35:55 -05:00
Ryan Thompson
eff35dd799 bladeRF-power: cli: display warning if bladeRF-power window is too small
This actively checks if the window is too small and will provide a
warning when data is being hidden.
2024-08-07 15:35:55 -05:00