Commit graph

27 commits

Author SHA1 Message Date
Jon Szymaniak
2288858aaf libbladeRF: [WIP] Changed bladerf_open() interfaces to return status.
The open routines now return status, allowing the caller to
differentiate between I/O failures and an invalid device specifier.

This commit still contains some in-progress known bugs with
some (avoidable) invalid memory accesses.
2013-08-10 18:19:16 -04:00
Jon Szymaniak
d35f1cadae libbladeRF: [WIP] Moved "old" code down to linux backend 2013-08-06 22:32:56 -04:00
Brian Padalino
14657308d6 cli+lib: TX/RX interface changes. 2013-08-04 22:18:06 -04:00
Jon Szymaniak
c323fb553d libbladeRF: [WIP] First cut at path from top-level to backend opens
Nightly check-in. This currently fails to run - there's likely
a number of assertion failures and segfaults to address.
2013-08-03 01:23:03 -04:00
Jon Szymaniak
1c13addd1d libbladeRF: [WIP] Planned bladerf_open out, misc interface cleanup. 2013-08-02 21:27:25 -04:00
Jon Szymaniak
e12fcbf347 libbladeRF: [WIP] header file cleanup 2013-08-02 19:59:47 -04:00
Jon Szymaniak
f4102152ce libbladeRF: [WIP] Moved liblms.h items to private lms.h
The top-level, public interface is now libbladeRF.h. Depedencies
should now only flow downward, with lms.c/h depending on
libbladeRF.
2013-08-02 19:39:57 -04:00
Jon Szymaniak
d494c61f5b libbladeRF: [WIP] Stubbed out calls that need to be implemented 2013-08-02 01:04:52 -04:00
Brian Padalino
633ea2dfa7 lib: [WIP] Heavy modification to separate out linux specific code. 2013-08-01 02:15:17 -04:00
Jon Szymaniak
9828c91201 CLI: Typo fixes in comments from previous commit 2013-07-25 10:02:25 -04:00
Jon Szymaniak
cf8336c159 CLI: Added missing bladerf_enable_module() implementation
This routine is used to enable/disable the RX/TX on the LMS,
and should be used instead of the gpio_* routines.

All calls that are not prefixed with bladerf_* will be removed
and replaced with more appropriate interfaces in the near future.
2013-07-25 10:01:00 -04:00
Jon
e40e0898fb libbladeRF: Fixed typos introduced in previous commit
The patch applied as f6018c14d9 wasn't
intended to be merged. This cleans up said patch and touches
up surrounding documentation a bit.

This compiles but is untested as I don't currently have access to
hardware. (Just wanted to ensure the build isn't left broken all day!)

My apologies if this inconvenience anyone!
2013-07-24 10:14:59 -04:00
Jon
f6018c14d9 libbladeRF: change to using BLADERF_GPIO_FEATURE_HW macro
Minor clean up.
2013-07-24 02:53:15 -07:00
Brian Padalino
2aed383bc7 cli: Set frequency bounds checking.
lib: Add band selection when setting frequency.
2013-07-15 00:30:30 -04:00
Jon Szymaniak
6ff54e7399 libbladeRF: Updated doxygen comments to reflect send/read_c16 changes 2013-07-06 14:14:24 -07:00
Rob
a589bb1260 libbladeRF: add dac_write() DAC control support
This commit adds support for writing values to the VCTCXO calibration DAC.
2013-06-23 21:57:36 -07:00
Brian Padalino
8dcd48a561 cli: More print/set updated.
lib: Moved all implementation code to bladerf.c
2013-07-06 14:03:49 -07:00
Brian Padalino
ef2a542136 cli: Adding extra functionality.
lib: Added device path to bladerf structure to know where fd is pointing.
2013-07-06 04:50:37 -07:00
Jon Szymaniak
eecc0d2799 libbladeRF: Implemented firmware flashing, touched up FPGA loading.
Credit where credit is due -- All the code here is basically
copy/paste from Robert's earlier test code, with some added error
checks and debug output.

The firmware loading now checks the write return value and
performs partial writes as needed.

Items that need to be revisited are the sanity checks on file
sizes. In the future I plan to implement a "bladeRF Image" format
that will wrap size and a hash around a firmware/bitstream. These
checks will probably go into that code.
2013-06-16 18:17:49 -07:00
Jon Szymaniak
265755de0b libbladeRF: Header file cleanup, added bladerf_strerror
Misc cleanup. Added reference to RETCODES in doxygen @return's.
2013-06-16 18:17:46 -07:00
Brian Padalino
d8ae03cabe bladerf: Adding documentation and liblms calls. 2013-06-16 18:17:44 -07:00
Brian Padalino
c10b7a7b83 Adding some new getters/setters. 2013-06-16 18:17:43 -07:00
Brian Padalino
4997c38d3d libbladeRF: Added setters/getters
Added some extra setters/getters for center frequency and gain.
2013-06-16 18:17:42 -07:00
Robert Ghilduta
f8e78fba46 libbladeRF: driver: add host software support for GPIO over UART bridge 2013-06-09 23:03:28 -07:00
Robert Ghilduta
5c41729ac3 libbladeRF: add support for LMS6002D
This commit introduces LMS library support for controlling the LimeMicro
LMS6002D transceiver. The LMS library functions were originally developed by
bpadalino.
2013-06-04 20:22:59 -07:00
Robert Ghilduta
e467bdf85a libbladeRF: add Si5338 support
This commit introduces support for controlling the on-board programmable PLL and
clock distribution Si5338 chip.
2013-06-04 20:42:06 -07:00
jon
7ccd37aa7d libbladeRF: header and lib renamed to libbladeRF. Minor fixes added.
Fixed bladerf_get_device_list return value for condition where no
devices are attached. (Now returns 0, previously returned -1).

Also added a missing catch of a malloc failure and now return appropriate
error value.
2013-06-09 22:58:17 -07:00
Renamed from linux/lib/include/bladerf.h (Browse further)