Versions Compared

Key

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

Get the external interface base number.

Files

net_if.h/net_if.c

Prototype

Code Block
          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.