Base class for all EtherCAT register area data structs. More...
#include <ethercat_datastruct.h>
Public Member Functions | |
virtual unsigned char * | dump (unsigned char *a_buffer) const =0 |
Dump the data struct into an array (EtherCAT Little Endian) | |
EC_DataStruct (size_t a_data_length) | |
Constructor. | |
size_t | length () const |
Return length of data array expressed as a number of bytes. | |
virtual | ~EC_DataStruct () |
Destructor. | |
Protected Attributes | |
size_t | m_data_length |
Length of data array expressed as a number of bytes. |
Base class for all EtherCAT register area data structs.
The main purpose of this class is to serialize and deserialize data.
Definition at line 41 of file ethercat_datastruct.h.
EC_DataStruct::EC_DataStruct | ( | size_t | a_data_length | ) | [inline] |
Constructor.
a_data_length | data length expressed as a number of bytes |
Definition at line 47 of file ethercat_datastruct.h.
virtual EC_DataStruct::~EC_DataStruct | ( | ) | [inline, virtual] |
Destructor.
Definition at line 53 of file ethercat_datastruct.h.
virtual unsigned char* EC_DataStruct::dump | ( | unsigned char * | a_buffer | ) | const [pure virtual] |
Dump the data struct into an array (EtherCAT Little Endian)
a_buffer | where data should be dumped |
Implemented in EC_SyncMan, EC_FMMU, EC_SIIControlStatus, EC_ALStatus, EC_ALControl, EC_FixedStationAddress, EC_DLInformation, EC_CoE_Hdr, EC_MbxMsgHdr, and EC_Telegram.
size_t EC_DataStruct::length | ( | ) | const [inline] |
Return length of data array expressed as a number of bytes.
Definition at line 62 of file ethercat_datastruct.h.
size_t EC_DataStruct::m_data_length [protected] |
Length of data array expressed as a number of bytes.
Definition at line 75 of file ethercat_datastruct.h.