diff options
author | Josh Morman <jmorman@perspectalabs.com> | 2021-05-05 11:27:47 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-06-04 06:21:34 -0400 |
commit | 29b83e7a41fe8c9bc723ff81c2c27e36e7d695cf (patch) | |
tree | 12f1b7be3cb8ebb4e8c1fe6114c98c960ac45849 /gr-iio/python/iio/bindings/fmcomms2_source_python.cc | |
parent | 87ed6726b2e46edb8c886d8acfebeb23c87540c7 (diff) |
iio: single parameter iio api for pluto
rather than complex constructors and a catch all set_params, construct
with the minimum amount of parameters and then have them individually
settable
Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
Diffstat (limited to 'gr-iio/python/iio/bindings/fmcomms2_source_python.cc')
-rw-r--r-- | gr-iio/python/iio/bindings/fmcomms2_source_python.cc | 58 |
1 files changed, 20 insertions, 38 deletions
diff --git a/gr-iio/python/iio/bindings/fmcomms2_source_python.cc b/gr-iio/python/iio/bindings/fmcomms2_source_python.cc index 22a7ace50f..2ca9100f28 100644 --- a/gr-iio/python/iio/bindings/fmcomms2_source_python.cc +++ b/gr-iio/python/iio/bindings/fmcomms2_source_python.cc @@ -14,7 +14,7 @@ /* BINDTOOL_GEN_AUTOMATIC(0) */ /* BINDTOOL_USE_PYGCCXML(0) */ /* BINDTOOL_HEADER_FILE(fmcomms2_source.h) */ -/* BINDTOOL_HEADER_FILE_HASH(1069e19d257339872c0475ae5ec2e478) */ +/* BINDTOOL_HEADER_FILE_HASH(0) */ /***********************************************************************************/ #include <pybind11/complex.h> @@ -41,46 +41,28 @@ void bind_fmcomms2_source(py::module& m) .def(py::init(&fmcomms2_source::make), py::arg("uri"), - py::arg("longfrequency"), - py::arg("samplerate"), - py::arg("bandwidth"), - py::arg("ch1_en"), - py::arg("ch2_en"), - py::arg("ch3_en"), - py::arg("ch4_en"), + py::arg("ch_en"), py::arg("buffer_size"), - py::arg("quadrature"), - py::arg("rfdc"), - py::arg("bbdc"), - py::arg("gain1"), - py::arg("gain1_value"), - py::arg("gain2"), - py::arg("gain2_value"), - py::arg("rf_port_select"), - py::arg("filter_source") = "", - py::arg("filter_filename") = "", - py::arg("Fpass") = 0.0, - py::arg("Fstop") = 0.0, D(fmcomms2_source, make)) - .def("set_params", - &fmcomms2_source::set_params, - py::arg("longfrequency"), - py::arg("samplerate"), - py::arg("bandwidth"), - py::arg("quadrature"), - py::arg("rfdc"), - py::arg("bbdc"), - py::arg("gain1"), - py::arg("gain1_value"), - py::arg("gain2"), - py::arg("gain2_value"), - py::arg("rf_port_select"), - py::arg("filter_source") = "", - py::arg("filter_filename") = "", - py::arg("Fpass") = 0.0, - py::arg("Fstop") = 0.0, - D(fmcomms2_source, set_params)) + // .def("set_params", + // &fmcomms2_source::set_params, + // py::arg("longfrequency"), + // py::arg("samplerate"), + // py::arg("bandwidth"), + // py::arg("quadrature"), + // py::arg("rfdc"), + // py::arg("bbdc"), + // py::arg("gain1"), + // py::arg("gain1_value"), + // py::arg("gain2"), + // py::arg("gain2_value"), + // py::arg("rf_port_select"), + // py::arg("filter_source") = "", + // py::arg("filter_filename") = "", + // py::arg("Fpass") = 0.0, + // py::arg("Fstop") = 0.0, + // D(fmcomms2_source, set_params)) ; } |