...
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);
|
...
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 linkstatelink state.