NetIF_IsEn

Validate network interface as enabled.

Files

net_if.h/net_if.c

Prototype

          CPU_BOOLEAN NetIF_IsEn(NET_IF_NBR  if_nbr,
                                 NET_ERR    *p_err);

Arguments

if_nbr

Network interface number to validate.

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

DEF_YES

network interface valid and enabled;

DEF_NO

network interface invalid or disabled.

Required Configuration

None.

Notes / Warnings

None.