The Ethernet Link Object maintains link-specific counters and status information for an IEEE 802.3 communications interface. Each device supports exactly one instance of the Ethernet Link Object for each communications interface on the module.
Attribute ID | Access Rule | NV | Name | Data Type | Value | Description | |
---|---|---|---|---|---|---|---|
3 | Get, Set ¹ | NV | Physical Address | ARRAY of 6 USINTs | <MAC layer address> | The Physical Address attribute contains the interface's MAC layer address. The Physical address is an array of octets. The recommended display format is XX-XX-XX-XX-XX-XX , starting with the first octet.
| |
6 | Get ², Set | NV | Interface Control | STRUCT of: | Bit | Content | Configuration for physical interface |
Control Bits | UINT | 0: | 0/1 | Auto-negotiate
| |||
1: | 0/1 | Forced Duplex Mode Auto-negotiate bit = 0: The forced Duplex Mode bit indicates whether the interface shall operate in full or half duplex mode.
Auto-negotiate bit = 1: If auto-negotiation is enabled, attempting to set the Forced Duplex Mode bit shall result in status code 0x0C (Object State Conflict). | |||||
2..15: | 0 | reserved Shall be set to 0 . | |||||
Forced Interface Speed | WORD | <speed value> | Speed in Mbps (10, 100, 1000, etc.) |
Table Footnotes:
¹ Set access only with application's Set function
² Get access only with application's Get function
Functions | |
uint32_t | EI_API_ADP_getMacAddr (T *pAdp_p, EI_API_ADP_SParam_t *pMacAddr_p) |
Get the adapter MAC address (Instance Attribute ID: 3). More... | |
uint32_t | EI_API_ADP_getIntfConfig (T *pAdp_p, uint8_t intfId_p, EI_API_ADP_UIntfConf_t *pIntfConf_p) |
Get the current adapter configuration of interface with the specified ID (Instance Attribute ID: 6). More... | |
uint32_t | EI_API_ADP_setIntfConfig (T *adp, uint8_t intfId, EI_API_ADP_UIntfConf_t intfConfig) |
Set the adapter Ethernet interface configuration (Instance Attribute ID: 6). More... | |