mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
rfnoc: python API: Expose sleep control op
This commit is contained in:
parent
3a10834521
commit
34ecf65642
@ -560,6 +560,13 @@ void export_rfnoc(py::module& m)
|
||||
py::arg("timeout"),
|
||||
py::arg("time"),
|
||||
py::arg("ack") = false)
|
||||
.def(
|
||||
"sleep",
|
||||
[](noc_block_base& self, uhd::time_spec_t duration, bool ack = false) {
|
||||
self.regs().sleep(duration, ack);
|
||||
},
|
||||
py::arg("duration"),
|
||||
py::arg("ack") = false)
|
||||
.def("get_src_epid",
|
||||
[](noc_block_base& self) { return self.regs().get_src_epid(); })
|
||||
.def("get_port_num",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user