Cypress PSoC 6 Bluetooth Low Energy Middleware Library 3.60

General Description

The API are used for enable user to use 2Mbps feature of BLE Stack.

Functions

cy_en_ble_api_result_t Cy_BLE_SetPhy (const cy_stc_ble_set_phy_info_t *param)
 This function allows application to set the PHY for the current connection. More...
 
cy_en_ble_api_result_t Cy_BLE_GetPhy (uint8_t param)
 This function allows the application to read the current PHY setting for the specified connection. More...
 

Function Documentation

◆ Cy_BLE_SetPhy()

cy_en_ble_api_result_t Cy_BLE_SetPhy ( const cy_stc_ble_set_phy_info_t param)

This function allows application to set the PHY for the current connection.

This is a non-blocking function and successful operation is informed through 'CY_BLE_EVT_SET_PHY_COMPLETE'. Actual PHY used by controller will be informed through the 'CY_BLE_EVT_PHY_UPDATE_COMPLETE' event.

Parameters
paramparameter is of type 'cy_stc_ble_set_phy_info_t'.
Returns
cy_en_ble_api_result_t : Return value indicates whether the function succeeded or failed. Following are the possible error codes.
Errors codes Description
CY_BLE_SUCCESS On successful operation.
CY_BLE_ERROR_NO_DEVICE_ENTITY Device identified by bdHandle is not present
CY_BLE_ERROR_INVALID_PARAMETER Null pointer passed.
CY_BLE_ERROR_MEMORY_ALLOCATION_FAILED If Memory allocation failed.
CY_BLE_ERROR_INSUFFICIENT_RESOURCES If BLE Stack resources are unavailable.

◆ Cy_BLE_GetPhy()

cy_en_ble_api_result_t Cy_BLE_GetPhy ( uint8_t  param)

This function allows the application to read the current PHY setting for the specified connection.

This is a non-blocking function. Current PHY setting (TxPhy, RxPhy) is informed through 'CY_BLE_EVT_GET_PHY_COMPLETE' event.

Parameters
paramPeer bdHandle
Returns
cy_en_ble_api_result_t : Return value indicates whether the function succeeded or failed. Following are the possible error codes.
Errors codes Description
CY_BLE_SUCCESS On successful operation.
CY_BLE_ERROR_NO_DEVICE_ENTITY Device identified by bdHandle is not present.
CY_BLE_ERROR_MEMORY_ALLOCATION_FAILED If Memory allocation failed.
CY_BLE_ERROR_INSUFFICIENT_RESOURCES If BLE Stack resources are unavailable.