diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2019-11-18 14:06:39 +0530 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2020-01-02 15:38:56 -0800 |
commit | 400b00c34338af502c5d786edcfb8512bfbbff8b (patch) | |
tree | 9974e0ea352e1879f6381091103fab84637b441c /host/python/rfnoc.py | |
parent | 2b8cae59a70d1f19a9350aa9c824008ceea5cb70 (diff) | |
download | uhd-400b00c34338af502c5d786edcfb8512bfbbff8b.tar.gz uhd-400b00c34338af502c5d786edcfb8512bfbbff8b.tar.bz2 uhd-400b00c34338af502c5d786edcfb8512bfbbff8b.zip |
rfnoc: adding RFNoC Python API
Adding Python bindings for the RFNoC API. This includes the
rfnoc_graph, noc_block_base, and several other supporting classes.
Templated functions are not currently supported. For example,
`rfnoc_graph::get_block` can only return the basic block controller.
Diffstat (limited to 'host/python/rfnoc.py')
-rw-r--r-- | host/python/rfnoc.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/host/python/rfnoc.py b/host/python/rfnoc.py new file mode 100644 index 000000000..690b3d841 --- /dev/null +++ b/host/python/rfnoc.py @@ -0,0 +1,18 @@ +# +# Copyright 2019 Ettus Research, a National Instruments Brand +# +# SPDX-License-Identifier: GPL-3.0-or-later +# +""" @package rfnoc +Python UHD module containing the RFNoC API. +""" + +from . import libpyuhd as lib + +BlockID = lib.rfnoc.block_id +Edge = lib.rfnoc.edge +GraphEdge = lib.rfnoc.graph_edge +RfnocGraph = lib.rfnoc.rfnoc_graph +MBController = lib.rfnoc.mb_controller +Timekeeper = lib.rfnoc.timekeeper +NocBlock = lib.rfnoc.noc_block_base |