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"
);
}