diff options
author | Jeff Long <willcode4@gmail.com> | 2020-11-02 20:10:40 -0500 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-11-25 11:59:15 -0500 |
commit | dfdaaf8bde161e4cbdd35e3ca61c994934989ef8 (patch) | |
tree | 3c092867369520978e0a82610efe99d07191d6cc /gr-blocks/python | |
parent | e03a54a03657e30c5346140d383e6c8eac584c3d (diff) |
rotator: add getter rotator::phase()
Diffstat (limited to 'gr-blocks/python')
-rw-r--r-- | gr-blocks/python/blocks/bindings/rotator_python.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-blocks/python/blocks/bindings/rotator_python.cc b/gr-blocks/python/blocks/bindings/rotator_python.cc index 6f7918f11e..2ed0d633a4 100644 --- a/gr-blocks/python/blocks/bindings/rotator_python.cc +++ b/gr-blocks/python/blocks/bindings/rotator_python.cc @@ -14,7 +14,7 @@ /* BINDTOOL_GEN_AUTOMATIC(0) */ /* BINDTOOL_USE_PYGCCXML(0) */ /* BINDTOOL_HEADER_FILE(rotator.h) */ -/* BINDTOOL_HEADER_FILE_HASH(00766f91fe492a48d5f40aa2082f31ff) */ +/* BINDTOOL_HEADER_FILE_HASH(5d52f019c659d77040b16ad7541e4fd2) */ /***********************************************************************************/ #include <pybind11/complex.h> @@ -41,6 +41,9 @@ void bind_rotator(py::module& m) D(rotator, rotator, 1)) + .def("phase", &rotator::phase) + + .def("set_phase", &rotator::set_phase, py::arg("phase"), D(rotator, set_phase)) |