Provides detail on the available callbacks for the Wlan APIs.
|
typedef void(* | tpfAppEthCb )(uint8 u8MsgType, void *pvMsg, void *pvCtrlBuf) |
| Ethernet (Bypass mode) notification callback function receiving Bypass mode events as defined in the Wi-Fi responses enumeration tenuM2mStaCmd. More...
|
|
typedef void(* | tpfAppEthCb )(uint8 u8MsgType, void *pvMsg, void *pvCtrlBuf) |
|
typedef void(* | tpfAppWifiCb )(uint8 u8MsgType, void *pvMsg) |
| This is the main callback function for the Wi-Fi driver and is responsible for processing any M2M_WIFI events that are received on the Wi-Fi interface. These events (notifications) are usually received in response to earlier Wi-Fi requests such as m2m_wifi_request_scan, m2m_wifi_connect_open, m2m_wifi_get_connection_info m2m_wifi_req_curr_rssi, m2m_wifi_get_system_time, etc. More...
|
|
typedef void(* | tpfAppWifiCb )(uint8 u8MsgType, void *pvMsg) |
|
void(* tpfAppEthCb)(uint8 u8MsgType, void *pvMsg, void *pvCtrlBuf) |
Ethernet (Bypass mode) notification callback function receiving Bypass mode events as defined in the Wi-Fi responses enumeration tenuM2mStaCmd.
If bypass mode is enabled, applications must ensure this callback function is registered
with the Wi-Fi driver by calling @ref m2m_wifi_init.
- Parameters
-
[in] | u8MsgType | Type of notification. Possible types are:
|
[in] | pvMsg | A pointer to a buffer containing the notification parameters (if any). It should be cast to the correct data type corresponding to the notification type. |
For example, it could be a pointer to the buffer holding the received frame in case a M2M_WIFI_RESP_ETHERNET_RX_PACKET event is received.
- Parameters
-
- Warning
- Make sure that the application defines ETH_MODE.
- See Also
- m2m_wifi_init
If bypass mode is enabled, applications must ensure this callback function is registered
with the Wi-Fi driver by calling @ref m2m_wifi_init.
- Parameters
-
[in] | u8MsgType | Type of notification. Possible types are:
|
[in] | pvMsg | A pointer to a buffer containing the notification parameters (if any). It should be cast to the correct data type corresponding to the notification type. |
For example, it could be a pointer to the buffer holding the received frame in case of M2M_WIFI_RESP_ETHERNET_RX_PACKET event.
- Parameters
-
- Warning
- Make sure that the application defines ETH_MODE.
- See Also
- m2m_wifi_init
typedef void(* tpfAppEthCb)(uint8 u8MsgType, void *pvMsg, void *pvCtrlBuf) |
void(* tpfAppWifiCb)(uint8 u8MsgType, void *pvMsg) |
This is the main callback function for the Wi-Fi driver and is responsible for processing any M2M_WIFI events that are received on the Wi-Fi interface. These events (notifications) are usually received in response to earlier Wi-Fi requests such as m2m_wifi_request_scan, m2m_wifi_connect_open, m2m_wifi_get_connection_info m2m_wifi_req_curr_rssi, m2m_wifi_get_system_time, etc.
Wi-Fi's main callback function handler, for handling the M2M_WIFI events received on the Wi-Fi interface. Such notifications are received in response to Wi-Fi operations such as m2m_wifi_request_scan, m2m_wifi_connect_open, m2m_wifi_connect_wep, m2m_wifi_connect_psk, m2m_wifi_connect_1x_mschap2, m2m_wifi_connect_1x_tls.
Most Wi-Fi APIs are implemented in an asynchronous mode and calling them generates information
that is then passed back to the application via this callback. For instance, a set of detected
networks to be passed back as a result to a call to @ref m2m_wifi_request_scan.
Applications must ensure a callback function is registered with the Wi-Fi driver by
calling @ref m2m_wifi_init.
- Parameters
-
[in] | u8MsgType | Type of notification. Possible types are:
|
[in] | pvMsg | A pointer to a buffer containing the notification parameters (if any). It should be cast to the correct data type corresponding to the notification type. |
- See Also
- tstrM2mWifiStateChanged tstrM2MWPSInfo tstrM2mScanDone tstrM2mWifiscanResult m2m_wifi_init
Wi-Fi operations are implemented in an asynchronous mode, and all incoming information/status
are to be handled through this callback function when the corresponding notification is received.
Applications are expected to assign this wi-fi callback function by
calling @ref m2m_wifi_init.
- Parameters
-
[in] | u8MsgType | Type of notification. Possible types are:
|
[in] | pvMsg | A pointer to a buffer containing the notification parameters (if any). It should be cast to the correct data type corresponding to the notification type. |
- See Also
- tstrM2mWifiStateChanged tstrM2MWPSInfo tstrM2mScanDone tstrM2mWifiscanResult m2m_wifi_init
typedef void(* tpfAppWifiCb)(uint8 u8MsgType, void *pvMsg) |