@CHIP-RTOS C Library - 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/SC1x3/SC2x 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.
In the SC12, a zero is output to phy_state.
SC1x3 Comments- This function references ETH0.
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
Supported since or modified in @CHIP-RTOS version-
SC12 | SC13 | SC11 | SC1x3 | SC2x |
-
V1.03 | V1.00 | n/a | V0.90 | V1.00 |
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|