1.1.19 Client - Network Interface APIs
This interface provides functionality required for network interface operations.
Multiple network interfaces are supported, in case separate configuration are required. Network interfaces are defined by the WDRV_WINC_NETIF_IDX
type and can be associated with STA and Soft-AP operations through the WDRV_WINC_CONN_CFG
structure element ifIdx
.
Network interfaces are normally left in auto-configure mode where DHCP or SLAAC assigns network properties. To change the auto-configure mode the function WDRV_WINC_NetIfIPAutoConfModeSet
can be used to set a WDRV_WINC_NETIF_AAC_TYPE
type for the network interface.
When not set to auto-configure the network properties the function WDRV_WINC_NetIfIPAddrSet
can be used to set IP address information. WDRV_WINC_NetIfIPRouteSet
can be used to set default gateway information.
The MAC address associated with the interface can be obtained by calling the function WDRV_WINC_NetIfMACAddrGet
.
Network events are received via a WDRV_WINC_NETIF_EVENT_HANDLER
type callback registered via the function WDRV_WINC_NetIfRegisterEventCallback
. This callback will receive WDRV_WINC_NETIF_EVENT_TYPE
type events which include interface up/down notification as well as address auto-configuration.