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/pyuhd.cpp | |
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/pyuhd.cpp')
-rw-r--r-- | host/python/pyuhd.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/python/pyuhd.cpp b/host/python/pyuhd.cpp index e38dc9224..50434b4fc 100644 --- a/host/python/pyuhd.cpp +++ b/host/python/pyuhd.cpp @@ -13,6 +13,8 @@ namespace py = pybind11; +#include "rfnoc/rfnoc_python.hpp" + #include "stream_python.hpp" #include "types/types_python.hpp" @@ -72,5 +74,9 @@ PYBIND11_MODULE(libpyuhd, m) // Register filters submodule auto filters_module = m.def_submodule("filters", "Filter Submodule"); export_filters(filters_module); + + // Register RFNoC submodule + auto rfnoc_module = m.def_submodule("rfnoc", "RFNoC Objects"); + export_rfnoc(rfnoc_module); } |