From aca52b700282153760ae9331a791ddd41a2f4dd5 Mon Sep 17 00:00:00 2001 From: Jesse Zhang <65556515+jessezhang-ni@users.noreply.github.com> Date: Wed, 22 Jul 2020 19:55:05 -0500 Subject: python: Add Switchboard block python bindings --- host/lib/rfnoc/switchboard_block_control_python.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 host/lib/rfnoc/switchboard_block_control_python.hpp (limited to 'host/lib') diff --git a/host/lib/rfnoc/switchboard_block_control_python.hpp b/host/lib/rfnoc/switchboard_block_control_python.hpp new file mode 100644 index 000000000..7715b05c0 --- /dev/null +++ b/host/lib/rfnoc/switchboard_block_control_python.hpp @@ -0,0 +1,21 @@ +// +// Copyright 2020 Ettus Research, a National Instruments Brand +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + +#pragma once + +#include "block_controller_factory_python.hpp" +#include + +using namespace uhd::rfnoc; + +void export_switchboard_block_control(py::module& m) +{ + py::class_(m, "switchboard_block_control") + .def(py::init(&block_controller_factory::make_from)) + .def("connect", &switchboard_block_control::connect); +} -- cgit v1.2.3