void EI_APP_getPortState(void)
{
OSAL_printf("Port 1 %s speed %s %s Duplex\r\n",
portState.
link == EI_API_ADP_eLinkUp ?
"Up" :
"Down",
portState.speed == EI_API_ADP_ePortSpeed_10Mb ? "10 Mbps" :
portState.speed == EI_API_ADP_ePortSpeed_100Mb ? "100 Mbps" : "invalid",
portState.duplex == EI_API_ADP_ePortDuplex_Half ? "Half" :
portState.duplex == EI_API_ADP_ePortDuplex_Full ? "Full" : "invalid"
);
OSAL_printf("Port 2 %s speed %s %s Duplex\r\n",
portState.
link == EI_API_ADP_eLinkUp ?
"Up" :
"Down",
portState.speed == EI_API_ADP_ePortSpeed_10Mb ? "10 Mbps" :
portState.speed == EI_API_ADP_ePortSpeed_100Mb ? "100 Mbps" : "invalid",
portState.duplex == EI_API_ADP_ePortDuplex_Half ? "Half" :
portState.duplex == EI_API_ADP_ePortDuplex_Full ? "Full" : "invalid"
);
}
ETHIP_API uint32_t EI_API_ADP_getPortState(T *pAdp_p, EI_API_ADP_EPortNo_t portNo_p, EI_API_ADP_SPortState_t *portState_p)
Return Interface Speed and Interface Attributes for a given Ethernet port (Instance Attribute IDs: 1,...
Definition EI_API_ADP_stub.c:4591
EI_API_ADP_EPortLink_t link
Definition EI_API_def.h:252
Definition EI_API_def.h:251