Bindings: Python: Add CANErrorCountMessage

This commit is contained in:
Kyle Schwarz
2024-12-23 10:28:19 -05:00
parent b2161211c5
commit c249df8756
3 changed files with 21 additions and 0 deletions
@@ -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