EtherCAT Frame base class. More...
#include <ethercat_frame.h>

Public Member Functions | |
| virtual int | build (const unsigned char *a_buffer) |
| Build and check frame starting from byte array. | |
| virtual unsigned char * | dump (unsigned char *a_buffer) const |
| Dump the contents of a frame into an byte array. | |
| EC_Telegram * | get_telegram () const |
| Get first telegram. | |
| size_t | length (void) const |
| return the length of the whole frame | |
Protected Member Functions | |
| virtual size_t | body_length (void) const |
| Return the length of the body. | |
| virtual bool | check_header (const unsigned char *a_buffer) const =0 |
| Check if received header in byte array complies to the frame data. | |
| virtual unsigned char * | dump_header (unsigned char *a_buffer) const =0 |
| Dump the header. | |
| EC_Frame () | |
| Constructor. | |
| EC_Frame (const EC_Frame &a_frame) | |
| EC_Frame (EC_Telegram *a_telegram) | |
| virtual size_t | header_length (void) const =0 |
| Return the length of the header. | |
Protected Attributes | |
| EC_Telegram * | m_telegram |
| Pointer to the first EtherCAT. | |
EtherCAT Frame base class.
Definition at line 94 of file ethercat_frame.h.
| EC_Frame::EC_Frame | ( | ) | [protected] |
Constructor.
| EC_Frame::EC_Frame | ( | const EC_Frame & | a_frame | ) | [protected] |
| EC_Frame::EC_Frame | ( | EC_Telegram * | a_telegram | ) | [protected] |
| virtual size_t EC_Frame::body_length | ( | void | ) | const [protected, virtual] |
Return the length of the body.
| virtual int EC_Frame::build | ( | const unsigned char * | a_buffer | ) | [virtual] |
Build and check frame starting from byte array.
Implements EtherCAT_Frame.
| virtual bool EC_Frame::check_header | ( | const unsigned char * | a_buffer | ) | const [protected, pure virtual] |
Check if received header in byte array complies to the frame data.
Implemented in EC_Ethernet_Frame.
| virtual unsigned char* EC_Frame::dump | ( | unsigned char * | a_buffer | ) | const [virtual] |
Dump the contents of a frame into an byte array.
Implements EtherCAT_Frame.
| virtual unsigned char* EC_Frame::dump_header | ( | unsigned char * | a_buffer | ) | const [protected, pure virtual] |
Dump the header.
Implemented in EC_Ethernet_Frame.
| EC_Telegram* EC_Frame::get_telegram | ( | ) | const [inline, virtual] |
| virtual size_t EC_Frame::header_length | ( | void | ) | const [protected, pure virtual] |
Return the length of the header.
Implemented in EC_Ethernet_Frame.
| size_t EC_Frame::length | ( | void | ) | const [inline, virtual] |
return the length of the whole frame
Implements EtherCAT_Frame.
Definition at line 100 of file ethercat_frame.h.
EC_Telegram* EC_Frame::m_telegram [protected] |
Pointer to the first EtherCAT.
Definition at line 124 of file ethercat_frame.h.