These are API common to both GATT Client role and GATT Server role.
You may use them in either roles.
No letter is appended to the API name: Cy_BLE_GLS_
Functions | |
cy_en_ble_api_result_t | Cy_BLE_GLSS_Init (const cy_stc_ble_glss_config_t *config) |
This function initializes server of the Glucose service. More... | |
cy_en_ble_api_result_t | Cy_BLE_GLSC_Init (const cy_stc_ble_glsc_config_t *config) |
This function initializes client of the Glucose service. More... | |
void | Cy_BLE_GLS_RegisterAttrCallback (cy_ble_callback_t callbackFunc) |
Registers a callback function for service-specific attribute operations. More... | |
cy_en_ble_api_result_t Cy_BLE_GLSS_Init | ( | const cy_stc_ble_glss_config_t * | config | ) |
This function initializes server of the Glucose service.
config | Configuration structure for the GLS. |
Error Codes | Description |
---|---|
CY_BLE_SUCCESS | The function completed successfully. |
CY_BLE_ERROR_INVALID_PARAMETER | On specifying NULL as input parameter. |
CY_BLE_ERROR_MEMORY_ALLOCATION_FAILED | Buffer overflow in the registration callback. |
cy_en_ble_api_result_t Cy_BLE_GLSC_Init | ( | const cy_stc_ble_glsc_config_t * | config | ) |
This function initializes client of the Glucose service.
config | Configuration structure for the GLS. |
Error Codes | Description |
---|---|
CY_BLE_SUCCESS | The function completed successfully. |
CY_BLE_ERROR_INVALID_PARAMETER | On specifying NULL as input parameter. |
CY_BLE_ERROR_MEMORY_ALLOCATION_FAILED | Buffer overflow in the registration callback. |
void Cy_BLE_GLS_RegisterAttrCallback | ( | cy_ble_callback_t | callbackFunc | ) |
Registers a callback function for service-specific attribute operations.
Service-specific Write Requests from the peer device will not be handled with an unregistered callback function.
callbackFunc | An application layer event callback function to receive events from the PSoC 6 BLE Middleware. The definition of cy_ble_callback_t for GLS service is: typedef void (* cy_ble_callback_t) (uint32_t eventCode, void *eventParam), where:
|