Commit graph

31 commits

Author SHA1 Message Date
bradley-DS
55ef69658f
add python gain table support functions/ Add gain table loading to bladeRF-cli (#2)
* add python command to print gain table values to steal from nuand

* add gain table loading to bladeRF-cli util with load_gain command

* fix command filename in cmake

* add print function for gain tables to confirm loading

* add doc saying limitation of new cmd to rx0/tx0
2025-04-25 09:37:00 -04:00
subrad
561b62306d add method to see gain adjust to python binding 2025-03-05 14:19:50 -05:00
subrad
7e9b917b22 add gain table load and enable api support to python binding version of libbladerf library 2025-02-25 09:07:05 -05:00
Jan Hrach
2db3b8402b Add support for SC16_Q11_META to Python binding. 2023-02-28 00:04:27 -08:00
Robert Ghilduta
689d6da345 host: python v1.3.0 2023-02-13 03:28:19 -08:00
Gregory R. Warnes
7b3cf9df36 Add special case for loading windows DLL in python
bindings.
2022-04-03 19:51:57 -07:00
Robert Ghilduta
7740242c7b add bladeRF 2.0 micro xA5 support to libbladeRF and FPGA 2022-04-03 19:39:10 -07:00
Mehmet Ali Ertürk
3698a96672 Update _bladerf.py
Python binding fix for macOS.
2022-04-03 19:38:52 -07:00
realmadsci
ac7456ebed Python bindings: Fix get_gain_modes
Despite documentation to the contrary (https://github.com/Nuand/bladeRF/blob/master/host/libraries/libbladeRF/include/libbladeRF.h#L902), you should *not* call bladerf_get_gain_modes with NULL to get the number of modes to expect.
Just call it with a `struct bladerf_gain_modes **` and let it point you at the internal structure which lists the applicable modes, and then use its return value as the length.
2022-04-03 19:35:01 -07:00
realmadsci
2027767626 Make all of the get_*_range functions work
These functions were previously constructing a `bladerf_range *` and a `bladerf_range **` which pointed at it, and assuming that the `bladerf_get_*_range()` functions would write into the `bladerf_range *` that we provided.
However, those functions actually just point the `bladerf_range **` at their internal structure which already exists.
This patch corrects this wrong assumption and allows these functions to return valid range info.
2022-04-03 19:34:45 -07:00
Robert Ghilduta
fc826ba3cc host: python: add support for BLADERF_FORMAT_PACKET_META 2020-12-23 20:29:39 -08:00
Robert Ghilduta
d00f20a886 host: python: add OTP functions 2019-07-31 18:28:18 -05:00
Robert Ghilduta
1416d4918a libbladeRF: update FPGA flash type definitions 2018-12-26 00:21:14 -08:00
Rey Tucker
3cd3afae86 host: python: update definitions for libbladeRF v2.2.0 2018-12-21 16:39:13 -05:00
Rey Tucker
5de4edac6c host: python: bladerf-tool: don't print gain mode if tx channel 2018-12-21 16:38:50 -05:00
Rey Tucker
f38dde896b python: update _cdef with bladerf_get_fpga_source 2018-09-27 14:45:27 -04:00
Rey Tucker
57b111fc05 host: python: update _cdef.py 2018-09-26 12:43:16 -04:00
Rey Tucker
35dd8b5f8d python: pep8 compliance 2018-09-24 13:14:36 -04:00
Rey Tucker
586c69338e python: add get_serial_struct, replace get_serial 2018-09-24 13:14:36 -04:00
Rey Tucker
38259d1733 python: update _cdef with latest libbladeRF.h 2018-09-24 13:14:36 -04:00
Brian Glod
8036032bfd libbladeRF/python: Add bladerf_get_flash_size()
bladerf-tool will print the flash density with the 'info' command.
2018-09-14 12:33:30 -04:00
Rey Tucker
ead2de258b libbladeRF/python: fix rx_channel_count and tx_channel_count 2018-09-13 17:57:16 -04:00
Rey Tucker
8a1953ed5e libbladerf/python: update cdef 2018-09-13 17:54:30 -04:00
Brian Glod
84ea9784ec host: libbladeRF: Rename clock select option
The bladeRF-micro has an option to use either its onboard VCTCXO or an
external 38.4 MHz clock as the clock source for components on the
board. This change addresses some ambiguity in the naming of the onboard
option by renaming it from 'vctcxo' to 'onboard'.

The valid options are now:

1. onboard
2. external
2018-08-23 23:29:56 -04:00
Robert Ghilduta
bc576497fc host: python: add trim DAC read/write accessors
These functions get and set trim DAC values
2018-06-20 00:50:31 -04:00
Rey Tucker
152b7be95c
host: python: fix calls to get_*_range (#59)
The Python bindings didn't get updated for the `const struct bladerf_range **` changes in #48 and #53 , but now they are
2018-06-01 15:51:47 -04:00
Rey Tucker
7dc32cc56f
host: bladerf_get_channel_count now takes a bladerf_direction (#58)
This is more intuitive than 'bool tx'.
2018-06-01 15:49:04 -04:00
Rey Tucker
a0d498e723
host: typedef common parameter types (#51)
* libbladeRF: add typedefs for common parameter types

This adds typedefs for, and changes libbladeRF.h to use said typedefs
for, the following:

bladerf_gain -> int
bladerf_sample_rate -> unsigned int
bladerf_bandwidth -> unsigned int
bladerf_frequency -> uint64_t
bladerf_timestamp -> uint64_t
bladerf_correction_value -> int16_t
2018-05-25 11:45:38 -04:00
Rey Tucker
1dc6317b93
host: make low-level API calls generic by removing part numbers (#49)
Instead of using specific part numbers for low-level API calls on the bladeRF micro, use generic functionality-based names.
2018-05-25 10:55:04 -04:00
Rey Tucker
8919cac557 host: add support for AD9361's CTRL_OUT pins (#28)
* host: libbladeRF: add bladerf_ad9361_get_ctrl_out

Adds functionality to read the CTRL_OUT pins from the AD9361 RFIC.

* host: bladeRF-cli: add print for AD9361 CTRL_OUT

* host: python: add support for ad9361_ctrl_out
2018-05-22 12:58:06 -04:00
Rey Tucker
5240d995b0
host: python: Python packaging (#18)
* host: python: reorganize files for packaging

* host: python: move bladerf-tool CLI into main()

* host: python: move cdef string into its own file

Since packaging lets us have multiple files easily, this cleans up
bladerf.py a lot.

* host: python: add __init__.py skeleton

* host: python: fixup py3flakes and pycodestyle

* host: python: fix unused local variable

* host: python: more reorganization to appease Python

* host: python: update .gitignore for setup detritus

* host: python: initial setup.py

* host: python: update accompanying documentation

* host: python: cleanup setup.py

* host: python: move license stuff into files

* host: python: version 1.0.0
2018-03-26 12:26:46 -04:00