Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

        Here are listed all the functions that implement the BLE APIs.

Functions

NMI_API sint8 m2m_wifi_ble_api_send (uint8 *msg, uint32 len)
 Asynchronous API to send an encapsulated Atmel BLE message over the Wifi Host Interface. More...
 
NMI_API sint8 m2m_wifi_ble_set_gain_table (uint8 table_idx)
 Asynchronous API that notifies the WINC with the Gain Table index from Flash that should use to configure the WiFi and BLE gains. More...
 
sint8 m2m_wifi_req_restrict_ble (void)
 Asynchronous API to request restricting of BLE functionality by placing the BLE processor in a low power state. It is recommended to do this if it is known that BLE functionality will not be used for any significant length of time. More...
 
sint8 m2m_wifi_req_unrestrict_ble (void)
 Asynchronous API to request un-restricting of BLE functionality by reverting the BLE processor to full power mode. More...
 

NMI_API sint8 m2m_wifi_ble_api_send ( uint8 msg,
uint32  len 
)

Asynchronous API to send an encapsulated Atmel BLE message over the Wifi Host Interface.

Parameters
[in]msgPointer to the start of the BLE message to transfer down to the WINC.
[in]lenThe length of the message in octets.
Returns
The function returns M2M_SUCCESS if the command has been successfully queued to the WINC, and a negative value otherwise.

References hif_send(), len, M2M_REQ_DATA_PKT, M2M_REQ_GROUP_WIFI, M2M_WIFI_REQ_BLE_API_SEND, and tstrM2mBleApiMsg::u16Len.

Referenced by m2m_ble_api_write_func().

NMI_API sint8 m2m_wifi_ble_set_gain_table ( uint8  table_idx)

Asynchronous API that notifies the WINC with the Gain Table index from Flash that should use to configure the WiFi and BLE gains.

Returns
The function returns M2M_SUCCESS if the command has been successfully queued to the WINC, and a negative value otherwise.

References hif_send(), M2M_ERR_FAIL, M2M_REQ_GROUP_WIFI, M2M_WIFI_REQ_SET_GAIN_TABLE, NULL, and tstrM2MGainTable::u8GainTable.

Referenced by m2m_wifi_init_start().

NMI_API sint8 m2m_wifi_req_restrict_ble ( void  )

Asynchronous API to request restricting of BLE functionality by placing the BLE processor in a low power state. It is recommended to do this if it is known that BLE functionality will not be used for any significant length of time.

Returns
The function returns M2M_SUCCESS if the command has been successfully queued to the WINC, and a negative value otherwise.
Precondition
  • A Wi-Fi notification callback of type tpfAppWifiCb MUST be implemented and registered during initialization. Registration of the callback is done via the m2m_wifi_init API.

References hif_send(), M2M_REQ_GROUP_WIFI, M2M_SUCCESS, M2M_WIFI_REQ_RESTRICT_BLE, NULL, and ret.

NMI_API sint8 m2m_wifi_req_unrestrict_ble ( void  )

Asynchronous API to request un-restricting of BLE functionality by reverting the BLE processor to full power mode.

Returns
The function returns M2M_SUCCESS if the command has been successfully queued to the WINC, and a negative value otherwise.
Precondition
  • A Wi-Fi notification callback of type tpfAppWifiCb MUST be implemented and registered during initialization. Registration of the callback is done via the m2m_wifi_init API.

References hif_send(), M2M_REQ_GROUP_WIFI, M2M_SUCCESS, M2M_WIFI_REQ_UNRESTRICT_BLE, NULL, and ret.

Referenced by app_ble_wifi_provisioning().