NetIF_IO_Ctrl

Handle network interface and/or device specific (I/O) control(s).

Files

net_if.h/net_if.c

Prototype

          void NetIF_IO_Ctrl(NET_IF_NBR  if_nbr,
                             CPU_INT08U  opt,
                             void       *p_data,
                             NET_ERR    *p_err);

Arguments

if_nbr

Network interface number to handle (I/O) controls.

opt

Desired I/O control option code to perform; additional control options may be defined by the device driver:

NET_IF_IO_CTRL_LINK_STATE_GET
NET_IF_IO_CTRL_LINK_STATE_UPDATE

p_data

Pointer to variable that will receive the I/O control information.

p_err

Pointer to variable that will receive the return error code from this function:

NET_IF_ERR_NONE
NET_IF_ERR_NULL_PTR
NET_IF_ERR_NULL_FNCT
NET_IF_ERR_INVALID_IF
NET_IF_ERR_INVALID_CFG
NET_IF_ERR_INVALID_IO_CTRL_OPT
NET_ERR_FAULT_LOCK_ACQUIRE

Returned Value

None.

Required Configuration

None.

Notes / Warnings

Additional error codes may be returned by the specific interface or device driver.