...
Every Wireless Manager layer net_wifi_mgr.c
Prototype
Code Block |
---|
static void NetWiFiMgr_IO_Ctrl (NET_IF *p_if,
CPU_INT08U opt,
void *p_data,
NET_ERR *p_err);
|
Note that since every Wireless Manager’s IO_Ctrl()
function is accessed only by function pointer via the Wireless Manager’s API structure, it doesn’t need to be globally available and should therefore be declared as ‘static
’.
...
μC/TCP-IP defines the following default options:
NET_DEV_LINK_STATE_GET_INFO
NET_DEV_LINK_STATE_UPDATE
The NET_DEV_LINK_STATE_GET_INFO
option expects p_data
to point to a variable of type NET_DEV_LINK_WIFI
for the case of an Ethernet driver. This variable has one field, link state, which are filled in by the device driver API. μC/TCP-IP internally uses this option code in order to periodically poll the driver for linkstate.