11#include <pybind11/pybind11.h>
12#include <pybind11/stl.h>
14namespace py = pybind11;
23 py::class_<DAPHNEEthStreamFrame::ChannelWord>(m,
"DAPHNEEthStreamChannelWord")
28 .def_property(
"version",
32 .def_property(
"channel",
38 py::class_<DAPHNEEthStreamFrame::Header>(m,
"DAPHNEEthStreamHeader")
39 .def_property(
"channel_words",
42 for (
int i = 0; i < 4; i++) {
43 result.append(self.channel_words[i]);
48 for (
int i = 0; i < 4 && i < len(channel_words); i++) {
55 py::class_<DAPHNEEthStreamFrame>(m,
"DAPHNEEthStreamFrame", py::buffer_protocol())
57 .def(py::init([](py::capsule capsule) {
61 .def(py::init([](py::bytes bytes){
62 py::buffer_info info(py::buffer(bytes).request());