Commit graph

1,735 commits

Author SHA1 Message Date
Jon Szymaniak
43ccce8d5d matlab: Updated README to note tested versions 2015-11-23 18:39:39 -05:00
Jon Szymaniak
e3f31f1e8f matlab: Fixed use of invalid varible in error msg 2015-11-23 18:25:31 -05:00
Jon Szymaniak
628c3e6c5e matlab: Added MATLAB libbladeRF bindings
Moving forward, MATLAB and Simulink support will be offered via
libbladeRF bindings maintained in this repository. These MATLAB bindings
are implemented as a thin object-oriented interface that utilizes
loadlibrary() and calllib().

Simulink support is achieved through a MATLAB System block
implementation that uses bladeRF.m. Users are welcome to adapt the
provided bladeRF_Simulink.m implementation to their particular needs.
2015-11-23 17:55:36 -05:00
Jon Szymaniak
0c58c553db libbladeRF: Use empty API_EXPORT definition for MATLAB thunk builds
MATLAB's loadlibrary() implementation becomes quite confused
when presented with __attribute__ ((visibility ("default"))).
2015-11-22 20:31:43 -05:00
Jon Szymaniak
f0f3783f13 libbladeRF: Added bladerf_submit_stream_buffer_nb()
This provides a non-blocking variant of bladerf_submit_stream_buffer(),
which provides API users with more control over how they might want
to handle asynchronous buffer submission.

This API functionality has been exposed to allow users to implement
schemes similar to that used to address Issue #438.
2015-11-20 15:38:06 -05:00
Jon Szymaniak
bede8a99eb libbladeRF: Build fixes for dummy backend 2015-11-20 15:38:05 -05:00
Jon Szymaniak
e029251eb8 libbladeRF: Comment typo and copyright date touch-ups 2015-11-20 15:38:04 -05:00
Jon Szymaniak
6b197881f5 libbladeRF: Utilize all available TX buffers
This fixes issue #438, in which the bladerf_sync_tx() implementation
was limited by the number of transfers, and not taking advantage
of the available TX buffers (beyond N=<num_transfers>).

This is addressed by allowing the bladerf_sync_tx() context to defer
buffer submission to the sync TX callback handler when it is unable to
submit filled buffers.

Once assigned the responsibility of submitting deferred (filled)
buffers, the sync TX callback will continue to do so until
no filled buffers are available. At this point, the callback
relinquishes its submission duty back to the bladerf_sync_tx() context.
2015-11-20 15:38:03 -05:00
Jon Szymaniak
3dafac7add libbladeRF: Added "non-block" option to internal async buffer submission
This is one step towards addressing issue #438; we must first
know that we are unable to submit a buffer so that we can defer
its submission to a later callback.
2015-11-20 15:38:02 -05:00
Jon Szymaniak
f84df2601d libbladeRF: Added BLADERF_ERR_WOULD_BLOCK
This will be returned by API functions when an operation would need
to block to complete, but the caller has requested non-blocking
operation.  In this situation, the caller may need to wait and
resubmit the request at a later time.
2015-11-20 15:38:00 -05:00
Jon Szymaniak
012655d388 Merge pull request #437 from rtucker/dev-fpga041-fw181
debian: Updated FX3 firmware to v1.8.1, FPGA bitstream to v0.4.1
2015-11-19 16:35:54 -05:00
Ryan Tucker
8434f687c1 debian: firmware to v1.8.1, fpga to v0.4.1 2015-11-19 13:50:17 -05:00
Jon Szymaniak
8a7986f9ae libbladeRF.h: Corrected description of gain correction 2015-11-13 13:20:01 -05:00
Jon Szymaniak
b83f5276cc bladeRF-cli: Re-added missing 'set xb_gpio[_dir] reg[ister]' support
This regression was introduced around 2015-09-01 when I added support
for accessing individual pins. Support for setting the XB GPIO via
the full register word was intended to be retained, but was not.

This commit re-adds this functionality.
2015-11-06 17:38:25 -05:00
Jon Szymaniak
9b67b91d2b bladeRF-cli: Fixed typo in 'set xb_gpio_dir' usage message 2015-11-06 16:50:19 -05:00
Jon Szymaniak
eed81a6890 host/examples/gnuradio: Added simple RX GUI example flowgraph
The purpose of this flowgraph is to exemplify control of the bladeRF via
the gr-osmosdr source. A README.md highlighting these various controls
will follow soon in another commit.
2015-11-06 15:34:53 -05:00
Jon Szymaniak
0effaec125 host/examples: Updated link to FRS paper (rev 2) 2015-10-29 21:52:33 -04:00
Jon Szymaniak
8ec3f65757 bladeRF-cli: Added more explicit output for BLADERF_ERR_NODEV conditions 2015-10-08 15:49:26 -04:00
Jon Szymaniak
0a2a3ace6b libbladeRF: Warn when device cannot be probed/opened due to permissions 2015-10-08 15:37:50 -04:00
Jon Szymaniak
8a867db62b host: Fixed copy of WdfCoInstaller from FX3 SDK to build dir
Cypress FX3 SDK 1.3.x ships version 01009 for <= Vista and
01011 for >= Win 7.
2015-10-08 13:32:22 -04:00
Jon Szymaniak
26aaf257f7 bladeRF-cli: Consider fractional samplerate portion for Hi-Speed warning 2015-10-08 12:48:55 -04:00
Jon Szymaniak
6ad132b9d8 bladeRF-cli: Cleaned up error messages in 'set samplerate' 2015-10-08 12:48:55 -04:00
Jon Szymaniak
7a6b983f5f bladeRF-cli: Allow samplerate integer to be zero
This allows rates to be specified via the numerator and denominator
only. For example, to specify Fs = (4.5*684*1e6) / 286

set samplerate rx 0 3078000000 286
2015-10-08 12:48:55 -04:00
Jon Szymaniak
77e913161f bladeRF-cli: Use uint64 conversions when setting sample rate 2015-10-08 12:48:55 -04:00
Jon Szymaniak
672cf27eae host/common: Added string to uint64 and double w/ suffix conversions 2015-10-08 12:48:55 -04:00
bglod
1ab329e834 gitignore: fixed regex causing .sdc timing constraints to be ignored
The original *.s[a-w][a-z] regex was intended to ignore vim swap files.
However, this was too broad and encompassed FPGA timing constraints
files. The vim specification states that swap files end in .sw[a-p],
so the regex was updated accordingly.
2015-09-18 15:34:19 -04:00
Brian Padalino
01940e6ebd libbladeRF: Adding ability to set SMB frequency.
Adding the ability to set the SMB frequency when in MIMO master mode.
Also fix a bug where attaching the xb200 and setting MIMO master
would turn off the other clock not allowing an xb200 enabled device
to ever be a master clock supplier.

Being able to set the master frequency is useful when you want to
lock test equipment to the bladeRF oscillator.
2015-09-09 18:34:51 -04:00
Adam Greig
2cc2609d80 Fix SMB max freq at 200MHz 2015-09-09 17:58:41 -04:00
Adam Greig
f7f26d5bb7 Add support for setting SMB clock output to arbitrary frequency 2015-09-09 17:58:41 -04:00
Jon Szymaniak
d6da0f75a8 libbladeRF_test: Fixed capitalization typo in header file name 2015-09-08 13:15:55 -04:00
Jon Szymaniak
3ef92a7464 libbladeRF: Updated version compat table for FX3 FW v1.8.1 2015-09-08 12:50:17 -04:00
Jon Szymaniak
6be819225e fx3_firmware: Updated version to 1.8.1 firmware_v1.8.1 2015-09-08 11:33:34 -04:00
Jon Szymaniak
aa2472a59f fx3_firmware: Addressed build warnings 2015-09-08 11:32:06 -04:00
Jon Szymaniak
c74d172351 fx3_firmware: Updated toolchain.mk.sample for FX3 SDK v1.3.3 2015-09-08 11:31:58 -04:00
Jon Szymaniak
4be58b1b07 bladeRF-cli: Fixed duplicate code blocks (CID 1321689) 2015-09-01 17:21:33 -04:00
Jon Szymaniak
94fed3d0cd libbladeRF: Fixed an invalid mask value 2015-09-01 15:59:08 -04:00
Jon Szymaniak
12ebcb3c13 bladeRF-cli: Show values after 'set' and made whitespace more consistent 2015-09-01 15:47:56 -04:00
Jon Szymaniak
e3758691d0 bladeRF-cli: Updated 'print/set [xb_gpio | xb_gpio_dir]' for pin-based access 2015-09-01 14:51:50 -04:00
Jon Szymaniak
1d0a6cc0c7 libbladeRF: Added support for attaching XB100
It appears that the voltage across the LEDs is always large
enough to keep them ON despite the output voltage.

A potential workaround for this rev of the XB100 is to use the
directionality of the LED IO pins to turn the LED on/off.
2015-09-01 13:24:33 -04:00
Jon Szymaniak
82191d8dee libbladeRF: Added masked XB GPIO write routines and XB GPIO macro definitions 2015-09-01 13:11:35 -04:00
Jon Szymaniak
a7c9d64d4f libbladeRF: Updated FPGA version compat table for v0.4.1 2015-09-01 11:37:03 -04:00
Jon Szymaniak
d5a514d92a nios: Fixed bug XB GPIO (dir) masked writes fpga_v0.4.1 2015-09-01 11:37:03 -04:00
Jon Szymaniak
859377326b nios, lms, libbladeRF: Utilize FPGA support for atomic NINT/NFRAC write fpga_v0.4.0
Both the host and NIOS II FPGA retuning modes now make use of
FPGA v0.4.0's atomic write of the LMS6002D NINT and NFRAC PLL registers.

This helps avoid changing the PLL multiple times when attempting to
configure it.
2015-08-27 15:54:25 -04:00
bglod
612f323fa3 lms: Added support for multi-write of TX and RX NINT/NFRAC registers.
Achieved by adding extra address bit (now 8 bits) to Avalon-MM
interface. The MSB indicates a multi-write instruction. For TX, the
addresses are 0x90-0x93. For RX, the addresses are 0xA0-0xA3. The
individual writes are queued up until a write to the final address is
detected (0x93 or 0xA3), then all four PLL configuration registers are
written to the LMS chip in one contiguous chip select burst.

Testbench updated to be self-checking.
2015-08-27 15:54:25 -04:00
Jon Szymaniak
43269aac57 bladeRF-cli: Check file write access before kicking off table generation 2015-08-25 15:49:03 -04:00
Jon Szymaniak
ed805993b5 bladeRF-cli: Added return code for insufficient permissions
This should help clarify the cause of file-related errors in
cases where folks are trying to rx into a location where they
do not have write permissions.
2015-08-25 14:52:55 -04:00
Jon Szymaniak
20b7196e2d libbladeRF: Return BLADERF_ERR_PERMISSION in file operations 2015-08-25 14:40:51 -04:00
Jon Szymaniak
a8f5f71a97 libbladeRF: Added INFO message regarding insufficient permissions
This is intended to help folks recognize that they've forgotten
to update their udev rules.
2015-08-25 14:19:39 -04:00
Jon Szymaniak
2afcc6a895 libbladeRF: Added error code to denote insufficient permissions 2015-08-25 14:13:40 -04:00
Jon Szymaniak
2636bb377f libbladeRF: Restored default of FPGA tuning mode per v0.3.5 fix 2015-08-25 13:28:05 -04:00