...
Anchor
Files
Anchor
net_wifi_mgr.c
Prototype
...
...
HTML Table | summary | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
class | Code_Listing | |||||||||
Table Row (tr) | ||||||||||
Table Cell (td) | ||||||||||
| ||||||||||
Anchor | 1152535 | 1152535 | static void||||||||
Code Block | ||||||||||
static void NetWiFiMgr_IO_Ctrl (NET_IF *p_if, Anchor | | 1152536 | 1152536 | CPU_INT08U opt,|||||||
Anchor | 1152537 | 1152537 | void *p_data,||||||||
Anchor | 1152538 | 1152538 | NET_ERR||||||||
Table Row (tr) |
...
|
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’. Anchor
static
’.Arguments
p_if
1140497 Anchor
Pointer to the interface to handle network device I/O operations.
Anchor
opt
I/O operation to perform.
...
p_data
A pointer to a variable containing the data necessary to perform the operation or a pointer to a variable to store data associated with the result of the operation.
...
p_err
anchor
Pointer to variable that will receive the return error code from this function.
...
...
Returned Values
...
Required Configuration
...
Notes/Warnings
...
NET_DEV_LINK_STATE_GET_INFO
...
NET_DEV_LINK_STATE_UPDATE
Anchor
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.