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.

[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
If return value is non-zero (no Ethernet link), this may be due to the network cable not being connected.

Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Tue Jul 10 2018 14:54:14 by Doxygen 1.8.13