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_GETNET_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_NONENET_IF_ERR_NULL_PTRNET_IF_ERR_NULL_FNCTNET_IF_ERR_INVALID_IFNET_IF_ERR_INVALID_CFGNET_IF_ERR_INVALID_IO_CTRL_OPTNET_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.