Commit graph

1,344 commits

Author SHA1 Message Date
Robert Ghilduta
347fefe25a fix 2023-02-28 02:25:08 -08:00
Josef Gajdusek
0e0102898a libbladeRF: Fix correction setting on bladerf2
The TXA output of the AD9361 is actually the high-frequency one
(and the table of correction registers reflects this).
2023-02-27 23:49:27 -08:00
Rick Farina (Zero_Chaos)
12699a5cf8 use file(GLOB) instead of just globbing
While *.h works for make, it fails when using ninja.  This fixes the bug
using cmake's file(GLOB) as suggested by DarthGandalf in
gentoo-dev-help on irc

https://bugs.gentoo.org/800791
2023-02-16 22:22:33 -08:00
Robert Ghilduta
41ef634609 Revert "libbladeRF: update compatibility for FPGA v0.15.0 from libbladeRF 2.4.0 to 2.5.0"
This reverts commit 0c9b7dfd83.
2023-02-14 00:56:56 -08:00
Robert Ghilduta
ad9fdff1ca libbladeRF: bump to version v2.5.0
Introduces 8bit SC8_Q11 mode, and overclocking mode changes for bladeRF 2.0 micro.
This commits also fixes several bugs, including a locking bug in libbladeRF.
Help menus and abbreviation support expanded in bladeRF-cli.
2023-02-13 03:28:19 -08:00
Robert Ghilduta
0c9b7dfd83 libbladeRF: update compatibility for FPGA v0.15.0 from libbladeRF 2.4.0 to 2.5.0 2023-02-13 03:28:19 -08:00
Robert Ghilduta
df5b47e651 libbladeRF: rename bladerf_set_feature to bladerf_enable_feature 2023-02-13 03:28:19 -08:00
Ryan Thompson
ce979043b6 libbladeRF: oversample TX bandwidth limit extened
The TX bandwidth was previously constrained to 1/2 BW with the
oversample feature enabled. Now it reaches the whole bandwidth.
2023-02-13 03:28:19 -08:00
Ryan Thompson
a9d7824595 libbladeRF: 8bit format block for non-bladeRF 2.0 devices 2023-02-13 03:28:19 -08:00
Ryan Thompson
2291113eb1 libbladeRF: oversample gain limit implemented
It seems like the ad9361 resets the sample rate OC if the gain val > 11.
2023-02-13 03:28:19 -08:00
Ryan Thompson
8b47973dda libbladeRF: set feature blocks unsupported boards 2023-02-13 03:28:19 -08:00
Ryan Thompson
a37f40045e libbladeRF: BLADERF_FEATURE prefix prepended to feature names 2023-02-13 03:28:19 -08:00
Ryan Thompson
58bed4a3f3 libbladeRF: sync stream blocks 16bit format with OVERSAMPLE enabled 2023-02-13 03:28:19 -08:00
Ryan Thompson
28f3c7afb6 libbladeRF: get samplerate OC compensation move to libbladeRF
libbladeRF now doubles the returned sample rate when OVERSAMPLE feature
is enabled. This is necessary as the AD9361 is not self aware of its
overclock but libbladeRF is.
2023-02-13 03:28:19 -08:00
Ryan Thompson
da14b08f5c libbladeRF: OVERSAMPLE and DEFAULT sample rate guards implemented
Setting the sample rate will now check with the currently enabled 
feature. It tests if the sample rate is possible like before
and then checks if the currently enabled feature allows it.
2023-02-13 03:28:19 -08:00
Ryan Thompson
8903adb0ea libbladeRF: set samplerate OC compensation moved to libbladeRF
libbladeRF now halves the sent sample rate when OVERSAMPLE feature
is enabled. This is necessary as the AD9361 is not self aware of its
overclock but libbladeRF is.
2023-02-13 03:28:19 -08:00
Ryan Thompson
86a4cda5bd libbladeRF: AD9361 OC moved to libbladeRF
AD9361 OC moved from bladeRF-cli to libbladeRF
2023-02-13 03:28:19 -08:00
Ryan Thompson
eb1e7ed7e2 libbladeRF: feature set/get added to board 2023-02-13 03:28:19 -08:00
Ryan Thompson
1fa238d2d6 libbladeRF: features added to libbladeRF header 2023-02-13 03:28:19 -08:00
Ryan Thompson
711a1055b8 libbladeRF: carriage return included in libusb errors 2023-02-13 03:28:19 -08:00
Robert Ghilduta
bed0a3b8fb libbladeRF: add missing sc8 <-> sample conversion 2023-02-13 03:28:19 -08:00
Ryan Thompson
cf32dd6516 libbladeRF: synchronous stream accepts 8bit format
Although it is recognized, we're running into a segmentation fault because of it.
2023-02-13 03:28:19 -08:00
Ryan Thompson
aa3717a2af hdl: FPGA version update v0.15.0
FPGA version updated to v0.15.0 to represent the addition of 8bit mode.
2023-02-13 03:28:19 -08:00
Ryan Thompson
5b4f3cbbf8 libbladeRF: 8bit fpga version check implemented
async.c and sync.c throw an error if 8bit mode is detected with an fpga
version < 0.15.0
2023-02-13 03:28:19 -08:00
Robert Ghilduta
78affc3823 libbladeRF: add 8bit sample mode support 2023-02-13 03:28:19 -08:00
Robert Ghilduta
1da981fdd7 libbladeRF: define 8bit sample mode macro 2023-02-13 03:28:19 -08:00
Ryan Thompson
15b7d9c3b6 host: squashed cmake warnings
updated cmake requirement from 2.8 to 2.8.12
2023-02-13 03:28:19 -08:00
josh-sw-is-fun
11ba36daa3 libbladeRF: Use mutex around stream config/deconfig
Running test_digital_loopback on bladeRF A4, the TX/RX threads cause timeout
in nios_access.c with 'Failed to receive NIOS II response'.

Using libusb backend in docker Ubuntu 22.04 container.
2022-12-01 23:20:02 -08:00
Gregory R. Warnes
cca85d3f9c Merge PR773: Fix return value in error path, and write error message to log. 2022-04-03 19:52:12 -07:00
Milosch Meriac
1ebd2f708d Add support for xA5 W25Q64JV flash chip
- enable detection of WINBOND W25Q64JV chip
- add debug output to enable chip ID output for debugging future misdetection issues
2022-04-03 19:48:18 -07:00
Robert Ghilduta
8f8847f936 libbladeRF: bump to version v2.4.1
Fix packet mode bugs, and add support for bladeRF 2.0 micro xA5, and Wishbone
master NiOS peripheral.
2022-04-03 19:39:10 -07:00
Robert Ghilduta
d16046acf3 hdl: bump version to 0.14.0 2022-04-03 19:39:10 -07:00
Robert Ghilduta
54c519079e libbladeRF: add Wishbone master control functions 2022-04-03 19:39:10 -07:00
Robert Ghilduta
a348a7a667 libbladeRF: fix enabling packet mode on bladeRF 1.0 2022-04-03 19:39:10 -07:00
Robert Ghilduta
7740242c7b add bladeRF 2.0 micro xA5 support to libbladeRF and FPGA 2022-04-03 19:39:10 -07:00
Martin Herren (HB9FXX)
5fbcefcbad [ConfigFile] Update doc for new keywords 2022-04-03 19:35:56 -07:00
Martin Herren (HB9FXX)
8bfe4deca3 [ConfigFile] Add clock_out keyword 2022-04-03 19:35:35 -07:00
Martin Herren (HB9FXX)
321f898bd4 [ConfigFile] Add clock_sel keyword 2022-04-03 19:35:35 -07:00
Martin Herren (HB9FXX)
f950a7d702 [ConfigFile] Add refin_freq keyword 2022-04-03 19:35:35 -07:00
Martin Herren (HB9FXX)
c369096d85 [ConfigFile] Add clock_ref keyword 2022-04-03 19:35:35 -07:00
Martin Herren (HB9FXX)
0d4968a4a4 [ConfigFile] Fix parsing of vctcxo_tamer key 2022-04-03 19:35:35 -07:00
Robert Ghilduta
dc81444585 cyapi: add META support to cyapi backend 2021-02-15 18:52:57 -08:00
Robert Ghilduta
82afb15adb libbladeRF: bump to version v2.4.0 2020-12-23 20:45:44 -08:00
Robert Ghilduta
88061f7972 libbladeRF: fixup format meta checks 2020-12-23 19:35:34 -08:00
Robert Ghilduta
a399fd70bf libbladeRF: add BLADERF_GPIO_PACKET_CORE_PRESENT definition to indicate presence of packet capable core 2020-11-23 19:27:49 -08:00
Robert Ghilduta
05c86707b3 libbladeRF: add FPGA and firmware version checks to ensure compatibility for BLADERF_FORMAT_PACKET_META 2020-11-23 19:27:49 -08:00
Robert Ghilduta
a9d98b2a66 libbladeRF: add helpers/have_cap.h which move have_cap() and adds have_cap_dev() 2020-11-23 19:27:49 -08:00
Robert Ghilduta
f513f0216b libbladeRF: update version compatibility tables 2020-11-23 19:27:49 -08:00
Robert Ghilduta
deb5954cb6 host: pass correct packet mode buffer size 2020-11-23 19:27:49 -08:00
Robert Ghilduta
216c76c58a libbladeRF: dynamically select RFIC init_params 2020-11-23 19:27:49 -08:00