7 #include <pybind11/pybind11.h>
8 #include <pybind11/stl.h>
9 #include <pybind11/stl_bind.h>
10 #include <pybind11/functional.h>
13 namespace py = pybind11;
15 namespace itk::itkpix::emu {
26 return py::class_<T, std::shared_ptr<T>>(m, name)
27 .def(py::init<uint8_t>(), py::arg(
"chip_id"))
28 .def(
"reset", &T::reset)
29 .def(
"send_cmds", [](T &
self, std::vector<uint16_t>& cmds) {
self.send_cmds(cmds); }, py::arg(
"cmds"))
30 .def(
"callback_on_data", &T::callback_on_data, py::arg(
"on_data"))
31 .def(
"callback_on_service", &T::callback_on_service, py::arg(
"on_service"))
auto pybindEmulator(py::module_ &m, const char *name="Emulator")
Pybinding template for Emulator.
Definition: pybind.hpp:24