summaryrefslogtreecommitdiff
path: root/gr-uhd/python/uhd/bindings/usrp_block_python.cc
Commit message (Collapse)AuthorAgeFilesLines
* gr-uhd: update direction key namingJacob Gilbert2021-04-051-2/+2
| | | | | | | 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>
* 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-021-0/+3
| | | | Signed-off-by: Huang Rui <vowstar@gmail.com>
* uhd: Add power reference APIsMartin Braun2020-08-261-0/+25
| | | | | | | | | | | | | | | | | | | | | 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-141-1/+12
| | | | | | | | | | | - 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-271-2/+1
| | | | | | | | | | | | | 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 pybind11 bindingsJosh Morman2020-06-041-0/+441