IP Functions
NetIP_CfgAddrAdd()
Add a static IP host address, subnet mask, and default gateway to an interface.
...
net_ip.h/net_ip.c
Prototype
...
Arguments
if_nbr
Interface number to configure.
...
Pointer to variable that will receive the error code from this function:
NET_IP_ERR_NONE
NET_IP_ERR_INVALID_ADDR_HOST
NET_IP_ERR_INVALID_ADDR_GATEWAY
NET_IP_ERR_ADDR_CFG_STATE
NET_IP_ERR_ADDR_TBL_FULL
NET_IP_ERR_ADDR_CFG_IN_USE
NET_IF_ERR_INVALID_IF
NET_OS_ERR_LOCK
Returned Value
DEF_OK
,
if valid IP address, subnet mask, and default gateway statically-configured;
...