Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Get network interface’s last known physical link state.

Files

net_if.h/net_if.c

Prototype

Arguments

if_nbr

Network interface number to get last known physical link state.

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

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.

Notes / Warnings

Use NetIF_IO_Ctrl() with option NET_IF_IO_CTRL_LINK_STATE_GET to get a network interface’s current physical link state.

See section Ethernet PHY Link State for more information on how to get the Link State.

  • No labels