Provides detail on the available callbacks for the Wlan APIs.
Typedefs | |
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(* | tpfAppWifiCb )(uint8 u8MsgType, void *pvMsg) |
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. More... | |
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.
[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.
[in] | pvControlBuf | A pointer to control buffer describing the accompanied message. To be cast to tstrM2mIpCtrlBuf in case of M2M_WIFI_RESP_ETHERNET_RX_PACKET event. |
void(* tpfAppWifiCb)(uint8 u8MsgType, void *pvMsg) |
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.
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.
[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. |