Public Member Functions | Protected Member Functions | Private Attributes
Logical_Addressing_Telegram Class Reference

EtherCAT telegram for all _logical addressing_ modes. More...

#include <ethercat_logical_addressed_telegram.h>

Inheritance diagram for Logical_Addressing_Telegram:
Inheritance graph
[legend]

List of all members.

Public Member Functions

uint32_t get_adr () const
 Get address field.
 Logical_Addressing_Telegram (uint8_t a_idx=0x00, uint32_t a_adr=0x00000000, uint16_t a_wkc=0x0000, uint16_t a_datalen=0x0000, const unsigned char *a_data=NULL)
 Constructor.
void set_adr (uint32_t a_adr)
 Set address field.

Protected Member Functions

virtual const unsigned char * build_command_field (const unsigned char *a_buffer)=0
virtual const unsigned char * build_header_head (const unsigned char *a_buffer)
virtual unsigned char * dump_command_field (unsigned char *a_buffer) const =0
virtual unsigned char * dump_header_head (unsigned char *a_buffer) const
 Dump first 6 bytes of the header (varying across different telegrams)

Private Attributes

uint32_t m_adr

Detailed Description

EtherCAT telegram for all _logical addressing_ modes.

EtherCAT telegram for all _logical addressing_ modes, that is logical read (LRD), logical write (LWR), and logical Read-Write (LRW)

Definition at line 43 of file ethercat_logical_addressed_telegram.h.


Constructor & Destructor Documentation

Logical_Addressing_Telegram::Logical_Addressing_Telegram ( uint8_t  a_idx = 0x00,
uint32_t  a_adr = 0x00000000,
uint16_t  a_wkc = 0x0000,
uint16_t  a_datalen = 0x0000,
const unsigned char *  a_data = NULL 
)

Constructor.

Parameters:
a_idxindex
a_adrlogical address (4 bytes)
a_wkcworking counter
a_datalendata_length
a_datadata

Member Function Documentation

virtual const unsigned char* Logical_Addressing_Telegram::build_command_field ( const unsigned char *  a_buffer) [protected, pure virtual]

Implemented in LRW_Telegram, LWR_Telegram, and LRD_Telegram.

virtual const unsigned char* Logical_Addressing_Telegram::build_header_head ( const unsigned char *  a_buffer) [protected, virtual]

Build and check first 6 bytes of the header (varying across different telegrams)

Parameters:
a_bufferAdress to start writing
Returns:
Address to continu writing

Implements EC_Telegram.

virtual unsigned char* Logical_Addressing_Telegram::dump_command_field ( unsigned char *  a_buffer) const [protected, pure virtual]

Implemented in LRW_Telegram, LWR_Telegram, and LRD_Telegram.

virtual unsigned char* Logical_Addressing_Telegram::dump_header_head ( unsigned char *  a_buffer) const [protected, virtual]

Dump first 6 bytes of the header (varying across different telegrams)

Parameters:
a_bufferAdress to start writing
Returns:
Address to continu writing

Implements EC_Telegram.

uint32_t Logical_Addressing_Telegram::get_adr ( ) const [inline]

Get address field.

Returns:
4 byte logical address

Definition at line 69 of file ethercat_logical_addressed_telegram.h.

void Logical_Addressing_Telegram::set_adr ( uint32_t  a_adr) [inline]

Set address field.

Parameters:
a_adr4 byte logical address

Definition at line 62 of file ethercat_logical_addressed_telegram.h.


Member Data Documentation

Definition at line 82 of file ethercat_logical_addressed_telegram.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 Aug 27 2015 14:47:07