Net_Init
Initializes µC/TCP-IP and must be called prior to calling any other µC/TCP-IP API functions.
Files
net.h/net.c
Prototype
NET_ERR Net_Init(NET_TASK_CFG *p_rx_task_cfg, NET_TASK_CFG *p_tx_task_cfg, NET_TASK_CFG *p_tmr_task_cfg);
Arguments
p_rx_task_cfg
Pointer to the Rx Task Configuration Object.
p_tx_task_cfg
Pointer to the Tx Dealloc Task Configuration Object.
p_tmr_task_cfg
Pointer to the Timer Task Configuration Object.
Returned Value
NET_ERR_NONE
,
if successful;
Specific initialization error code,
otherwise.
Return value should be inspected to determine whether or not µC/TCP-IP successfully initialized. If µC/TCP-IP did not successfully initialize, search for the returned error code in net_err.h
and source files to locate where the µC/TCP-IP initialization failed.
Required Configuration
None.
Notes / Warnings
Prerequisite modules must be initialized prior to calling Net_Init()
. See Prerequisite module initialization.