Public Member Functions | Private Attributes
EtherCAT_DataLinkLayer Class Reference

Abstract representation of the EtherCAT DLL. More...

#include <ethercat_dll.h>

List of all members.

Public Member Functions

void attach (struct netif *netif)
 Attach the DLL to a networking interface.
 EtherCAT_DataLinkLayer ()
bool rx (EtherCAT_Frame *a_frame, int a_handle)
 receive an EtherCAT frame previously sent by tx() (blocking call!)
int tx (EtherCAT_Frame *a_frame)
 transmit an EtherCAT frame (non-blocking call)
bool txandrx (EtherCAT_Frame *a_frame)
 transmit and receive EtherCAT frame (blocking call!)

Private Attributes

struct netifm_if

Detailed Description

Abstract representation of the EtherCAT DLL.

Definition at line 44 of file ethercat_dll.h.


Constructor & Destructor Documentation

Definition at line 47 of file ethercat_dll.h.


Member Function Documentation

void EtherCAT_DataLinkLayer::attach ( struct netif netif)

Attach the DLL to a networking interface.

Parameters:
netifpointer to the NIC
bool EtherCAT_DataLinkLayer::rx ( EtherCAT_Frame a_frame,
int  a_handle 
)

receive an EtherCAT frame previously sent by tx() (blocking call!)

Parameters:
a_frameethercat frame to be sent
a_handlehandle previously returned by tx()
Returns:
false for error/dropped packet

transmit an EtherCAT frame (non-blocking call)

Parameters:
a_frameethercat frame to be sent
Returns:
positive or zero handle on success, negative value for error Successful tx MUST be followed by rx call.

transmit and receive EtherCAT frame (blocking call!)

Parameters:
a_frameethercat frame to be sent NOTE that txandrx will retry sending lost frames.

Member Data Documentation

Definition at line 75 of file ethercat_dll.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