@CHIP-RTOS C Library V2.00 - BIOS API
BIOS_Ethernet_State
Detect Ethernet link state. unsigned int BIOS_Ethernet_State ( unsigned int *init_error,
unsigned int *phy_state ); Parameters
init_error
- non-zero indicates initialization or reset procedure
of ethernet device failed.
phy_state
- SC13 only: phy status
Bit 14 1 = Link Not detected
Bit 07 1 = 100Base-TX mode, 0=10Base-T mode
Bit 06 1 = Device in Full Duplex mode
Return Value
- non-zero indicates have no Ethernet link.
Comments
- If return value is non-zero (no Ethernet link), this
may be due to the network cable not being connected.
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|