Public Member Functions | Public Attributes | Friends
EC_MbxMsgHdr Class Reference

EtherCAT MbxMsg header. More...

#include <ethercat_mbx.h>

Inheritance diagram for EC_MbxMsgHdr:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual unsigned char * dump (unsigned char *a_buffer) const
 Dump the data struct into an array (EtherCAT Little Endian)
 EC_MbxMsgHdr (uint16_t a_length, EC_FixedStationAddress a_address, EC_MbxMsgPriority a_priority, EC_MbxMsgType a_type)
 Constructor.
 EC_MbxMsgHdr (const unsigned char *a_buffer)
 Constructor from data array.

Public Attributes

EC_FixedStationAddress m_address
uint16_t m_length
EC_MbxMsgPriority m_priority
EC_MbxMsgType m_type

Friends

class EtherCAT_Router

Detailed Description

EtherCAT MbxMsg header.

Definition at line 107 of file ethercat_mbx.h.


Constructor & Destructor Documentation

EC_MbxMsgHdr::EC_MbxMsgHdr ( uint16_t  a_length,
EC_FixedStationAddress  a_address,
EC_MbxMsgPriority  a_priority,
EC_MbxMsgType  a_type 
) [inline]

Constructor.

Parameters:
a_lengthLength of the MbxMsg
a_address
  • For Master/Slave and Slave/Master communication: Address of destination.
  • For slave to slave communication (routing by Master). Slave puts station address of destination (it must therefore now this address!) so master knows where to send it. Master (in the router) alters address field so destination slave knows where the message came from.
a_priorityPriority of this message
a_typeType of this Message (higher level protocol)

Definition at line 125 of file ethercat_mbx.h.

EC_MbxMsgHdr::EC_MbxMsgHdr ( const unsigned char *  a_buffer)

Constructor from data array.


Member Function Documentation

virtual unsigned char* EC_MbxMsgHdr::dump ( unsigned char *  a_buffer) const [virtual]

Dump the data struct into an array (EtherCAT Little Endian)

Parameters:
a_bufferwhere data should be dumped
Returns:
pointer just beyond the array

Implements EC_DataStruct.


Friends And Related Function Documentation

friend class EtherCAT_Router [friend]

Definition at line 109 of file ethercat_mbx.h.


Member Data Documentation

Definition at line 143 of file ethercat_mbx.h.

Definition at line 142 of file ethercat_mbx.h.

Definition at line 145 of file ethercat_mbx.h.

Definition at line 146 of file ethercat_mbx.h.


The documentation for this class was generated from the following file:


ros_ethercat_eml
Author(s): Tom Panis, Klaas Gadeyne, Bob Koninckx, Austin Hendrix, Manos Nikolaidis
autogenerated on Thu Jul 4 2019 20:01:50