IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ ethGetModeExt()

unsigned int ethGetModeExt ( const char *  interfaceName,
unsigned int *  initError,
unsigned int *  phyState 
)

Retrieve status of a Ethernet connection.

Parameters
[in]interfaceNameName of the Ethernet interface from which the status should be retrieved. Possible names: "eth0" and "eth1".
[out]initErrorNon-zero indicates initialization procedure of the Ethernet PHY device failed.
[out]phyStateBit 14 1 = Link Not detected
Bit 07 1 = 100Base-TX mode, 0=10Base-T mode
Bit 06 1 = Device in Full Duplex mode
Returns
If return value is non-zero (no Ethernet link), this may be due to the network cable not being connected.
Since
V0.86





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Feb 9 2018 17:44:49 by Doxygen 1.8.13