Commit graph

20 commits

Author SHA1 Message Date
Edvin Tengroth
1b506964e9 python: add support for hardware triggers
This adds Python bindings for the bladerf_trigger API, including
associated enums and a _Trigger wrapper class.
2026-03-11 21:54:48 +01: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
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
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
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
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
Renamed from host/libraries/libbladeRF_bindings/python/bladerf.py (Browse further)