mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Bindings: Python: Add CANErrorCountMessage
This commit is contained in:
@@ -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_message(pybind11::module_&);
|
||||
void init_canmessage(pybind11::module_&);
|
||||
void init_canerrorcountmessage(pybind11::module_&);
|
||||
void init_ethernetmessage(pybind11::module_&);
|
||||
void init_linmessage(pybind11::module_&);
|
||||
void init_tc10statusmessage(pybind11::module_&);
|
||||
@@ -34,6 +35,7 @@ PYBIND11_MODULE(icsneopy, m) {
|
||||
init_network(m);
|
||||
init_message(m);
|
||||
init_canmessage(m);
|
||||
init_canerrorcountmessage(m);
|
||||
init_ethernetmessage(m);
|
||||
init_linmessage(m);
|
||||
init_tc10statusmessage(m);
|
||||
|
||||
Reference in New Issue
Block a user