Commit graph

783 commits

Author SHA1 Message Date
Jon Szymaniak
1be8b76b35 libbladeRF/doc: Fixed link to forums 2016-01-12 13:50:46 -05:00
Jon Szymaniak
6e35ea384e matlab: Fixed loopback name typo in bladeRF_Simulink.m 2016-01-08 17:56:16 -05:00
Jon Szymaniak
b4b11da4b9 matlab: README.md touch-ups 2016-01-08 10:57:03 -05:00
Jon Szymaniak
0caef9463b matlab: Updated to v0.1.1 2016-01-07 17:04:10 -05:00
Jon Szymaniak
872759540d libbladeRF: Updated to v1.5.1 2016-01-07 16:49:57 -05:00
Jon Szymaniak
7f6a461348 matlab: Search for thunk file in '.' and MATLABPATH
Our proto file must provide the absolute path to the thunk library,
whether it is in the current directory or in MATLABPATH (as is the
case with our Windows installer).
2016-01-04 22:36:04 -05:00
Jon Szymaniak
8bbf917446 libbladeRF: Addressed warning from GCC -Os in device_identifier.c
Only seeing this warning with GCC - haven't observed this with
Clang or Coverity scans.

host/libraries/libbladeRF/src/device_identifier.c:121:22: error: ‘val’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
             value[i] = tolower((unsigned char) c);
                      ^
host/libraries/libbladeRF/src/device_identifier.c:175:34: note: ‘val’ was declared here
     char *dev_id, *token, *arg, *val, *saveptr;
                                  ^
Addressing this by initializing ptrs to NULL and status variables to
BLADERF_ERR_UNEXPECTED. Added NULL pointer checks.
2016-01-04 09:28:37 -05:00
Ryan Tucker
e0f9254a40 Specify unsigned integer on big constant (Fixes #444) 2016-01-01 22:44:10 -05:00
Jon Szymaniak
e8cdde2f69 matlab: v0.1.0 release 2015-12-30 23:04:09 -05:00
Jon Szymaniak
681137c137 libbladeRF: Updated to v1.5.0 2015-12-30 23:04:09 -05:00
Jon Szymaniak
5f90fcc41a libbladeRF: Updated some metadata files 2015-12-30 22:45:58 -05:00
Jon Szymaniak
088f12ba93 libbladeRF: Added LIBBLADERF_API_VERSION
This macro provides API users with a compile-time means to check
the API version. It is intended to help with compile-time feature
detection.
2015-12-30 22:31:16 -05:00
Jon Szymaniak
3e5faa42fb libbladeRF: Changed default frequencies
Per the libbladeRF API documentation, it is recommended to keep the RX
and TX frequencies >= 1 MHz apart. For consistency, the default
frequencies have been changed to follow this recommendation.

Additionally, the default frequencies have been moved within the 2.4 GHz
ISM band.
2015-12-29 18:46:38 -05:00
Jon Szymaniak
25530a3f4e libbladeRF: Added additional details to function descriptions 2015-12-28 23:15:44 -05:00
Jon Szymaniak
ccce423cff libbladeRF: Added BLADERF_MODULE_INVALID enumeration value 2015-12-28 22:20:20 -05:00
Jon Szymaniak
ad147e2b28 libbladeRF: Added BLADERF_DC_CAL_INVALID enumeration value 2015-12-28 22:20:20 -05:00
Jon Szymaniak
7e704a8edf matlab: Added automatic RX/TX DC correction 2015-12-28 22:20:20 -05:00
Jon Szymaniak
2161248943 libbladeRF: Added API call to read firmware log data
bladerf_get_fw_log() allows API users to retrieve firmware log
data and write it to a file.
2015-12-28 16:10:39 -05:00
Jon Szymaniak
ef797fd412 libbladeRF/doc: Fixed typos and touched up timestamp calculations
- The calculation for advancing 150 ms was incorrect
- Compute timestamp increment constants to be more clear
2015-12-23 23:14:31 -05:00
Jon Szymaniak
1a4d97f1f5 libbladeRF: Fixed typo, more explicit 1.8V tamer input requirement 2015-12-18 16:04:32 -05:00
Jon Szymaniak
f6c0d28e6e libbladeRF: Noted VCTCXO tamer input on J71 pin 1 in API header 2015-12-14 15:34:11 -05:00
Jon Szymaniak
a3caa70dff libbladeRF: Added FPGA v0.5.0 to version compat table 2015-12-14 15:29:59 -05:00
Jon Szymaniak
ec56c713e0 libbladeRF: Set VCTCXO taming capability for FPGA >= 0.5.0 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
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
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
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
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