43 #ifndef _MLAB_CANOPENUTIL_H_ 44 #define _MLAB_CANOPENUTIL_H_ 51 namespace mira {
namespace can {
84 static_assert(
sizeof(T) == 0,
"Not implemented for this type.");
121 std::size_t offsete);
133 static_assert(
sizeof(T) == 0,
"Not implemented for this type.");
MLAB_CAN_EXPORT uint8 read< uint8 >(const CANMessage &message, std::size_t offset)
CANopen read for uint8.
MLAB_CAN_EXPORT std::size_t write< int8 >(CANMessage &ioMmessage, std::size_t offset, int8 value)
CANopen write for int8.
MLAB_CAN_EXPORT std::size_t write< uint32 >(CANMessage &ioMmessage, std::size_t offset, uint32 value)
CANopen write for uint32.
MLAB_CAN_EXPORT std::string getNodeStatusString(CANOpenNodeStatus pStatus)
Get a textual description of a CANopen node status.
MLAB_CAN_EXPORT int16 read< int16 >(const CANMessage &message, std::size_t offset)
CANopen read for int16.
CANOpenError
CANopen error definitions.
Definition: CANOpenDefs.h:53
MLAB_CAN_EXPORT std::size_t write< uint64 >(CANMessage &ioMmessage, std::size_t offset, uint64 value)
CANopen write for uint64.
MLAB_CAN_EXPORT std::size_t write< float >(CANMessage &ioMmessage, std::size_t offset, float value)
CANopen write for float.
MLAB_CAN_EXPORT std::string getErrorMsg(CANOpenError pError)
Get a textual description of a CANopen error.
MLAB_CAN_EXPORT std::string getAccessModeString(CANOpenAccessMode pMode)
Get a textual description of a CANopen access mode.
T read(const CANMessage &message, std::size_t offset)
A template based read operation of CANopen data types.
Definition: CANOpenUtil.h:82
Global definitions of the CANopen standard.
CANOpenAccessMode
The different access rights of a CANopen SDO.
Definition: CANOpenDefs.h:143
MLAB_CAN_EXPORT std::size_t write< int16 >(CANMessage &ioMmessage, std::size_t offset, int16 value)
CANopen write for int16.
MLAB_CAN_EXPORT std::size_t write< uint16 >(CANMessage &ioMmessage, std::size_t offset, uint16 value)
CANopen write for uint16.
MLAB_CAN_EXPORT std::size_t write< double >(CANMessage &ioMmessage, std::size_t offset, double value)
CANopen write for double.
MLAB_CAN_EXPORT float read< float >(const CANMessage &message, std::size_t offsete)
CANopen read for float.
CANOpenType
CANopen type definitions.
Definition: CANOpenDefs.h:92
MLAB_CAN_EXPORT double read< double >(const CANMessage &message, std::size_t offset)
CANopen read for double.
MLAB_CAN_EXPORT std::size_t write< uint8 >(CANMessage &ioMmessage, std::size_t offset, uint8 value)
CANopen write for uint8.
CANOpenNodeStatus
The different CANopen node states.
Definition: CANOpenDefs.h:154
MLAB_CAN_EXPORT std::string getTypeString(CANOpenType pType)
Get a textual description of a CANopen type.
std::size_t write(CANMessage &ioMmessage, std::size_t offset, T value)
A template based write operation of CANopen data types.
Definition: CANOpenUtil.h:131
MLAB_CAN_EXPORT uint32 read< uint32 >(const CANMessage &message, std::size_t offset)
CANopen read for uint32.
#define MLAB_CAN_EXPORT
Definition: CANExports.h:57
MLAB_CAN_EXPORT int32 read< int32 >(const CANMessage &message, std::size_t offset)
CANopen read for int32.
MLAB_CAN_EXPORT std::size_t write< int64 >(CANMessage &ioMmessage, std::size_t offset, int64 value)
CANopen write for int64.
MLAB_CAN_EXPORT std::size_t write< int32 >(CANMessage &ioMmessage, std::size_t offset, int32 value)
CANopen write for int32.
MLAB_CAN_EXPORT int8 read< int8 >(const CANMessage &message, std::size_t offset)
CANopen read for int8.
A definition of a CAN message.
Definition: CANDefs.h:105
Common CANbus definitions.
MLAB_CAN_EXPORT int64 read< int64 >(const CANMessage &message, std::size_t offset)
CANopen read for int64.
MLAB_CAN_EXPORT uint64 read< uint64 >(const CANMessage &message, std::size_t offset)
CANopen read for uint64.
MLAB_CAN_EXPORT uint16 read< uint16 >(const CANMessage &message, std::size_t offset)
CANopen read for uint16.
CANOpenSDOKind
The different SDO kinds.
Definition: CANOpenDefs.h:130
MLAB_CAN_EXPORT std::string getSDOKindString(CANOpenSDOKind pKind)
Get a textual description of a CANopen SDO kind.