8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
10 #include <pybind11/stl_bind.h>
14 #include "../casters.h"
17 using namespace pybind11::literals;
21 py::class_<WaveformDescriptor>(m,
"WaveformDescriptor")
23 .def(py::self == py::self)
24 .def(py::self != py::self)
31 py::class_<ccWaveform>(m,
"ccWaveform")
32 .def(py::init<uint8_t>(),
"id"_a)
42 const uint8_t *dataStorage)
45 self.getRange(
min,
max, descriptor, dataStorage);
46 return py::make_tuple(
min,
max);
54 std::vector<double> values;
55 self.decodeSamples(values, descriptor, dataStorage);
75 py::class_<ccWaveformProxy>(m,
"ccWaveformProxy")
76 .def(py::init<const ccWaveform &, const WaveformDescriptor &, const uint8_t *>(),
89 return py::make_tuple(
min,
max);
94 std::vector<double> values;
95 self.decodeSamples(values);