Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10914721091472 NetIF_LinkStateGet() Anchor12647021264702Get network interface’s last known physical link state. Anchor10914741091474

Files

Anchor10914751091475net_if.h/net_if.c Anchor10914761091476

Prototype

NET_ERR *perr);
HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan2
Anchor
11231981123198
Code Block

          CPU_BOOLEAN NetIF_LinkStateGet(NET_IF_NBR  if_nbr,
Anchor
11232001123200
Table Row (tr)

...


                                         NET_ERR    *p_err);

Arguments

if_nbr

Network interface number to get last known physical link state.

Anchor10914811091481 perr Anchor12546411254641p_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

Anchor13248281324828NET_IF_LINK_UP Anchor12712271271227

if no errors and network interface’s last known physical link state was ‘UP’;

...

1271228NET_IF_LINK_DOWN Anchor12546551254655

otherwise.

...

Required Configuration

...

None. Anchor10914911091491

Notes / Warnings

Anchor10914921091492Use 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.