...
Anchor
Files
Anchor
net_if.h/net_if.c
Prototype
HTML Table | summary | |||
---|---|---|---|---|
class | Code_Listing | |||
Table Row (tr) | ||||
Table Cell (td) | ||||
| ||||
Anchor | 1123198 | 1123198 | ||
Code Block | ||||
CPU_BOOLEAN NetIF_LinkStateGet(NET_IF_NBR if_nbr, Anchor | | 1123200 | 1123200 | NET_ERR *perr);|
Table Row (tr) |
...
NET_ERR *p_err); |
Arguments
if_nbr
Network interface number to get last known physical link state.
Anchor
p_err
Pointer to variable that will receive the return error code from this function:
...
...
NET_IF_ERR_NONE
...
...
NET_IF_ERR_INVALID_IF
...
NET_
...
ERR_
...
FAULT_LOCK
...
_ACQUIRE
Returned Value
Anchor
NET_IF_LINK_UP
if no errors and network interface’s last known physical link state was ‘UP’;
...
NET_IF_LINK_DOWN
otherwise.
...
Required Configuration
...
None. Anchor
Notes / Warnings
Anchor
NetIF_IO_Ctrl()
with option NET_IF_IO_CTRL_LINK_STATE_GET
to get a network interface’s current physical link state.See section Network Interface Link State for more information on how to get the Link State.