Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NetWiFiMgr_IO_Ctrl()

Anchor11406111140611A device’s input/output control/IO_Ctrl() function is used to implement miscellaneous functionality such as setting and getting the link state. An optional void pointer to a data variable is passed into the function and may be used to get device parameters from the caller, or to return device parameters to the caller. Anchor11404831140483

Files

Anchor11404841140484Every Wireless Manager layer net_wifi_mgr.canchor11404851140485

Prototype

...

rowspan2

...

Anchor11404941140494 

 

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’static.anchor11404951140495

Arguments

...

p_ifanchor11404971140497

Pointer to the interface to handle network device I/O operations.

...

11404981140498opt Anchor11404991140499

I/O operation to perform.

Anchor11406811140681p_dataanchor11407151140715

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 Anchor11405011140501

Pointer to variable that will receive the return error code from this function.

...

...

Returned Values

Anchor11405031140503None. Anchor11405041140504

Required Configuration

...

11405051140505None. Anchor11405061140506

Notes/Warnings

Anchor11407311140731μC/TCP-IP defines the following default options: Anchor11407321140732

...

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.