Data Length Extension (DLE) API

group group_ble_common_Data_length_extension_api_functions

The API are used for enable user to use Data Length Extension (DLE) feature of BLE Stack.

Functions

cy_en_ble_api_result_t Cy_BLE_GetDataLength(void)

This function allows the application to read the suggested and maximum Tx/Rx packet size and suggested and maximum Tx/Rx time that the BLE Stack uses.

This is a non-blocking function. Current data length parameters are informed through the cy_stc_ble_data_length_param_t* type event parameter returned with the ‘CY_BLE_EVT_GET_DATA_LENGTH_COMPLETE’ event.

Errors codes

Description

CY_BLE_SUCCESS

On successful operation.

CY_BLE_ERROR_MEMORY_ALLOCATION_FAILED

If Memory allocation failed.

CY_BLE_ERROR_INSUFFICIENT_RESOURCES

If BLE Stack resources are unavailable.

Returns

cy_en_ble_api_result_t : Return value indicates whether the function succeeded or failed. Following are the possible error codes.