OpENer - Open Source EtherNet/IP(TM) I/O Target Stack  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cipethernetlink.h File Reference
#include "typedefs.h"
#include "ciptypes.h"
Include dependency graph for cipethernetlink.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CipEthernetLinkObject
 Data of an CIP Ethernet Link object. More...
 

Macros

#define CIP_ETHERNETLINK_CLASS_CODE   0xF6
 

Functions

EipStatus CipEthernetLinkInit (void)
 Initialize the Ethernet Link Objects data. More...
 
int EncodeInterfaceCapability (EipUint8 **pa_acMsg)
 
int EncodeInterfaceControl (EipUint8 **pa_acMsg)
 
int EncodeInterfaceCounters (EipUint8 **pa_acMsg)
 
int EncodeMediaCounters (EipUint8 **pa_acMsg)
 
EipStatus GetAttributeSingleEthernetLink (CipInstance *RESTRICT const instance, CipMessageRouterRequest *const message_router_request, CipMessageRouterResponse *const message_router_response, struct sockaddr *originator_address, const int encapsulation_session)
 

Variables

CipEthernetLinkObject g_ethernet_link
 

Macro Definition Documentation

#define CIP_ETHERNETLINK_CLASS_CODE   0xF6

Definition at line 12 of file cipethernetlink.h.

Referenced by CipEthernetLinkInit().

Function Documentation

EipStatus CipEthernetLinkInit ( void  )

Initialize the Ethernet Link Objects data.

Returns
kEipStatusOk if initialization was successful, otherwise kEipStatusError

Definition at line 68 of file cipethernetlink.c.

References CIP_ETHERNETLINK_CLASS_CODE, CreateCipClass(), dummy_attribute_udint, dummy_attribute_usint, g_ethernet_link, GetAttributeAll(), GetAttributeSingleEthernetLink(), GetCipInstance(), InsertAttribute(), InsertService(), CipEthernetLinkObject::interface_flags, CipEthernetLinkObject::interface_speed, kCip6Usint, kCipAny, kCipDword, kCipShortString, kCipUdint, kCipUsint, kEipStatusError, kEipStatusOk, kGetableAll, kGetableSingleAndAll, kGetAttributeAll, kGetAttributeSingle, and CipEthernetLinkObject::physical_address.

Referenced by CipStackInit().

Here is the call graph for this function:

Here is the caller graph for this function:

int EncodeInterfaceCapability ( EipUint8 **  pa_acMsg)

Definition at line 150 of file cipethernetlink.c.

References CipEthernetLinkInterfaceCapability::capability_bits, EncodeData(), speed_duplex_array_entry::interface_duplex_mode, speed_duplex_array_entry::interface_speed, kCipDword, kCipUint, kCipUsint, speed_duplex_options::speed_duplex_array, speed_duplex_options::speed_duplex_array_count, and CipEthernetLinkInterfaceCapability::speed_duplex_options.

Referenced by GetAttributeSingleEthernetLink().

Here is the call graph for this function:

Here is the caller graph for this function:

int EncodeInterfaceControl ( EipUint8 **  pa_acMsg)

Definition at line 139 of file cipethernetlink.c.

References CipEthernetLinkInterfaceControl::control_bits, EncodeData(), CipEthernetLinkInterfaceControl::forced_interface_speed, kCipUint, and kCipWord.

Referenced by GetAttributeSingleEthernetLink().

Here is the call graph for this function:

Here is the caller graph for this function:

int EncodeInterfaceCounters ( EipUint8 **  pa_acMsg)

Definition at line 121 of file cipethernetlink.c.

References dummy_attribute_udint, EncodeData(), and kCipUdint.

Referenced by GetAttributeSingleEthernetLink().

Here is the call graph for this function:

Here is the caller graph for this function:

int EncodeMediaCounters ( EipUint8 **  pa_acMsg)

Definition at line 130 of file cipethernetlink.c.

References dummy_attribute_udint, EncodeData(), and kCipUdint.

Referenced by GetAttributeSingleEthernetLink().

Here is the call graph for this function:

Here is the caller graph for this function:

EipStatus GetAttributeSingleEthernetLink ( CipInstance *RESTRICT const  instance,
CipMessageRouterRequest *const  message_router_request,
CipMessageRouterResponse *const  message_router_response,
struct sockaddr *  originator_address,
const int  encapsulation_session 
)

Variable Documentation