summaryrefslogtreecommitdiff
path: root/gr-uhd/python/uhd/bindings
Commit message (Collapse)AuthorAgeFilesLines
* uhd: pybind rfnoc_{block, ddc, duc, rx/tx_radio} (#5291)a-andre2021-12-0916-6/+810
| | | | | | | | | | | | | | | | | | | | | | | * uhd: pybind rfnoc_block Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> * uhd: pybind rfnoc_rx/tx_radio Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> * uhd: pybind rfnoc_ddc/duc Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> * Fix TypeError: set_freq(): incompatible function arguments Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de> * uhd: rfnoc_rx/tx_streamer: Fix AttributeError 'gnuradio.uhd.uhd_python.rfnoc_rx_streamer' object has no attribute 'to_basic_block' Signed-off-by: André Apitzsch <andre.apitzsch@etit.tu-chemnitz.de>
* global: remove iostream from all files not use cout|cerr|cin|clogMarcus Müller2021-06-172-2/+2
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* uhd: pybind rfnoc_graph,_rx/tx_streamerMarcus Müller2021-06-088-10/+261
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* gr-uhd: Adding missing Python binding for uhd::tune_request_t::policy_t.Codey McCodeface2021-05-281-2/+1
| | | | Signed-off-by: Codey McCodeface <Codey.McCodeface@gmail.com>
* gr-uhd: Adding missing Python binding for uhd::tune_request_t::policy_t.Codey McCodeface2021-05-281-1/+9
| | | | Signed-off-by: Codey McCodeface <Codey.McCodeface@gmail.com>
* gr-uhd: update direction key namingJacob Gilbert2021-04-052-4/+4
| | | | | | | The 'ant_direction_' key getters have been reappropriated for wider use, changing to general 'direction_' and a few minor simplifications. Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* GR-UHD: Add additional gr-uhd bindings.Victor Wollesen2021-03-031-0/+13
| | | | Signed-off-by: Victor Wollesen <victor.w@pervices.com>
* uhd: Fix filter APIMartin Braun2021-02-181-1/+3
| | | | | | | | | | | | 9cdfe5141a exposed a bug in gr-uhd: The filter API was incorrectly implemented for UHD (multi_usrp had an API change in UHD 4.0). This is an API change, b/c the existing gr-uhd code was actually never compatible to UHD 4.0's filter API. The change is to adapt gr-uhd's filter API to that in UHD. Signed-off-by: Martin Braun <martin.braun@ettus.com>
* gr-uhd: ALL_LOS bindingkarel2021-02-051-0/+1
| | | | Signed-off-by: karel <5636152+karel@users.noreply.github.com>
* uhd: Control of frequency and gain in both directions at the same momentNiki2021-01-241-1/+2
| | | | | | | | | | | | | | | | | | | It implements the ability to control frequency and gain in both directions (Tx and Rx) with use of a single UHD source or sink - in the same moment. It is possible to do that in separate moments with current UHD blocks but this way it is not possible to change both Rx and Tx settings for the same burst. Now, a single message can do that. Note that there is a bit of an oddity here: The GNU Radio USRP blocks are either Rx or Tx (source or sink). However, they all encapsulate an underlying multi_usrp object. That means that under the hood, a USRP source or a USRP sink potentially has access to the "other" direction. This is made use in this patch. To use this feature, add a direction key to the message dictionary going to the block. Signed-off-by: Martin Braun <martin@gnuradio.org>
* usrp_block:pybind: add missing bind for cmd_power_keyHuang Rui2020-11-022-0/+6
| | | | Signed-off-by: Huang Rui <vowstar@gmail.com>
* uhd: Add power reference APIsMartin Braun2020-08-262-0/+37
| | | | | | | | | | | | | | | | | | | | | UHD 4.0 is introducing a power reference level API, which will now become available in GNU Radio. Its availability is conditionally compiled into GNU Radio based on whether or not the feature is available in the UHD version GNU Radio was compiled against. USRP source and sink blocks receive the following new APIs: - has_power_reference() - set_power_reference() - get_power_reference() The command interface now understands a new `power_dbm` dictionary key. The GRC bindings can now switch between absolute gain, normalized gain, and absolute power settings. If GNU Radio was compiled against an older version of UHD (prior to UHD 4.0) which doesn't have this API, an error or warning is printed, the has_power_reference() will return false, and the others will throw an exception.
* uhd: wrap get_usrp_info to compatible return typeJosh Morman2020-08-146-19/+15
| | | | | | | | | | | - Move get_usrp_info() to usrp_block - Casts the return value to std::map so PyBind11 can turn it into a dictionary in Python This fixes an issue where get_usrp_info() would cause an Exception with PyBind11. Co-authored-by: Martin Braun <martin.braun@ettus.com>
* uhd: Fix missing bindingsJohannes Demel2020-06-272-5/+14
| | | | | | | | | | | | | uhd python bindings were missing a couple of functions. 1. `uhd.ALL_MBOARDS` was not defined. 2. `uhd.streams_args` was incomplete. Instead of import magic, we define a pybind constructor which supports all cases. This should ease the maintainance burden as well. Be aware: some notes that `this file was generated with bindtool` were removed because this files contain manual edits. The foundations were probably generated with bindtool once.
* uhd: add default values for time_spec_t cotrJosh Morman2020-06-261-3/+6
|
* uhd: remove members not defined in earlier uhd apiJosh Morman2020-06-111-9/+12
|
* uhd: fix pybind11 bindingsJosh Morman2020-06-105-6/+203
| | | | | | | | | Instead of relying on the pyuhd pybind11 bindings, create new gr::uhd pybind11 bindings that wrap the underlying types. Trying to use the pyuhd bindings directly has many issues Also, push some of the overloading into the constructors as opposed to in the __init__ functions with constructor interception
* uhd: add pybind11 bindingsJosh Morman2020-06-0410-0/+1270