NetIF_GetExtAvailCtr

Get the external interface base number.

Files

net_if.h/net_if.c

Prototype

          NET_IF_NBR  NetIF_GetNbrBaseCfgd(void);

Arguments

None.

Returned Value

ID of the first interface configured. 

Required Configuration

None.

Notes

  1. Interface ID start at 0 or 1 depending if the loopback interface is enabled or not. 
  2. You can find the number of external interface added/configured by calling NetIF_GetExtAvailCtr(). By knowing the ID of the first external interface and the number of external interface, it is possible to browse in a generic way all interfaces.