aboutsummaryrefslogtreecommitdiffstats
path: root/host/uhd.pc.in
diff options
context:
space:
mode:
authorAaron Rossetto <aaron.rossetto@ni.com>2020-06-01 14:36:15 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2020-06-09 07:09:34 -0500
commit04b8cca22b61c24ca0451b7655b46b85c9a7f310 (patch)
tree361d1575317bf58ef64b8acb790d9ba48113e5f9 /host/uhd.pc.in
parent6aa090b7fdab3f380b52b1e572f2602e049d7d2b (diff)
downloaduhd-04b8cca22b61c24ca0451b7655b46b85c9a7f310.tar.gz
uhd-04b8cca22b61c24ca0451b7655b46b85c9a7f310.tar.bz2
uhd-04b8cca22b61c24ca0451b7655b46b85c9a7f310.zip
python: Add block controller factory utility
This commit adds a utility class for use with the Python RFNoC block controller PyBind bindings which facilitates constructing instances of a specific block controller type from its noc_block_base base class. This allows Python code to create and configure specific block controller instances by calling get_block on a uhd.rfnoc.RfnocGraph object with the block ID of the block in question and then passing the result into the constructor method of the block controller, e.g.: graph = uhd.rfnoc.RfnocGraph("addr=...") block = graph.get_block(uhd.rfnoc.BlockID("0/DDC#0")) ddc = uhd.rfnoc.DdcBlockControl(block) ddc.set_input_rate(10e6, 0)
Diffstat (limited to 'host/uhd.pc.in')
0 files changed, 0 insertions, 0 deletions