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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user