Commit graph

1,164 commits

Author SHA1 Message Date
Jon Szymaniak
44af654b12 bladeRF-cli: Added print/set support for VCTCXO tamer 2015-12-14 15:29:59 -05:00
Jon Szymaniak
9cdfbedd5d libbladeRF: Adding VCTCXO tamer mode selection support 2015-12-14 15:29:59 -05:00
Jon Szymaniak
7af3de8280 libbladeRF: Added bladerf_vctcxo_tamer_mode enumeration
This enumeration will be used to control the upcoming VCTCXO tamer
module in the FPGA.
2015-12-14 15:29:59 -05:00
Jon Szymaniak
33578a26e4 libbladeRF: Fixed check for invalid enum value in sync_init() (CID1343277) 2015-12-14 14:27:31 -05:00
Jon Szymaniak
5a0e973c0b bladeRF-cli: Address CID1320428 (unchecked return value)
This is intentional.
2015-12-14 14:24:47 -05:00
Nick "Darkfiber" Wolff
327dce57b1 host: Minimal build fixes for FreeBSD
Work still needs to be done to troubleshoot libusb issues.
2015-12-14 11:36:15 -05:00
Jon Szymaniak
f255b9ceea matlab: Removed extraneous loopback assignment 2015-12-13 12:31:46 -05:00
Jon Szymaniak
c7148b5031 matlab: Added methods for LMS6 DC cal routines 2015-12-12 21:18:56 -05:00
Jon Szymaniak
9b143d2d03 host/misc: Fixed incorrect clamping in save_sc16q11.m script 2015-12-10 16:07:44 -05:00
Jon Szymaniak
b3d268b0bc matlab: Ensure TX DAC is returned to 0+0j for tx.stop()
Waiting `num_buffers` worth of samples through this should
be more than sufficient to achieve this.
2015-12-10 15:09:52 -05:00
Jon Szymaniak
15278332f8 matlab: Added FPGA RX mux mode support 2015-12-10 14:38:55 -05:00
Jon Szymaniak
7416fb5ae1 bladeRF-cli: Added print/set rx_mux
This addition allows users to inspect and control the
state of the FPGA RX FIFO input mux.
2015-12-09 23:35:23 -05:00
Mathieu Rene
0d55229719 libbladeRF: Added helper function for setting the FPGA's rx_mux
This function provides simpler access to the FPGA's RX mux,
whose settings are controlled by FX3 <-> FPGA GPIOs.
2015-12-09 23:31:16 -05:00
Jon Szymaniak
ea898fb7ae matlab: Added bladeRF.calibrate function 2015-12-08 23:03:28 -05:00
Jon Szymaniak
976bd1a174 matlab: List any functions not found in the library 2015-12-07 11:37:46 -05:00
Jon Szymaniak
2f2dd15876 matlab: Fixed items that caused warnings in 2015b
- varargout must be a cell
- Initial values in StringSets must match exactly, even though
  our accessors are case-insensitive.
2015-12-07 11:34:25 -05:00
Jon Szymaniak
19c7f7c3a3 libbladeRF_test: Added state output to test_open 2015-11-30 16:55:50 -05:00
Jon Szymaniak
71a96ba160 matlab: Made corrections in the help text for bladeRF/transmit 2015-11-30 12:41:14 -05:00
Jon Szymaniak
4c749bd316 libbladeRF_test: added test_repeated_stream
This test is intended to exercise repeatedly starting, running,
and stopping RX and TX streams.
2015-11-29 21:53:41 -05:00
Jon Szymaniak
c5d1e4a9f3 host/common: Made devcfg_perform_sync_config() parameter const 2015-11-29 21:20:54 -05:00
Jon Szymaniak
044722f3cb libbladeRF_test: Cleaned up items in test_sync
Replaced macros with those defined in libbladeRF.h

Removed device control lock; this is inherently provided in libbladeRF
API calls.
2015-11-28 13:56:16 -05:00
Jon Szymaniak
d5cecb011c libbladeRF_test: Added functionality to open/close test
Configurable repetitions, a millisecond-granularity delay before
closing, and adjustable log-level have been added to this test.

These changes are intended to verify correct operation after repeated
open/close operations over extended period of time.
2015-11-28 13:42:19 -05:00
Jon Szymaniak
c262e84bf4 libbladeRF/doc/examples: Report "have tx data" in sync_rxtx example
This flag needs to be asserted true in the dummy do_work()
implementation to allow this to function as an example that works "out
of the box."
2015-11-24 10:48:13 -05:00
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
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
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