11#include <pybind11/pybind11.h>
12#include <pybind11/stl.h>
14namespace py = pybind11;
24 py::class_<DAPHNEEthStreamFrame::ChannelWord>(m,
"DAPHNEEthStreamChannelWord")
38 py::class_<DAPHNEEthStreamFrame::Header>(m,
"DAPHNEEthStreamHeader")
43 for (
int i = 0; i < 4; i++) {
44 result.append(self.channel_words[i]);
49 for (
int i = 0; i < 4 && i < static_cast<int>(len(channel_words)); i++) {
54 py::class_<DAPHNEEthStreamFrame>(m,
"DAPHNEEthStreamFrame", py::buffer_protocol())
56 .def(py::init([](py::capsule capsule) {
60 .def(py::init([](py::bytes bytes) {
61 py::buffer_info info(py::buffer(bytes).request());
68 py::return_value_policy::reference_internal)
72 py::return_value_policy::reference_internal)
76 py::return_value_policy::reference_internal)