Versions Compared

Key

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

...

Anchor11404801140480 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.c Anchor11404851140485

Prototype

...


...

static void CPU_INT08U opt, void *p_data, NET_ERR

                                          CPU_INT08U  opt,
                                          void       *p_data,
                                          NET_ERR    *p_err);
HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan2
Anchor
11525351152535
Code Block
          static void NetWiFiMgr_IO_Ctrl (NET_IF     *p_if,
Anchor
11525361152536
Anchor
11525371152537
Anchor
11525381152538
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’. Anchor11404951140495 Arguments Anchor11404961140496static’.

Arguments

p_if Anchor11404971140497

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

Anchor11404981140498opt Anchor11404991140499

I/O operation to perform.

...

11406811140681p_data Anchor11407151140715

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_erranchor11405011140501

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

...

...

Returned Values

...

11405031140503None. Anchor11405041140504

Required Configuration

...

1140505None. Anchor11405061140506

Notes/Warnings

...

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

  • NET_DEV_LINK_STATE_GET_INFO

...

  • NET_DEV_LINK_STATE_UPDATE

Anchor11407341140734The 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.