mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Bindings: Python: Add CANErrorCountMessage
This commit is contained in:
@@ -12,6 +12,7 @@ pybind11_add_module(icsneopy
|
|||||||
icsneopy/communication/network.cpp
|
icsneopy/communication/network.cpp
|
||||||
icsneopy/communication/message/message.cpp
|
icsneopy/communication/message/message.cpp
|
||||||
icsneopy/communication/message/canmessage.cpp
|
icsneopy/communication/message/canmessage.cpp
|
||||||
|
icsneopy/communication/message/canerrorcountmessage.cpp
|
||||||
icsneopy/communication/message/ethernetmessage.cpp
|
icsneopy/communication/message/ethernetmessage.cpp
|
||||||
icsneopy/communication/message/linmessage.cpp
|
icsneopy/communication/message/linmessage.cpp
|
||||||
icsneopy/communication/message/tc10statusmessage.cpp
|
icsneopy/communication/message/tc10statusmessage.cpp
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#include <pybind11/pybind11.h>
|
||||||
|
#include <pybind11/stl.h>
|
||||||
|
#include <pybind11/functional.h>
|
||||||
|
|
||||||
|
#include "icsneo/communication/message/canerrorcountmessage.h"
|
||||||
|
|
||||||
|
namespace icsneo {
|
||||||
|
|
||||||
|
void init_canerrorcountmessage(pybind11::module_& m) {
|
||||||
|
pybind11::class_<CANErrorCountMessage, std::shared_ptr<CANErrorCountMessage>, Message>(m, "CANErrorCountMessage")
|
||||||
|
.def_readonly("network", &CANErrorCountMessage::network)
|
||||||
|
.def_readonly("transmitErrorCount", &CANErrorCountMessage::transmitErrorCount)
|
||||||
|
.def_readonly("receiveErrorCount", &CANErrorCountMessage::receiveErrorCount)
|
||||||
|
.def_readonly("busOff", &CANErrorCountMessage::busOff);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace icsneo
|
||||||
|
|
||||||
@@ -13,6 +13,7 @@ void init_network(pybind11::module_&);
|
|||||||
void init_devicetype(pybind11::module_&);
|
void init_devicetype(pybind11::module_&);
|
||||||
void init_message(pybind11::module_&);
|
void init_message(pybind11::module_&);
|
||||||
void init_canmessage(pybind11::module_&);
|
void init_canmessage(pybind11::module_&);
|
||||||
|
void init_canerrorcountmessage(pybind11::module_&);
|
||||||
void init_ethernetmessage(pybind11::module_&);
|
void init_ethernetmessage(pybind11::module_&);
|
||||||
void init_linmessage(pybind11::module_&);
|
void init_linmessage(pybind11::module_&);
|
||||||
void init_tc10statusmessage(pybind11::module_&);
|
void init_tc10statusmessage(pybind11::module_&);
|
||||||
@@ -34,6 +35,7 @@ PYBIND11_MODULE(icsneopy, m) {
|
|||||||
init_network(m);
|
init_network(m);
|
||||||
init_message(m);
|
init_message(m);
|
||||||
init_canmessage(m);
|
init_canmessage(m);
|
||||||
|
init_canerrorcountmessage(m);
|
||||||
init_ethernetmessage(m);
|
init_ethernetmessage(m);
|
||||||
init_linmessage(m);
|
init_linmessage(m);
|
||||||
init_tc10statusmessage(m);
|
init_tc10statusmessage(m);
|
||||||
|
|||||||
Reference in New Issue
Block a user