1 /***************************************************************************//**
2 * \file cy_ble_event_handler.h
3 * \version 3.60
4 *
5 * \brief
6 *  Contains the prototypes and constants used in the event Handler State Machine
7 *  of the PSoC 6 BLE Middleware.
8 *
9 ********************************************************************************
10 * \copyright
11 * Copyright 2017-2021, Cypress Semiconductor Corporation.  All rights reserved.
12 * You may use this file only in accordance with the license, terms, conditions,
13 * disclaimers, and limitations in the end user license agreement accompanying
14 * the software package with which this file was provided.
15 *******************************************************************************/
16 
17 #ifndef CY_BLE_EVENT_HANDLER_H
18 #define CY_BLE_EVENT_HANDLER_H
19 
20 #include "cy_ble.h"
21 
22 #if defined(CY_IP_MXBLESS)
23 
24 /* C binding of definitions if building with C++ compiler */
25 #ifdef __cplusplus
26 extern "C" {
27 #endif /* __cplusplus */
28 
29 
30 /*******************************************************************************
31 * Service-specific includes
32 *******************************************************************************/
33 
34 
35 /*******************************************************************************
36 * Definitions
37 *******************************************************************************/
38 
39 /* cy_ble_eventHandlerFlag defines */
40 #define CY_BLE_CALLBACK                   (0x01u)
41 #define CY_BLE_AUTO_DISCOVERY             (0x02u)
42 #define CY_BLE_START_FLAG                 (0x04u)
43 #define CY_BLE_STOP_FLAG                  (0x08u)
44 #define CY_BLE_ENABLE_ALL_EVENTS          (0x10u)
45 #define CY_BLE_DISABLE_AUTOMATIC_AUTH     (0x20u)
46 
47 #define CY_BLE_DISC_SRVC_INFO_LEN         (4u + CY_BLE_GATT_16_BIT_UUID_SIZE)
48 #define CY_BLE_DISC_SRVC_INFO_128_LEN     (4u + CY_BLE_GATT_128_BIT_UUID_SIZE)
49 #define CY_BLE_DISC_INCL_INFO_LEN         (6u + CY_BLE_GATT_16_BIT_UUID_SIZE)
50 #define CY_BLE_DISC_INCL_INFO_128_LEN     (6u)
51 #define CY_BLE_DISC_CHAR_INFO_LEN         (5u + CY_BLE_GATT_16_BIT_UUID_SIZE)
52 #define CY_BLE_DISC_CHAR_INFO_128_LEN     (5u + CY_BLE_GATT_128_BIT_UUID_SIZE)
53 #define CY_BLE_DISC_DESCR_INFO_LEN        (2u + CY_BLE_GATT_16_BIT_UUID_SIZE)
54 #define CY_BLE_DISC_DESCR_INFO_128_LEN    (2u + CY_BLE_GATT_128_BIT_UUID_SIZE)
55 
56 #define CY_BLE_LE_MASK_LENGTH             (0x8u)
57 #define CY_BLE_LE_MASK_DEFAULT            (0x003Fu)
58 #define CY_BLE_LE_MASK_DLE                (((cy_ble_configPtr->stackParam->featureMask & \
59                                                 CY_BLE_DLE_FEATURE_MASK) != 0u) ? (0x0040u) : (0u))
60 #define CY_BLE_LE_MASK_SECURE_CONN        (((cy_ble_configPtr->stackParam->featureMask & \
61                                                 CY_BLE_DLE_FEATURE_MASK) != 0u) ? (0x0180u) : (0u))
62 #define CY_BLE_LE_MASK_LL_PRIVACY         (((cy_ble_configPtr->stackParam->featureMask & \
63                                                 CY_BLE_PRIVACY_1_2_FEATURE_MASK) != 0u) ? (0x0600u) : (0u))
64 #define CY_BLE_LE_MASK_PHY                (((cy_ble_configPtr->stackParam->featureMask & \
65                                                 CY_BLE_PHY_UPDATE_FEATURE_MASK) != 0u) ? (0x0800u) : (0u))
66 #define CY_BLE_LE_MASK                    (CY_BLE_LE_MASK_DEFAULT | CY_BLE_LE_MASK_DLE | CY_BLE_LE_MASK_LL_PRIVACY | \
67                                            CY_BLE_LE_MASK_SECURE_CONN | CY_BLE_LE_MASK_PHY)
68 /* Internal command run status defines */
69 #define CY_BLE_STATUS_SET_TX_PWR_LVL      (uint32_t)(1ul << 0u)
70 
71 
72 /*******************************************************************************
73 * Data Types
74 *******************************************************************************/
75 
76 /**
77  * \addtogroup group_ble_service_api_events
78  * \{
79  */
80 /** Service-specific events  */
81 typedef enum
82 {
83     /****************************************
84      * Security events
85      ***************************************/
86     /* \cond IGNORE */
87 
88     CY_BLE_AUTHENTICATION_REQUEST_REPLY = CY_BLE_EVT_MAX + 1, /* 0x10000 */
89     CY_BLE_PASSKEY_ENTRY_REQUEST_REPLY,
90     CY_BLE_LONG_TERM_KEY_REQUEST_REPLY,
91     CY_BLE_KEY_EXCHANGE_INFO_REQUEST_REPLY,
92     /* \endcond */
93 
94     /****************************************
95      * GATT Service events
96      ***************************************/
97 
98     /** GATT Server - This event indicates that the CCCD data CRC is wrong.
99      *  If this event occurs, removing the bonding information of all devices
100      *  by using the Cy_BLE_GAP_RemoveBondedDevice() API is recommended.
101      *  The CCCD buffer in the RAM for the current connection is cleaned (set to zero)
102      *  The event parameter is NULL.
103      */
104     CY_BLE_EVT_GATTS_EVT_CCCD_CORRUPT,
105 
106     /** GATT Server - Indication for GATT Service's "Service Changed"
107      *  Characteristic was enabled. The parameter of this event is a structure of
108      *  \ref cy_stc_ble_gatts_write_cmd_req_param_t type.
109      */
110     CY_BLE_EVT_GATTS_INDICATION_ENABLED,
111 
112     /** GATT Server - Indication for GATT Service's "Service Changed"
113      *  Characteristic was disabled. The parameter of this event is a structure of
114      *  \ref cy_stc_ble_gatts_write_cmd_req_param_t type.
115      */
116     CY_BLE_EVT_GATTS_INDICATION_DISABLED,
117 
118     /** GATT Client - GATT Service's "Service Changed" Characteristic Indication
119      *  was received. The parameter of this event is a structure
120      *  of the \ref cy_stc_ble_gattc_handle_value_ind_param_t type.
121      */
122     CY_BLE_EVT_GATTC_INDICATION,
123 
124 
125     /****************************************
126      * Service Discovery events
127      ***************************************/
128 
129     /** GATT Client - The Service discovery procedure failed. This event may
130      *  be generated on calling Cy_BLE_GATTC_DiscoverPrimaryServices().
131      *  The parameter of this event is a structure of the cy_stc_ble_conn_handle_t type.
132      */
133     CY_BLE_EVT_GATTC_SRVC_DISCOVERY_FAILED,
134 
135     /** GATT Client - The discovery of included services failed. This event may
136      *  be generated on calling Cy_BLE_GATTC_FindIncludedServices().
137      *  The parameter of this event is a structure of the cy_stc_ble_conn_handle_t type.
138      */
139     CY_BLE_EVT_GATTC_INCL_DISCOVERY_FAILED,
140 
141     /** GATT Client - The discovery of the service's Characteristics failed. This event may
142      *  be generated on calling Cy_BLE_GATTC_DiscoverCharacteristics() or
143      *  Cy_BLE_GATTC_ReadUsingCharacteristicUuid().
144      *  The parameter of this event is a structure of the cy_stc_ble_conn_handle_t type.
145      */
146     CY_BLE_EVT_GATTC_CHAR_DISCOVERY_FAILED,
147 
148     /** GATT Client - The discovery of the service's Characteristics failed. This event may
149      *  be generated on calling Cy_BLE_GATTC_DiscoverCharacteristicDescriptors().
150      *  The parameter of this event is a structure of the cy_stc_ble_conn_handle_t type.
151      */
152     CY_BLE_EVT_GATTC_DESCR_DISCOVERY_FAILED,
153 
154     /** GATT Client - A duplicate service record was found during the server device
155      *  discovery. The parameter of this event is a structure of cy_stc_ble_disc_srv_info_t
156      *  type.
157      */
158     CY_BLE_EVT_GATTC_SRVC_DUPLICATION,
159 
160     /** GATT Client - Duplicate service's Characteristic record was found during
161      *  server device discovery. The parameter of this event is a structure
162      *  of cy_stc_ble_disc_char_info_t type.
163      */
164     CY_BLE_EVT_GATTC_CHAR_DUPLICATION,
165 
166     /** GATT Client - A duplicate service's Characteristic descriptor record was found
167      *  during server device discovery. The parameter of this event is a structure
168      *  of cy_stc_ble_disc_descr_info_t type.
169      */
170     CY_BLE_EVT_GATTC_DESCR_DUPLICATION,
171 
172     /** GATT Client - The Service discovery procedure completed successfully. This
173      *  event may be generated on calling Cy_BLE_GATTC_DiscoverPrimaryServices().
174      *  The parameter of this event is a structure of the cy_stc_ble_conn_handle_t type.
175      */
176     CY_BLE_EVT_GATTC_SRVC_DISCOVERY_COMPLETE,
177 
178     /** GATT Client - The included services discovery is completed
179      *  successfully. This event may be generated on calling
180      *  Cy_BLE_GATTC_FindIncludedServices().
181      *  The parameter of this event is a structure of the cy_stc_ble_conn_handle_t type.
182      */
183     CY_BLE_EVT_GATTC_INCL_DISCOVERY_COMPLETE,
184 
185     /** GATT Client - The discovery of service's Characteristics discovery is completed
186      *  successfully. This event may be generated on calling
187      *  Cy_BLE_GATTC_DiscoverCharacteristics() or
188      *  Cy_BLE_GATTC_ReadUsingCharacteristicUuid().
189      *  The parameter of this event is a structure of the cy_stc_ble_conn_handle_t type.
190      */
191     CY_BLE_EVT_GATTC_CHAR_DISCOVERY_COMPLETE,
192 
193     /** GATT Client - The service (not defined in the GATT database) was found during
194     *  the server device discovery. The discovery procedure skips this service.
195     *  This event parameter is a structure of the cy_stc_ble_disc_srv_info_t type.
196     */
197     CY_BLE_EVT_GATTC_DISC_SKIPPED_SERVICE,
198 
199     /** GATT Client - The discovery of a remote device completed successfully.
200      *  The parameter of this event is a structure of the cy_stc_ble_conn_handle_t type.
201      */
202     CY_BLE_EVT_GATTC_DISCOVERY_COMPLETE,
203 
204     /****************************************
205      * AIOS Service events
206      ***************************************/
207 
208     /** AIOS Server - Notification for Automation Input Output Service Characteristic
209      *  was enabled. The parameter of this event is a structure of
210      *  cy_stc_ble_aios_char_value_t type.
211      */
212     CY_BLE_EVT_AIOSS_NOTIFICATION_ENABLED,
213 
214     /** AIOS Server - Notification for Automation Input Output Service Characteristic
215      *  was disabled. The parameter of this event is a structure of
216      *  cy_stc_ble_aios_char_value_t type.
217      */
218     CY_BLE_EVT_AIOSS_NOTIFICATION_DISABLED,
219 
220     /** AIOS Server - Indication for Automation Input Output Service Characteristic
221      *  was enabled. The parameter of this event is a structure
222      *  of cy_stc_ble_aios_char_value_t type.
223      */
224     CY_BLE_EVT_AIOSS_INDICATION_ENABLED,
225 
226     /** AIOSS Server - Indication for Automation Input Output Service Characteristic
227      *  was disabled. The parameter of this event is a structure
228      *  of cy_stc_ble_aios_char_value_t type.
229      */
230     CY_BLE_EVT_AIOSS_INDICATION_DISABLED,
231 
232     /** AIOS Server - Automation Input Output Service Characteristic
233      *  Indication was confirmed. The parameter of this event
234      *  is a structure of cy_stc_ble_aios_char_value_t type.
235      */
236     CY_BLE_EVT_AIOSS_INDICATION_CONFIRMED,
237 
238     /** AIOS Server - Write Request for Automation Input Output Service Characteristic
239      *  was received. The parameter of this event is a structure
240      *  of cy_stc_ble_aios_char_value_t type.
241      */
242     CY_BLE_EVT_AIOSS_WRITE_CHAR,
243 
244     /** AIOSS Server - Write Request for Automation Input Output Service
245      *  Characteristic descriptor was received. The parameter of this event is a structure of
246      *  cy_stc_ble_aios_char_value_t type.
247      */
248     CY_BLE_EVT_AIOSS_DESCR_WRITE,
249 
250     /** AIOS Client - Automation Input Output Characteristic Service Notification
251      *  was received. The parameter of this event is a structure
252      *  of cy_stc_ble_aios_char_value_t type.
253      */
254     CY_BLE_EVT_AIOSC_NOTIFICATION,
255 
256     /** AIOS Client - Automation Input Output Service Characteristic
257      *  Indication was received. The parameter of this event
258      *  is a structure of cy_stc_ble_aios_char_value_t type.
259      */
260     CY_BLE_EVT_AIOSC_INDICATION,
261 
262     /** AIOS Client - Read Response for Read Request for Automation Input Output Service Characteristic
263      *  Value. The parameter of this event is a structure of
264      *  cy_stc_ble_aios_char_value_t type.
265      */
266     CY_BLE_EVT_AIOSC_READ_CHAR_RESPONSE,
267 
268     /** AIOS Client - Write Response for Write Request for Automation Input Output Service
269      *  Characteristic Value. The parameter of this event is a structure of
270      *  cy_stc_ble_aios_char_value_t type.
271      */
272     CY_BLE_EVT_AIOSC_WRITE_CHAR_RESPONSE,
273 
274     /** AIOS Client - Read Response for Read Request for Automation Input Output Service
275      *  Characteristic descriptor Read Request. The parameter of this event is a
276      *  structure of cy_stc_ble_aios_descr_value_t type.
277      */
278     CY_BLE_EVT_AIOSC_READ_DESCR_RESPONSE,
279 
280     /** AIOS Client - Write Response for Write Request for Automation Input Output Service
281      *  Client Characteristic Configuration Descriptor Value. The parameter of
282      *  this event is a structure of cy_stc_ble_aios_descr_value_t type.
283      */
284     CY_BLE_EVT_AIOSC_WRITE_DESCR_RESPONSE,
285 
286     /** AIOS Client - Error Response for Write Request for Automation Input Output Service
287      *  Characteristic Value. The parameter of this event is a structure of
288      *  cy_stc_ble_ancs_char_value_t type.
289      */
290     CY_BLE_EVT_AIOSC_ERROR_RESPONSE,
291 
292     /****************************************
293      * ANCS Service events
294      ***************************************/
295 
296     /** ANCS Server - Notification for Apple Notification Center Service Characteristic
297      *  was enabled. The parameter of this event is a structure of
298      *  the cy_stc_ble_ancs_char_value_t type.
299      */
300     CY_BLE_EVT_ANCSS_NOTIFICATION_ENABLED,
301 
302     /** ANCS Server - Notification for Apple Notification Center Service Characteristic
303      *  was disabled. The parameter of this event is a structure of
304      *  the cy_stc_ble_ancs_char_value_t type.
305      */
306     CY_BLE_EVT_ANCSS_NOTIFICATION_DISABLED,
307 
308     /** ANCS Server - Write Request for Apple Notification Center Service Characteristic
309      *  was received. The parameter of this event is a structure
310      *  of the cy_stc_ble_ancs_char_value_t type.
311      */
312     CY_BLE_EVT_ANCSS_WRITE_CHAR,
313 
314     /** ANCS Client - Apple Notification Center Characteristic Service Notification
315      *  was received. The parameter of this event is a structure
316      *  of the cy_stc_ble_ancs_char_value_t type.
317      */
318     CY_BLE_EVT_ANCSC_NOTIFICATION,
319 
320     /** ANCS Client - Write Response for Write Request for Apple Notification Center Service
321      *  Characteristic Value. The parameter of this event is a structure of
322      *  cy_stc_ble_ancs_char_value_t type.
323      */
324     CY_BLE_EVT_ANCSC_WRITE_CHAR_RESPONSE,
325 
326     /** ANCS Client - Read Response for Read Request for Apple Notification Center Service
327      *  Characteristic descriptor Read Request. The parameter of this event is a
328      *  structure of the cy_stc_ble_ancs_descr_value_t type.
329      */
330     CY_BLE_EVT_ANCSC_READ_DESCR_RESPONSE,
331 
332     /** ANCS Client - Write Response for Write Request for Apple Notification Center Service
333      *  Client Characteristic Configuration Descriptor Value. The parameter of
334      *  this event is a structure of the cy_stc_ble_ancs_descr_value_t type.
335      */
336     CY_BLE_EVT_ANCSC_WRITE_DESCR_RESPONSE,
337 
338     /** ANCS Client - Error Response for Write Request for Apple Notification Center Service
339      *  Characteristic Value. The parameter of this event is a structure of
340      *  the cy_stc_ble_ancs_char_value_t type.
341      */
342     CY_BLE_EVT_ANCSC_ERROR_RESPONSE,
343 
344 
345     /****************************************
346      * ANS Service events
347      ***************************************/
348 
349     /** ANS Server - Notification for Alert Notification Service Characteristic
350      *  was enabled. The parameter of this event is a structure of
351      *  the cy_stc_ble_ans_char_value_t type.
352      */
353     CY_BLE_EVT_ANSS_NOTIFICATION_ENABLED,
354 
355     /** ANS Server - Notification for Alert Notification Service Characteristic
356      *  was disabled. The parameter of this event is a structure of
357      *  the cy_stc_ble_ans_char_value_t type.
358      */
359     CY_BLE_EVT_ANSS_NOTIFICATION_DISABLED,
360 
361     /** ANS Server - Write Request for Alert Notification Service Characteristic
362      *  was received. The parameter of this event is a structure
363      *  of the cy_stc_ble_ans_char_value_t type.
364      */
365     CY_BLE_EVT_ANSS_WRITE_CHAR,
366 
367     /** ANS Client - Alert Notification Characteristic Service Notification
368      *  was received. The parameter of this event is a structure
369      *  of the cy_stc_ble_ans_char_value_t type.
370      */
371     CY_BLE_EVT_ANSC_NOTIFICATION,
372 
373     /** ANS Client - Read Response for Alert Notification Service Characteristic
374      *  Value. The parameter of this event is a structure of
375      *  the cy_stc_ble_ans_char_value_t type.
376      */
377     CY_BLE_EVT_ANSC_READ_CHAR_RESPONSE,
378 
379     /** ANS Client - Write Response for Write Request for Alert Notification Service
380      *  Characteristic Value. The parameter of this event is a structure of
381      *  the cy_stc_ble_ans_char_value_t type.
382      */
383     CY_BLE_EVT_ANSC_WRITE_CHAR_RESPONSE,
384 
385     /** ANS Client - Read Response for Read Request for Alert Notification Service
386      *  Characteristic descriptor Read Request. The parameter of this event is a
387      *  structure of the cy_stc_ble_ans_descr_value_t type.
388      */
389     CY_BLE_EVT_ANSC_READ_DESCR_RESPONSE,
390 
391     /** ANS Client - Write Response for Write Request for Alert Notification Service
392      *  Client Characteristic Configuration Descriptor Value. The parameter of
393      *  this event is a structure of the cy_stc_ble_ans_descr_value_t type.
394      */
395     CY_BLE_EVT_ANSC_WRITE_DESCR_RESPONSE,
396 
397 
398     /****************************************
399      * BAS Service events
400      ***************************************/
401 
402     /** BAS Server - Notification for Battery Level Characteristic was enabled. The
403      *  parameter of this event is a structure of the cy_stc_ble_bas_char_value_t type.
404      */
405     CY_BLE_EVT_BASS_NOTIFICATION_ENABLED,
406 
407     /** BAS Server - Notification for Battery Level Characteristic was disabled. The
408      *  parameter of this event is a structure of the cy_stc_ble_bas_char_value_t type.
409      */
410     CY_BLE_EVT_BASS_NOTIFICATION_DISABLED,
411 
412     /** BAS Client - Battery Level Characteristic Notification was received. The
413      *  parameter of this event is a structure of the cy_stc_ble_bas_char_value_t type.
414      */
415     CY_BLE_EVT_BASC_NOTIFICATION,
416 
417     /** BAS Client - Read Response for Battery Level Characteristic Value. The
418      *  parameter of this event is a structure of the cy_stc_ble_bas_char_value_t type.
419      */
420     CY_BLE_EVT_BASC_READ_CHAR_RESPONSE,
421 
422     /** BAS Client - Read Response for Battery Level Characteristic descriptor Read
423      *  Request. The parameter of this event is a structure of
424      *  the cy_stc_ble_bas_descr_value_t type.
425      */
426     CY_BLE_EVT_BASC_READ_DESCR_RESPONSE,
427 
428     /** BAS Client - Write Response for Battery Level Client Characteristic
429      *  Configuration Descriptor Value. The parameter of this event is a structure of
430      *  the cy_stc_ble_bas_descr_value_t type.
431      */
432     CY_BLE_EVT_BASC_WRITE_DESCR_RESPONSE,
433 
434 
435     /****************************************
436      * Body Composition Service events
437      ***************************************/
438 
439     /** BCS Server - Indication for Body Composition Service Characteristic
440      *  was enabled. The parameter of this event is a structure
441      *  of the cy_stc_ble_bcs_char_value_t type.
442      */
443     CY_BLE_EVT_BCSS_INDICATION_ENABLED,
444 
445     /** BCS Server - Indication for Body Composition Service Characteristic
446      *  was disabled. The parameter of this event is a structure
447      *  of the cy_stc_ble_bcs_char_value_t type.
448      */
449     CY_BLE_EVT_BCSS_INDICATION_DISABLED,
450 
451     /** BCS Server - Body Composition Service Characteristic
452      *  Indication was confirmed. The parameter of this event
453      *  is a structure of the cy_stc_ble_bcs_char_value_t type.
454      */
455     CY_BLE_EVT_BCSS_INDICATION_CONFIRMED,
456 
457     /** BCS Client - Body Composition Service Characteristic
458      *  Indication was received. The parameter of this event
459      *  is a structure of the cy_stc_ble_bcs_char_value_t type.
460      */
461     CY_BLE_EVT_BCSC_INDICATION,
462 
463     /** BCS Client - Read Response for Read Request of Body Composition
464      *  Service Characteristic Value. The parameter of this event
465      *  is a structure of the cy_stc_ble_bcs_char_value_t type.
466      */
467     CY_BLE_EVT_BCSC_READ_CHAR_RESPONSE,
468 
469     /** BCS Client - Read Response for Read Request of Body Composition
470      *  Service Characteristic descriptor Read Request. The
471      *  parameter of this event is a structure of
472      *  the cy_stc_ble_bcs_descr_value_t type.
473      */
474     CY_BLE_EVT_BCSC_READ_DESCR_RESPONSE,
475 
476     /** BCS Client - Write Response for Write Request of Body Composition
477      *  Service Characteristic Configuration Descriptor value.
478      *  The parameter of this event is a structure of
479      *  the cy_stc_ble_bcs_descr_value_t type.
480      */
481     CY_BLE_EVT_BCSC_WRITE_DESCR_RESPONSE,
482 
483     /****************************************
484      * Blood Pressure Service events
485      ***************************************/
486 
487     /** BLS Server - Indication for Blood Pressure Service Characteristic was enabled.
488      *  The parameter of this event is a structure of the cy_stc_ble_bls_char_value_t type.
489      */
490     CY_BLE_EVT_BLSS_INDICATION_ENABLED,
491 
492     /** BLS Server - Indication for Blood Pressure Service Characteristic was
493      *  disabled. The parameter of this event is a structure of
494      *  the cy_stc_ble_bls_char_value_t type.
495      */
496     CY_BLE_EVT_BLSS_INDICATION_DISABLED,
497 
498     /** BLS Server - Blood Pressure Service Characteristic Indication was confirmed.
499      *  The parameter of this event is a structure of cy_stc_ble_bls_char_value_t type
500      */
501     CY_BLE_EVT_BLSS_INDICATION_CONFIRMED,
502 
503     /** BLS Server - Notification for Blood Pressure Service Characteristic
504      *  was enabled. The parameter of this event is a structure of
505      *  the cy_stc_ble_bls_char_value_t type.
506      */
507     CY_BLE_EVT_BLSS_NOTIFICATION_ENABLED,
508 
509     /** BLS Server - Notification for Blood Pressure Service Characteristic
510      *  was disabled. The parameter of this event is a structure of
511      *  the cy_stc_ble_bls_char_value_t type.
512      */
513     CY_BLE_EVT_BLSS_NOTIFICATION_DISABLED,
514 
515     /** BLS Client - Blood Pressure Service Characteristic Indication was received.
516      *  The parameter of this event is a structure of the cy_stc_ble_bls_char_value_t type.
517      */
518     CY_BLE_EVT_BLSC_INDICATION,
519 
520     /** BLS Client - Blood Pressure Service Characteristic Notification was received.
521      *  The parameter of this event is a structure of the cy_stc_ble_bls_char_value_t type.
522      */
523     CY_BLE_EVT_BLSC_NOTIFICATION,
524 
525     /** BLS Client - Read Response for Read Request of Blood Pressure Service
526      *  Characteristic Value. The parameter of this event is a structure of
527      *  the cy_stc_ble_bls_char_value_t type.
528      */
529     CY_BLE_EVT_BLSC_READ_CHAR_RESPONSE,
530 
531     /** BLS Client - Read Response for Read Request of Blood Pressure Service
532      *  Characteristic descriptor Read Request. The parameter of this event is a
533      *  structure of the cy_stc_ble_bls_descr_value_t type.
534      */
535     CY_BLE_EVT_BLSC_READ_DESCR_RESPONSE,
536 
537     /** BLS Client - Write Response for Write Request of Blood Pressure Service
538      *  Characteristic Configuration Descriptor value. The parameter of this event
539      *  is a structure of the cy_stc_ble_bls_descr_value_t type.
540      */
541     CY_BLE_EVT_BLSC_WRITE_DESCR_RESPONSE,
542 
543 
544     /****************************************
545      * Bond Management Service events
546      ***************************************/
547 
548     /** BMS Server - Write Request for Bond Management
549      *  was received. The parameter of this event is a structure
550      *  of the cy_stc_ble_bms_char_value_t type.
551      */
552     CY_BLE_EVT_BMSS_WRITE_CHAR,
553 
554     /** BMS Client - Read Response for Read Request of Bond Management Service
555      *  Characteristic Value. The parameter of this event is a structure of
556      *  the cy_stc_ble_bms_char_value_t type.
557      */
558     CY_BLE_EVT_BMSC_READ_CHAR_RESPONSE,
559 
560     /** BMS Client - Write Response for Write Request of Bond Management
561      *  Service Characteristic Value. The
562      *  parameter of this event is a structure of
563      *  the cy_stc_ble_bms_char_value_t type.
564      */
565     CY_BLE_EVT_BMSC_WRITE_CHAR_RESPONSE,
566 
567     /** BMS Client - Read Response for Read Request of Bond Management Service
568      *  Characteristic descriptor Read Request. The parameter of this event is a
569      *  structure of cy_stc_ble_bms_descr_value_t type.
570      */
571     CY_BLE_EVT_BMSC_READ_DESCR_RESPONSE,
572 
573 
574     /****************************************
575      * CGM Service events
576      ***************************************/
577 
578     /** CGMS Server - Indication for Continuous Glucose Monitoring Service Characteristic
579      *  was enabled. The parameter of this event is a structure
580      *  of the cy_stc_ble_cgms_char_value_t type.
581      */
582     CY_BLE_EVT_CGMSS_INDICATION_ENABLED,
583 
584     /** CGMS Server - Indication for Continuous Glucose Monitoring Service Characteristic
585      *  was disabled. The parameter of this event is a structure
586      *  of the cy_stc_ble_cgms_char_value_t type.
587      */
588     CY_BLE_EVT_CGMSS_INDICATION_DISABLED,
589 
590     /** CGMS Server - Continuous Glucose Monitoring Service Characteristic
591      *  Indication was confirmed. The parameter of this event
592      *  is a structure of the cy_stc_ble_cgms_char_value_t type.
593      */
594     CY_BLE_EVT_CGMSS_INDICATION_CONFIRMED,
595 
596     /** CGMS Server - Notification for Continuous Glucose Monitoring Service Characteristic
597      *  was enabled. The parameter of this event is a structure of
598      *  the cy_stc_ble_cgms_char_value_t type.
599      */
600     CY_BLE_EVT_CGMSS_NOTIFICATION_ENABLED,
601 
602     /** CGMS Server - Notification for Continuous Glucose Monitoring Service Characteristic
603      *  was disabled. The parameter of this event is a structure
604      *  of the cy_stc_ble_cgms_char_value_t type.
605      */
606     CY_BLE_EVT_CGMSS_NOTIFICATION_DISABLED,
607 
608     /** CGMS Server - Write Request for Continuous Glucose Monitoring Service
609      *  was received. The parameter of this event is a structure
610      *  of the cy_stc_ble_cgms_char_value_t type.
611      */
612     CY_BLE_EVT_CGMSS_WRITE_CHAR,
613 
614     /** CGMS Client - Continuous Glucose Monitoring Service Characteristic
615      *  Indication was received. The parameter of this event
616      *  is a structure of the cy_stc_ble_cgms_char_value_t type.
617      */
618     CY_BLE_EVT_CGMSC_INDICATION,
619 
620     /** CGMS Client - Continuous Glucose Monitoring Service Characteristic
621      *  Notification was received. The parameter of this event
622      *  is a structure of the cy_stc_ble_cgms_char_value_t type.
623      */
624     CY_BLE_EVT_CGMSC_NOTIFICATION,
625 
626     /** CGMS Client - Read Response for Read Request of Continuous Glucose Monitoring
627      *  Service Characteristic Value. The parameter of this event
628      *  is a structure of the cy_stc_ble_cgms_char_value_t type.
629      */
630     CY_BLE_EVT_CGMSC_READ_CHAR_RESPONSE,
631 
632     /** CGMS Client - Write Response for Write Request of Continuous Glucose Monitoring
633      *  Service Characteristic Value. The
634      *  parameter of this event is a structure of
635      *  the cy_stc_ble_cgms_char_value_t type.
636      */
637     CY_BLE_EVT_CGMSC_WRITE_CHAR_RESPONSE,
638 
639     /** CGMS Client - Read Response for Read Request of Continuous Glucose Monitoring
640      *  Service Characteristic descriptor Read Request. The
641      *  parameter of this event is a structure of
642      *  the cy_stc_ble_cgms_descr_value_t type.
643      */
644     CY_BLE_EVT_CGMSC_READ_DESCR_RESPONSE,
645 
646     /** CGMS Client - Write Response for Write Request of Continuous Glucose Monitoring
647      *  Service Characteristic Configuration Descriptor value.
648      *  The parameter of this event is a structure of
649      *  the cy_stc_ble_cgms_descr_value_t type.
650      */
651     CY_BLE_EVT_CGMSC_WRITE_DESCR_RESPONSE,
652 
653 
654     /****************************************
655      * CPS Service events
656      ***************************************/
657 
658     /** CPS Server - Notification for Cycling Power Service Characteristic
659      *  was enabled. The parameter of this event is a structure of
660      *  the cy_stc_ble_cps_char_value_t type.
661      */
662     CY_BLE_EVT_CPSS_NOTIFICATION_ENABLED,
663 
664     /** CPS Server - Notification for Cycling Power Service Characteristic
665      *  was disabled. The parameter of this event is a structure
666      *  of the cy_stc_ble_cps_char_value_t type.
667      */
668     CY_BLE_EVT_CPSS_NOTIFICATION_DISABLED,
669 
670     /** CPS Server - Indication for Cycling Power Service Characteristic
671      *  was enabled. The parameter of this event is a structure
672      *  of the cy_stc_ble_cps_char_value_t type.
673      */
674     CY_BLE_EVT_CPSS_INDICATION_ENABLED,
675 
676     /** CPS Server - Indication for Cycling Power Service Characteristic
677      *  was disabled. The parameter of this event is a structure
678      *  of the cy_stc_ble_cps_char_value_t type.
679      */
680     CY_BLE_EVT_CPSS_INDICATION_DISABLED,
681 
682     /** CPS Server - Cycling Power Service Characteristic
683      *  Indication was confirmed. The parameter of this event
684      *  is a structure of the cy_stc_ble_cps_char_value_t type.
685      */
686     CY_BLE_EVT_CPSS_INDICATION_CONFIRMED,
687 
688     /** CPS Server - Broadcast for Cycling Power Service Characteristic
689      *  was enabled. The parameter of this event
690      *  is a structure of the cy_stc_ble_cps_char_value_t type.
691      */
692     CY_BLE_EVT_CPSS_BROADCAST_ENABLED,
693 
694     /** CPS Server - Broadcast for Cycling Power Service Characteristic
695      *  was disabled. The parameter of this event
696      *  is a structure of the cy_stc_ble_cps_char_value_t type.
697      */
698     CY_BLE_EVT_CPSS_BROADCAST_DISABLED,
699 
700     /** CPS Server - Write Request for Cycling Power Service Characteristic
701      *  was received. The parameter of this event is a structure
702      *  of the cy_stc_ble_cps_char_value_t type.
703      */
704     CY_BLE_EVT_CPSS_WRITE_CHAR,
705 
706     /** CPS Client - Cycling Power Service Characteristic
707      *  Notification was received. The parameter of this event
708      *  is a structure of the cy_stc_ble_cps_char_value_t type.
709      */
710     CY_BLE_EVT_CPSC_NOTIFICATION,
711 
712     /** CPS Client - Cycling Power Service Characteristic
713      *  Indication was received. The parameter of this event
714      *  is a structure of the cy_stc_ble_cps_char_value_t type.
715      */
716     CY_BLE_EVT_CPSC_INDICATION,
717 
718     /** CPS Client - Read Response for Read Request of Cycling Power Service
719      *  Characteristic Value. The parameter of this event
720      *  is a structure of the cy_stc_ble_cps_char_value_t type.
721      */
722     CY_BLE_EVT_CPSC_READ_CHAR_RESPONSE,
723 
724     /** CPS Client - Write Response for Write Request of Cycling Power Service
725      *  Characteristic Value. The parameter of this event
726      *  is a structure of the cy_stc_ble_cps_char_value_t type.
727      */
728     CY_BLE_EVT_CPSC_WRITE_CHAR_RESPONSE,
729 
730     /** CPS Client - Read Response for Read Request of Cycling Power
731      *  Service Characteristic descriptor Read Request. The
732      *  parameter of this event is a structure of
733      *  the cy_stc_ble_cps_descr_value_t type.
734      */
735     CY_BLE_EVT_CPSC_READ_DESCR_RESPONSE,
736 
737     /** CPS Client - Write Response for Write Request of Cycling Power
738      *  Service Characteristic Configuration Descriptor value.
739      *  The parameter of this event is a structure of
740      *  the cy_stc_ble_cps_descr_value_t type.
741      */
742     CY_BLE_EVT_CPSC_WRITE_DESCR_RESPONSE,
743 
744     /** CPS Client - This event is triggered every time a device receive
745      *  non-connectable undirected advertising event.
746      *  The parameter of this event is a structure of
747      *  the cy_stc_ble_cps_char_value_t type.
748      */
749     CY_BLE_EVT_CPSC_SCAN_PROGRESS_RESULT,
750 
751     /** CPS Client - Cycling Power CP procedure timeout was received. The parameter
752      *  of this event is a structure of the cy_stc_ble_cps_char_value_t type.
753      */
754     CY_BLE_EVT_CPSC_TIMEOUT,
755 
756     /****************************************
757      * Cycling Speed and Cadence Service events
758      ***************************************/
759 
760     /** CSCS Server - Notification for Cycling Speed and Cadence Service
761      *  Characteristic was enabled. The parameter of this event is a structure of
762      *  the cy_stc_ble_cscs_char_value_t type.
763      */
764     CY_BLE_EVT_CSCSS_NOTIFICATION_ENABLED,
765 
766     /** CSCS Server - Notification for Cycling Speed and Cadence Service
767      *  Characteristic was disabled. The parameter of this event is a structure of
768      *  the cy_stc_ble_cscs_char_value_t type.
769      */
770     CY_BLE_EVT_CSCSS_NOTIFICATION_DISABLED,
771 
772     /** CSCS Server - Indication for Cycling Speed and Cadence Service Characteristic
773      *  was enabled. The parameter of this event is a structure of
774      *  the cy_stc_ble_cscs_char_value_t type.
775      */
776     CY_BLE_EVT_CSCSS_INDICATION_ENABLED,
777 
778     /** CSCS Server - Indication for Cycling Speed and Cadence Service Characteristic
779      *  was disabled. The parameter of this event is a structure of
780      *  the cy_stc_ble_cscs_char_value_t type.
781      */
782     CY_BLE_EVT_CSCSS_INDICATION_DISABLED,
783 
784     /** CSCS Server - Cycling Speed and Cadence Service Characteristic
785      *  Indication was confirmed. The parameter of this event is a structure of
786      *  the cy_stc_ble_cscs_char_value_t type.
787      */
788     CY_BLE_EVT_CSCSS_INDICATION_CONFIRMED,
789 
790     /** CSCS Server - Write Request for Cycling Speed and Cadence Service
791      *  Characteristic was received. The parameter of this event is a structure of
792      *  the cy_stc_ble_cscs_char_value_t type.
793      */
794     CY_BLE_EVT_CSCSS_WRITE_CHAR,
795 
796     /** CSCS Client - Cycling Speed and Cadence Service Characteristic
797      *  Notification was received. The parameter of this event is a structure of
798      *  the cy_stc_ble_cscs_char_value_t type.
799      */
800     CY_BLE_EVT_CSCSC_NOTIFICATION,
801 
802     /** CSCS Client - Cycling Speed and Cadence Service Characteristic
803      *  Indication was received. The parameter of this event is a structure of
804      *  the cy_stc_ble_cscs_char_value_t type.
805      */
806     CY_BLE_EVT_CSCSC_INDICATION,
807 
808     /** CSCS Client - Read Response for Read Request of Cycling Speed and Cadence
809      *  Service Characteristic Value. The parameter of this event is a structure of
810      *  the cy_stc_ble_cscs_char_value_t type.
811      */
812     CY_BLE_EVT_CSCSC_READ_CHAR_RESPONSE,
813 
814     /** CSCS Client - Write Response for Write Request of Cycling Speed and Cadence
815      *  Service Characteristic Value. The parameter of this event is a structure of
816      *  the cy_stc_ble_cscs_char_value_t type.
817      */
818     CY_BLE_EVT_CSCSC_WRITE_CHAR_RESPONSE,
819 
820     /** CSCS Client - Read Response for Read Request of Cycling Speed and Cadence
821      *  Service Characteristic descriptor Read Request. The parameter of this event
822      *  is a structure of the cy_stc_ble_cscs_descr_value_t type.
823      */
824     CY_BLE_EVT_CSCSC_READ_DESCR_RESPONSE,
825 
826     /** CSCS Client - Write Response for Write Request of Cycling Speed and Cadence
827      *  Service Characteristic Configuration Descriptor value. The parameter of
828      *  this event is a structure of  the cy_stc_ble_cscs_descr_value_t type.
829      */
830     CY_BLE_EVT_CSCSC_WRITE_DESCR_RESPONSE,
831 
832 
833     /****************************************
834      * Current Time Service events
835      ***************************************/
836 
837     /** CTS Server - Notification for Current Time Characteristic was enabled. The
838      *  parameter of this event is a structure of the cy_stc_ble_cts_char_value_t type.
839      */
840     CY_BLE_EVT_CTSS_NOTIFICATION_ENABLED,
841 
842     /** CTS Server - Notification for Current Time Characteristic was disabled. The
843      *  parameter of this event is a structure of the cy_stc_ble_cts_char_value_t type.
844      */
845     CY_BLE_EVT_CTSS_NOTIFICATION_DISABLED,
846 
847     /** CTS Server - Write Request for Current Time Service
848      *  Characteristic was received. The parameter of this event is a structure of
849      *  the cy_stc_ble_cts_char_value_t type. When this event is received, the user is
850      *  responsible for performing any kind of data verification and writing the
851      *  data to the GATT database in case of successful verification or setting
852      *  the error if data verification fails.
853      */
854     CY_BLE_EVT_CTSS_WRITE_CHAR,
855 
856     /** CTS Client - Current Time Characteristic Notification was received. The
857      *  parameter of this event is a structure of the cy_stc_ble_cts_char_value_t type.
858      */
859     CY_BLE_EVT_CTSC_NOTIFICATION,
860 
861     /** CTS Client - Read Response for Current Time Characteristic
862      *  Value Read Request. The parameter of this event is a
863      *  structure of the cy_stc_ble_cts_char_value_t type.
864      */
865     CY_BLE_EVT_CTSC_READ_CHAR_RESPONSE,
866 
867     /** CTS Client - Read Response for Current Time Client
868      *  Characteristic Configuration Descriptor Value Read
869      *  Request. The parameter of this event is a
870      *  structure of the cy_stc_ble_cts_descr_value_t type.
871      */
872     CY_BLE_EVT_CTSC_READ_DESCR_RESPONSE,
873 
874     /** CTS Client - Write Response for Current Time Characteristic
875      *  Configuration Descriptor Value. The parameter of this
876      *  event is a structure of the cy_stc_ble_cts_descr_value_t type.
877      */
878     CY_BLE_EVT_CTSC_WRITE_DESCR_RESPONSE,
879 
880     /** CTS Client - Write Response for Current Time or Local
881      *  Time Information Characteristic Value. The parameter of this
882      *  event is a structure of the cy_stc_ble_cts_descr_value_t type.
883      */
884     CY_BLE_EVT_CTSC_WRITE_CHAR_RESPONSE,
885 
886     /****************************************
887      * DIS Service events
888      ***************************************/
889 
890     /** DIS Client - Read Response for a Read Request for a
891      *  Device Information Service Characteristic. The parameter of this
892      *  event is a structure of the cy_stc_ble_dis_char_value_t type.
893      */
894     CY_BLE_EVT_DISC_READ_CHAR_RESPONSE,
895 
896 
897     /****************************************
898      * Environmental Sensing Service events
899      ***************************************/
900 
901     /** ESS Server - Notification for Environmental Sensing Service
902      *  Characteristic was enabled. The parameter of this event is a structure of
903      *  cy_stc_ble_ess_char_value_t type.
904      */
905     CY_BLE_EVT_ESSS_NOTIFICATION_ENABLED,
906 
907     /** ESS Server - Notification for Environmental Sensing Service
908      *  Characteristic was disabled. The parameter of this event is a structure of
909      *  cy_stc_ble_ess_char_value_t type.
910      */
911     CY_BLE_EVT_ESSS_NOTIFICATION_DISABLED,
912 
913     /** ESS Server - Indication for Environmental Sensing Service Characteristic
914      *  was enabled. The parameter of this event is a structure of
915      *  the cy_stc_ble_ess_char_value_t type.
916      */
917     CY_BLE_EVT_ESSS_INDICATION_ENABLED,
918 
919     /** ESS Server - Indication for Environmental Sensing Service Characteristic
920      *  was disabled. The parameter of this event is a structure of
921      *  cy_stc_ble_ess_char_value_t type.
922      */
923     CY_BLE_EVT_ESSS_INDICATION_DISABLED,
924 
925     /** ESS Server - Environmental Sensing Service Characteristic
926      *  Indication was confirmed. The parameter of this event is a structure of
927      *  cy_stc_ble_ess_char_value_t type.
928      */
929     CY_BLE_EVT_ESSS_INDICATION_CONFIRMED,
930 
931     /** ESS Server - Write Request for Environmental Sensing Service
932      *  Characteristic was received. The parameter of this event is a structure of
933      *  the cy_stc_ble_ess_char_value_t type.
934      */
935     CY_BLE_EVT_ESSS_WRITE_CHAR,
936 
937     /** ESS Server - Write Request for Environmental Sensing Service
938      *  Characteristic descriptor was received. The parameter of this event is a structure of
939      *  the cy_stc_ble_ess_descr_value_t type. This event is generated only when write for
940      *  /ref CY_BLE_ESS_ES_TRIGGER_SETTINGS_DESCR1, /ref CY_BLE_ESS_ES_TRIGGER_SETTINGS_DESCR2,
941      *  /ref CY_BLE_ESS_ES_TRIGGER_SETTINGS_DESCR3 or /ref CY_BLE_ESS_ES_CONFIG_DESCR occurs.
942      */
943     CY_BLE_EVT_ESSS_DESCR_WRITE,
944 
945     /** ESS Client - Environmental Sensing Service Characteristic
946      *  Notification was received. The parameter of this event is a structure of
947      *  the cy_stc_ble_ess_char_value_t type.
948      */
949     CY_BLE_EVT_ESSC_NOTIFICATION,
950 
951     /** ESS Client - Environmental Sensing Service Characteristic
952      *  Indication was received. The parameter of this event is a structure of
953      *  cy_stc_ble_ess_char_value_t type.
954      */
955     CY_BLE_EVT_ESSC_INDICATION,
956 
957     /** ESS Client - Read Response for Read Request of Environmental Sensing
958      *  Service Characteristic Value. The parameter of this event is a structure of
959      *  the cy_stc_ble_ess_char_value_t type.
960      */
961     CY_BLE_EVT_ESSC_READ_CHAR_RESPONSE,
962 
963     /** ESS Client - Write Response for Write Request of Environmental Sensing
964      *  Service Characteristic Value. The parameter of this event is a structure of
965      *  the cy_stc_ble_ess_char_value_t type.
966      */
967     CY_BLE_EVT_ESSC_WRITE_CHAR_RESPONSE,
968 
969     /** ESS Client - Read Response for Read Request of Environmental Sensing
970      *  Service Characteristic descriptor Read Request. The parameter of this event
971      *  is a structure of the cy_stc_ble_ess_descr_value_t type.
972      */
973     CY_BLE_EVT_ESSC_READ_DESCR_RESPONSE,
974 
975     /** ESS Client - Write Response for Write Request of Environmental Sensing
976      *  Service Characteristic Configuration Descriptor value. The parameter of
977      *  this event is a structure of the cy_stc_ble_ess_descr_value_t type.
978      */
979     CY_BLE_EVT_ESSC_WRITE_DESCR_RESPONSE,
980 
981 
982     /****************************************
983      * Glucose Service events
984      ***************************************/
985 
986     /** GLS Server - Indication for Glucose Service Characteristic
987      *  was enabled. The parameter of this event is a structure
988      *  of cy_stc_ble_gls_char_value_t type.
989      */
990     CY_BLE_EVT_GLSS_INDICATION_ENABLED,
991 
992     /** GLS Server - Indication for Glucose Service Characteristic
993      *  was disabled. The parameter of this event is a structure
994      *  of the cy_stc_ble_gls_char_value_t type.
995      */
996     CY_BLE_EVT_GLSS_INDICATION_DISABLED,
997 
998     /** GLS Server - Glucose Service Characteristic
999      *  Indication was confirmed. The parameter of this event
1000      *  is a structure of the cy_stc_ble_gls_char_value_t type.
1001      */
1002     CY_BLE_EVT_GLSS_INDICATION_CONFIRMED,
1003 
1004     /** GLS Server - Notification for Glucose Service Characteristic
1005      *  was enabled. The parameter of this event is a structure of
1006      *  the cy_stc_ble_gls_char_value_t type.
1007      */
1008     CY_BLE_EVT_GLSS_NOTIFICATION_ENABLED,
1009 
1010     /** GLS Server - Notification for Glucose Service Characteristic
1011      *  was disabled. The parameter of this event is a structure
1012      *  of the cy_stc_ble_gls_char_value_t type.
1013      */
1014     CY_BLE_EVT_GLSS_NOTIFICATION_DISABLED,
1015 
1016     /** GLS Server - Write Request for Glucose Service
1017      *  was received. The parameter of this event is a structure
1018      *  of cy_stc_ble_gls_char_value_t type.
1019      */
1020     CY_BLE_EVT_GLSS_WRITE_CHAR,
1021 
1022     /** GLS Client - Glucose Service Characteristic
1023      *  Indication was received. The parameter of this event
1024      *  is a structure of the cy_stc_ble_gls_char_value_t type.
1025      */
1026     CY_BLE_EVT_GLSC_INDICATION,
1027 
1028     /** GLS Client - Glucose Service Characteristic
1029      *  Notification was received. The parameter of this event
1030      *  is a structure of the cy_stc_ble_gls_char_value_t type.
1031      */
1032     CY_BLE_EVT_GLSC_NOTIFICATION,
1033 
1034     /** GLS Client - Read Response for Read Request of Glucose
1035      *  Service Characteristic Value. The parameter of this event
1036      *  is a structure of the cy_stc_ble_gls_char_value_t type.
1037      */
1038     CY_BLE_EVT_GLSC_READ_CHAR_RESPONSE,
1039 
1040     /** GLS Client - Write Response for Write Request of Glucose
1041      *  Service Characteristic Value. The
1042      *  parameter of this event is a structure of
1043      *  the cy_stc_ble_gls_char_value_t type.
1044      */
1045     CY_BLE_EVT_GLSC_WRITE_CHAR_RESPONSE,
1046 
1047     /** GLS Client - Read Response for Read Request of Glucose
1048      *  Service Characteristic descriptor Read Request. The
1049      *  parameter of this event is a structure of
1050      *  the cy_stc_ble_gls_descr_value_t type.
1051      */
1052     CY_BLE_EVT_GLSC_READ_DESCR_RESPONSE,
1053 
1054     /** GLS Client - Write Response for Write Request of Glucose
1055      *  Service Characteristic Configuration Descriptor value.
1056      *  The parameter of this event is a structure of
1057      *  the cy_stc_ble_gls_descr_value_t type.
1058      */
1059     CY_BLE_EVT_GLSC_WRITE_DESCR_RESPONSE,
1060 
1061 
1062     /****************************************
1063      * HIDS Service events
1064      ***************************************/
1065 
1066     /** HIDS Server - Notification for HID service was
1067      *  enabled. The parameter of this event is a
1068      *  structure of the cy_stc_ble_hids_char_value_t type.
1069      */
1070     CY_BLE_EVT_HIDSS_NOTIFICATION_ENABLED,
1071 
1072     /** HIDS Server - Notification for HID service was
1073      *  disabled. The parameter of this event is a
1074      *  structure of the cy_stc_ble_hids_char_value_t type.
1075      */
1076     CY_BLE_EVT_HIDSS_NOTIFICATION_DISABLED,
1077 
1078     /** HIDS Server - Enter boot mode request. The
1079      *  parameter of this event is a structure of
1080      *  the cy_stc_ble_hids_char_value_t type.
1081      */
1082     CY_BLE_EVT_HIDSS_BOOT_MODE_ENTER,
1083 
1084     /** HIDS Server - Enter report mode request. The
1085      *  parameter of this event is a structure of
1086      *  the cy_stc_ble_hids_char_value_t type.
1087      */
1088     CY_BLE_EVT_HIDSS_REPORT_MODE_ENTER,
1089 
1090     /** HIDS Server - Enter suspend mode request. The
1091      *  parameter of this event is a structure of
1092      *  cy_stc_ble_hids_char_value_t type.
1093      */
1094     CY_BLE_EVT_HIDSS_SUSPEND,
1095 
1096     /** HIDS Server - Exit suspend mode request. The
1097      *  parameter of this event is a structure of
1098      *  the cy_stc_ble_hids_char_value_t type.
1099      */
1100     CY_BLE_EVT_HIDSS_EXIT_SUSPEND,
1101 
1102     /** HIDS Server - Write Report Characteristic
1103      *  request. The parameter of this event is a
1104      *  structure of the cy_stc_ble_hids_char_value_t type.
1105      */
1106     CY_BLE_EVT_HIDSS_REPORT_WRITE_CHAR,
1107 
1108     /** HIDS Client - HID Service Characteristic
1109      *  Notification was received. The parameter of this
1110      *  event is a structure of the cy_stc_ble_hids_char_value_t type.
1111      */
1112     CY_BLE_EVT_HIDSC_NOTIFICATION,
1113 
1114     /** HIDS Client - Read Response for Read Request of HID
1115      *  Service Characteristic Value. The parameter of this
1116      *  event is a structure of the cy_stc_ble_hids_descr_value_t type.
1117      */
1118     CY_BLE_EVT_HIDSC_READ_CHAR_RESPONSE,
1119 
1120     /** HIDS Client - Write Response for Write Request of
1121      *  HID Service Characteristic Value. The parameter
1122      *  of this event is a structure of
1123      *  the cy_stc_ble_hids_char_value_t type.
1124      */
1125     CY_BLE_EVT_HIDSC_WRITE_CHAR_RESPONSE,
1126 
1127     /** HIDS Client - Read Response for Read Request of HID
1128      *  Service Characteristic descriptor Read Request. The
1129      *  parameter of this event is a structure of
1130      *  the cy_stc_ble_hids_descr_value_t type.
1131      */
1132     CY_BLE_EVT_HIDSC_READ_DESCR_RESPONSE,
1133 
1134     /** HIDS Client - Write Response for Write Request of HID
1135      *  Service Characteristic Configuration Descriptor value.
1136      *  The parameter of this event is a structure of
1137      *  the cy_stc_ble_hids_char_value_t type.
1138      */
1139     CY_BLE_EVT_HIDSC_WRITE_DESCR_RESPONSE,
1140 
1141 
1142     /****************************************
1143      *  HTTP Proxy Service events
1144      ***************************************/
1145 
1146     /** HPS Server - Notification for HTTP Proxy Service Characteristic
1147      *  was enabled. The parameter of this event is a structure
1148      *  of the cy_stc_ble_hps_char_value_t type.
1149      */
1150     CY_BLE_EVT_HPSS_NOTIFICATION_ENABLED,
1151 
1152     /** HPS Server - Notification for HTTP Proxy Service Characteristic
1153      *  was disabled. The parameter of this event is a structure
1154      *  of the cy_stc_ble_hps_char_value_t type.
1155      */
1156     CY_BLE_EVT_HPSS_NOTIFICATION_DISABLED,
1157 
1158     /** HPS Server - Write Request for HTTP Proxy Service
1159      *  Characteristic was received. The parameter of this event is a structure of
1160      *  the cy_stc_ble_hps_char_value_t type.
1161      */
1162     CY_BLE_EVT_HPSS_WRITE_CHAR,
1163 
1164     /** HPS Client - HTTP Proxy Service Characteristic
1165      *  Notification was received. The parameter of this event
1166      *  is a structure of the cy_stc_ble_hps_char_value_t type.
1167      */
1168     CY_BLE_EVT_HPSC_NOTIFICATION,
1169 
1170     /** HPS Client - Read Response for Read Request of HTTP Proxy
1171      *  Service Characteristic Value. The parameter of this event
1172      *  is a structure of the cy_stc_ble_hps_char_value_t type.
1173      */
1174     CY_BLE_EVT_HPSC_READ_CHAR_RESPONSE,
1175 
1176     /** HPS Client - Read Response for Read Request of HTTP Proxy
1177      *  Service Characteristic descriptor Read Request. The
1178      *  parameter of this event is a structure of
1179      *  the cy_stc_ble_hps_descr_value_t type.
1180      */
1181     CY_BLE_EVT_HPSC_READ_DESCR_RESPONSE,
1182 
1183     /** HPS Client - Write Response for Write Request of HTTP Proxy
1184      *  Service Characteristic Configuration Descriptor value.
1185      *  The parameter of this event is a structure of
1186      *  the cy_stc_ble_hps_descr_value_t type.
1187      */
1188     CY_BLE_EVT_HPSC_WRITE_DESCR_RESPONSE,
1189 
1190     /** HPS Client - Write Response for Write Request of HPS
1191      *  Service Characteristic Value. The parameter of this event
1192      *  is a structure of the cy_stc_ble_hps_char_value_t type.
1193      */
1194     CY_BLE_EVT_HPSC_WRITE_CHAR_RESPONSE,
1195 
1196     /****************************************
1197      * HRS Service events
1198      ***************************************/
1199 
1200     /** HRS Server - Reset Energy Expended. The parameter of
1201      *  this event is a structure of the cy_stc_ble_hrs_char_value_t type.
1202      */
1203     CY_BLE_EVT_HRSS_ENERGY_EXPENDED_RESET,
1204 
1205     /** HRS Server - Notification for Heart Rate Measurement
1206      *  Characteristic was enabled. The parameter of this
1207      *  event is a structure of the cy_stc_ble_hrs_char_value_t type.
1208      */
1209 
1210     CY_BLE_EVT_HRSS_NOTIFICATION_ENABLED,
1211 
1212     /** HRS Server - Notification for Heart Rate Measurement
1213      *  Characteristic was disabled. The parameter of this
1214      *  event is a structure of the cy_stc_ble_hrs_char_value_t type.
1215      */
1216     CY_BLE_EVT_HRSS_NOTIFICATION_DISABLED,
1217 
1218     /** HRS Client - Heart Rate Measurement Characteristic
1219      *  Notification was received. The parameter of this event
1220      *  is a structure of the cy_stc_ble_hrs_char_value_t type.
1221      */
1222     CY_BLE_EVT_HRSC_NOTIFICATION,
1223 
1224     /** HRS Client - Read Response for Read Request of HRS
1225      *  Service Characteristic Value. The parameter of this event
1226      *  is a structure of the cy_stc_ble_hrs_char_value_t type.
1227      */
1228     CY_BLE_EVT_HRSC_READ_CHAR_RESPONSE,
1229 
1230     /** HRS Client - Write Response for Write Request of HRS
1231      *  Service Characteristic Value. The parameter of this event
1232      *  is a structure of the cy_stc_ble_hrs_char_value_t type.
1233      */
1234     CY_BLE_EVT_HRSC_WRITE_CHAR_RESPONSE,
1235 
1236     /** HRS Client - Read Response for Read Request of HRS
1237      *  Service Characteristic descriptor Read Request. The
1238      *  parameter of this event is a structure of
1239      *  the cy_stc_ble_hrs_char_value_t type.
1240      */
1241     CY_BLE_EVT_HRSC_READ_DESCR_RESPONSE,
1242 
1243     /** HRS Client - Write Response for Write Request of HRS
1244      *  Service Characteristic Configuration Descriptor value.
1245      *  The parameter of this event is a structure of
1246      *  the cy_stc_ble_hrs_char_value_t type.
1247      */
1248     CY_BLE_EVT_HRSC_WRITE_DESCR_RESPONSE,
1249 
1250 
1251     /****************************************
1252      * HTS Service events
1253      ***************************************/
1254 
1255     /** HTS Server - Notification for Health Thermometer Service Characteristic
1256      *  was enabled. The parameter of this event is a structure of
1257      *  the cy_stc_ble_hts_char_value_t type.
1258      */
1259     CY_BLE_EVT_HTSS_NOTIFICATION_ENABLED,
1260 
1261     /** HTS Server - Notification for Health Thermometer Service Characteristic
1262      *  was disabled. The parameter of this event is a structure
1263      *  of the cy_stc_ble_hts_char_value_t type.
1264      */
1265     CY_BLE_EVT_HTSS_NOTIFICATION_DISABLED,
1266 
1267     /** HTS Server - Indication for Health Thermometer Service Characteristic
1268      *  was enabled. The parameter of this event is a structure
1269      *  of the cy_stc_ble_hts_char_value_t type.
1270      */
1271     CY_BLE_EVT_HTSS_INDICATION_ENABLED,
1272 
1273     /** HTS Server - Indication for Health Thermometer Service Characteristic
1274      *  was disabled. The parameter of this event is a structure
1275      *  of the cy_stc_ble_hts_char_value_t type.
1276      */
1277     CY_BLE_EVT_HTSS_INDICATION_DISABLED,
1278 
1279     /** HTS Server - Health Thermometer Service Characteristic
1280      *  Indication was confirmed. The parameter of this event
1281      *  is a structure of the cy_stc_ble_hts_char_value_t type.
1282      */
1283     CY_BLE_EVT_HTSS_INDICATION_CONFIRMED,
1284 
1285     /** HTS Server - Write Request for Health Thermometer Service Characteristic
1286      *  was received. The parameter of this event is a structure
1287      *  of the cy_stc_ble_hts_char_value_t type.
1288      */
1289     CY_BLE_EVT_HTSS_WRITE_CHAR,
1290 
1291     /** HTS Client - Health Thermometer Service Characteristic
1292      *  Notification was received. The parameter of this event
1293      *  is a structure of the cy_stc_ble_hts_char_value_t type.
1294      */
1295     CY_BLE_EVT_HTSC_NOTIFICATION,
1296 
1297     /** HTS Client - Health Thermometer Service Characteristic
1298      *  Indication was received. The parameter of this event
1299      *  is a structure of the cy_stc_ble_hts_char_value_t type.
1300      */
1301     CY_BLE_EVT_HTSC_INDICATION,
1302 
1303     /** HTS Client - Read Response for Read Request of Health Thermometer
1304      *  Service Characteristic Value. The parameter of this event
1305      *  is a structure of the cy_stc_ble_hts_char_value_t type.
1306      */
1307     CY_BLE_EVT_HTSC_READ_CHAR_RESPONSE,
1308 
1309     /** HTS Client - Write Response for Write Request of Health Thermometer
1310      *  Service Characteristic Value. The parameter of this event
1311      *  is a structure of the cy_stc_ble_hts_char_value_t type.
1312      */
1313     CY_BLE_EVT_HTSC_WRITE_CHAR_RESPONSE,
1314 
1315     /** HTS Client - Read Response for Read Request of Health Thermometer
1316      *  Service Characteristic descriptor Read Request. The
1317      *  parameter of this event is a structure of
1318      *  the cy_stc_ble_hts_descr_value_t type.
1319      */
1320     CY_BLE_EVT_HTSC_READ_DESCR_RESPONSE,
1321 
1322     /** HTS Client - Write Response for Write Request of Health Thermometer
1323      *  Service Characteristic Configuration Descriptor value.
1324      *  The parameter of this event is a structure of
1325      *  the cy_stc_ble_hts_descr_value_t type.
1326      */
1327     CY_BLE_EVT_HTSC_WRITE_DESCR_RESPONSE,
1328 
1329 
1330     /****************************************
1331      * Immediate Alert Service events
1332      ***************************************/
1333 
1334     /** IAS Server - Write Command Request for Alert Level
1335      *  Characteristic. The parameter of this event
1336      *  is a structure of the cy_stc_ble_ias_char_value_t type.
1337      */
1338     CY_BLE_EVT_IASS_WRITE_CHAR_CMD,
1339 
1340     /****************************************
1341      * Indoor Positioning Service events
1342      ***************************************/
1343 
1344     /** IPS Server - Read Request for Indoor Positioning Service Characteristic
1345      *  was received. The parameter of this event is a structure
1346      *  of the cy_stc_ble_ips_char_value_t type.
1347      */
1348     CY_BLE_EVT_IPSS_READ_CHAR,
1349 
1350     /** IPS Server - Write Request for Indoor Positioning Service Characteristic
1351      *  was received. The parameter of this event is a structure
1352      *  of cy_stc_ble_ips_char_value_t type.
1353      */
1354     CY_BLE_EVT_IPSS_WRITE_CHAR,
1355 
1356     /** IPS Server - Write command request for Indoor Positioning Service
1357      *  Characteristic. The parameter of this event
1358      *  is a structure of the cy_stc_ble_ips_char_value_t type.
1359      */
1360     CY_BLE_EVT_IPSS_WRITE_CHAR_CMD,
1361 
1362     /** IPS Client - Read Response for Read Request of Indoor Positioning
1363      *  Service Characteristic Value. The parameter of this event
1364      *  is a structure of the cy_stc_ble_ips_char_value_t type.
1365      */
1366     CY_BLE_EVT_IPSC_READ_CHAR_RESPONSE,
1367 
1368     /** IPS Client - Read Multiple Response for Read Multiple Request of
1369      *  Indoor Positioning Service Characteristic Value. The parameter
1370      *  of this event is a structure of the cy_stc_ble_ips_char_value_t type.
1371      */
1372     CY_BLE_EVT_IPSC_READ_MULTIPLE_CHAR_RESPONSE,
1373 
1374     /** IPS Client - Write Response for Write Request of Indoor Positioning
1375      *  Service Characteristic Value. The parameter of this event
1376      *  is a structure of the cy_stc_ble_ips_char_value_t type.
1377      */
1378     CY_BLE_EVT_IPSC_WRITE_CHAR_RESPONSE,
1379 
1380     /** IPS Client - Read Response for Read Request of Indoor Positioning
1381      *  Service Characteristic descriptor Read Request. The
1382      *  parameter of this event is a structure of
1383      *  the cy_stc_ble_ips_descr_value_t type.
1384      */
1385     CY_BLE_EVT_IPSC_READ_DESCR_RESPONSE,
1386 
1387     /** IPS Client - Write Response for Write Request of Indoor Positioning
1388      *  Service Characteristic Configuration Descriptor value.
1389      *  The parameter of this event is a structure of
1390      *  the cy_stc_ble_ips_descr_value_t type.
1391      */
1392     CY_BLE_EVT_IPSC_WRITE_DESCR_RESPONSE,
1393 
1394     /** IPS Client - Error Response for Write Request for Indoor Positioning
1395      *  Service Characteristic Value. The parameter of this event is a structure of
1396      *  the cy_stc_ble_ips_char_value_t type.
1397      */
1398     CY_BLE_EVT_IPSC_ERROR_RESPONSE,
1399 
1400     /** IPS Client - Read Response for Long Read Request of Indoor Positioning
1401      *  Service Characteristic Value. The parameter of this event
1402      *  is a structure of the cy_stc_ble_ips_char_value_t type.
1403      */
1404     CY_BLE_EVT_IPSC_READ_BLOB_RSP,
1405 
1406     /****************************************
1407      * Link Loss Service events
1408      ***************************************/
1409 
1410     /** LLS Server - Write Request for Alert Level Characteristic.
1411      *  The parameter of this event is a structure of
1412      *  the cy_stc_ble_lls_char_value_t type.
1413      */
1414     CY_BLE_EVT_LLSS_WRITE_CHAR_REQ,
1415 
1416     /** LLS Client - Read response for Alert Level Characteristic.
1417      *  The parameter of this event is a structure of
1418      *  the cy_stc_ble_lls_char_value_t type.
1419      */
1420     CY_BLE_EVT_LLSC_READ_CHAR_RESPONSE,
1421 
1422     /** LLS Client - Write Response for Write Request of Alert
1423      *  Level Characteristic. The parameter of this event is a
1424      *  structure of the cy_stc_ble_lls_char_value_t type.
1425      */
1426     CY_BLE_EVT_LLSC_WRITE_CHAR_RESPONSE,
1427 
1428 
1429     /****************************************
1430      * Location and Navigation Service events
1431      ***************************************/
1432 
1433     /** LNS Server - Indication for Location and Navigation Service Characteristic
1434      *  was enabled. The parameter of this event is a structure
1435      *  of the cy_stc_ble_lns_char_value_t type.
1436      */
1437     CY_BLE_EVT_LNSS_INDICATION_ENABLED,
1438 
1439     /** LNS Server - Indication for Location and Navigation Service Characteristic
1440      *  was disabled. The parameter of this event is a structure
1441      *  of the cy_stc_ble_lns_char_value_t type.
1442      */
1443     CY_BLE_EVT_LNSS_INDICATION_DISABLED,
1444 
1445     /** LNS Server - Location and Navigation Service Characteristic
1446      *  Indication was confirmed. The parameter of this event
1447      *  is a structure of the cy_stc_ble_lns_char_value_t type.
1448      */
1449     CY_BLE_EVT_LNSS_INDICATION_CONFIRMED,
1450 
1451     /** LNS Server - Notification for Location and Navigation Service Characteristic
1452      *  was enabled. The parameter of this event is a structure of
1453      *  the cy_stc_ble_lns_char_value_t type.
1454      */
1455     CY_BLE_EVT_LNSS_NOTIFICATION_ENABLED,
1456 
1457     /** LNS Server - Notification for Location and Navigation Service Characteristic
1458      *  was disabled. The parameter of this event is a structure
1459      *  of the cy_stc_ble_lns_char_value_t type.
1460      */
1461     CY_BLE_EVT_LNSS_NOTIFICATION_DISABLED,
1462 
1463     /** LNS Server - Write Request for Location and Navigation Service Characteristic
1464      *  was received. The parameter of this event is a structure
1465      *  of the cy_stc_ble_lns_char_value_t type.
1466      */
1467     CY_BLE_EVT_LNSS_WRITE_CHAR,
1468 
1469     /** LNS Client - Location and Navigation Service Characteristic
1470      *  Indication was received. The parameter of this event
1471      *  is a structure of the cy_stc_ble_lns_char_value_t type.
1472      */
1473     CY_BLE_EVT_LNSC_INDICATION,
1474 
1475     /** LNS Client - Location and Navigation Service Characteristic
1476      *  Notification was received. The parameter of this event
1477      *  is a structure of the cy_stc_ble_lns_char_value_t type.
1478      */
1479     CY_BLE_EVT_LNSC_NOTIFICATION,
1480 
1481     /** LNS Client - Read Response for Read Request of Location and Navigation
1482      *  Service Characteristic Value. The parameter of this event
1483      *  is a structure of the cy_stc_ble_lns_char_value_t type.
1484      */
1485     CY_BLE_EVT_LNSC_READ_CHAR_RESPONSE,
1486 
1487     /** LNS Client - Write Response for Write Request of Location and Navigation
1488      *  Service Characteristic Value. The parameter of this event
1489      *  is a structure of the cy_stc_ble_lns_char_value_t type.
1490      */
1491     CY_BLE_EVT_LNSC_WRITE_CHAR_RESPONSE,
1492 
1493     /** LNS Client - Read Response for Read Request of Location and Navigation
1494      *  Service Characteristic descriptor Read Request. The
1495      *  parameter of this event is a structure of
1496      *  the cy_stc_ble_lns_descr_value_t type.
1497      */
1498     CY_BLE_EVT_LNSC_READ_DESCR_RESPONSE,
1499 
1500     /** LNS Client - Write Response for Write Request of Location and Navigation
1501      *  Service Characteristic Configuration Descriptor value.
1502      *  The parameter of this event is a structure of
1503      *  the cy_stc_ble_lns_descr_value_t type.
1504      */
1505     CY_BLE_EVT_LNSC_WRITE_DESCR_RESPONSE,
1506 
1507 
1508     /****************************************
1509      * Next DST Change Service events
1510      ***************************************/
1511 
1512     /** NDCS Client - Read Response for Read Request of Next DST Change
1513      * Service Characteristic Value. The parameter of this event
1514      * is a structure of the cy_stc_ble_ndcs_char_value_t type.
1515      */
1516     CY_BLE_EVT_NDCSC_READ_CHAR_RESPONSE,
1517 
1518 
1519     /****************************************
1520      * Phone Alert Status Service events
1521      ***************************************/
1522 
1523     /** PASS Server - Notification for Phone Alert Status Service Characteristic
1524      *  was enabled. The parameter of this event is a structure of
1525      *  the cy_stc_ble_pass_char_value_t type.
1526      */
1527     CY_BLE_EVT_PASSS_NOTIFICATION_ENABLED,
1528 
1529     /** PASS Server - Notification for Phone Alert Status Service Characteristic
1530      *  was disabled. The parameter of this event is a structure
1531      *  of the cy_stc_ble_pass_char_value_t type.
1532      */
1533     CY_BLE_EVT_PASSS_NOTIFICATION_DISABLED,
1534 
1535     /** PASS Server - Write Request for Phone Alert Status Service Characteristic
1536      *  was received. The parameter of this event is a structure
1537      *  of the cy_stc_ble_pass_char_value_t type.
1538      */
1539     CY_BLE_EVT_PASSS_WRITE_CHAR,
1540 
1541     /** PASS Client - Phone Alert Status Service Characteristic
1542      *  Notification was received. The parameter of this event
1543      *  is a structure of the cy_stc_ble_pass_char_value_t type.
1544      */
1545     CY_BLE_EVT_PASSC_NOTIFICATION,
1546 
1547     /** PASS Client - Read Response for Read Request of Phone Alert Status
1548      *  Service Characteristic Value. The parameter of this event
1549      *  is a structure of cy_stc_ble_pass_char_value_t type.
1550      */
1551     CY_BLE_EVT_PASSC_READ_CHAR_RESPONSE,
1552 
1553     /** PASS Client - Read Response for Read Request of Phone Alert Status
1554      *  Service Characteristic descriptor Read Request. The
1555      *  parameter of this event is a structure of
1556      *  the cy_stc_ble_pass_descr_value_t type.
1557      */
1558     CY_BLE_EVT_PASSC_READ_DESCR_RESPONSE,
1559 
1560     /** PASS Client - Write Response for Write Request of Phone Alert Status
1561      *  Service Characteristic Configuration Descriptor value.
1562      *  The parameter of this event is a structure of
1563      *  the cy_stc_ble_pass_descr_value_t type.
1564      */
1565     CY_BLE_EVT_PASSC_WRITE_DESCR_RESPONSE,
1566 
1567 
1568     /****************************************
1569      * Pulse Oximeter Service events
1570      ***************************************/
1571 
1572     /** PLXS Server - Indication for Pulse Oximeter Service Characteristic
1573      *  was enabled. The parameter of this event is a structure
1574      *  of cy_stc_ble_plxs_char_value_t type.
1575      */
1576     CY_BLE_EVT_PLXSS_INDICATION_ENABLED,
1577 
1578     /** PLXS Server - Indication for Pulse Oximeter Service Characteristic
1579      *  was disabled. The parameter of this event is a structure
1580      *  of the cy_stc_ble_gls_char_value_t type.
1581      */
1582     CY_BLE_EVT_PLXSS_INDICATION_DISABLED,
1583 
1584     /** PLXS Server - Pulse Oximeter Service Characteristic
1585      *  Indication was confirmed. The parameter of this event
1586      *  is a structure of the cy_stc_ble_plxs_char_value_t type.
1587      */
1588     CY_BLE_EVT_PLXSS_INDICATION_CONFIRMED,
1589 
1590     /** PLXS Server - Notification for Pulse Oximeter Service Characteristic
1591      *  was enabled. The parameter of this event is a structure of
1592      *  the cy_stc_ble_plxs_char_value_t type.
1593      */
1594     CY_BLE_EVT_PLXSS_NOTIFICATION_ENABLED,
1595 
1596     /** PLXS Server - Notification for Pulse Oximeter Service Characteristic
1597      *  was disabled. The parameter of this event is a structure
1598      *  of the cy_stc_ble_plxs_char_value_t type.
1599      */
1600     CY_BLE_EVT_PLXSS_NOTIFICATION_DISABLED,
1601 
1602     /** PLXS Server - Write Request for Pulse Oximeter Service
1603      *  was received. The parameter of this event is a structure
1604      *  of cy_stc_ble_plxs_char_value_t type.
1605      */
1606     CY_BLE_EVT_PLXSS_WRITE_CHAR,
1607 
1608     /** PLXS Client - Pulse Oximeter Service Characteristic
1609      *  Indication was received. The parameter of this event
1610      *  is a structure of the cy_stc_ble_plxs_char_value_t type.
1611      */
1612     CY_BLE_EVT_PLXSC_INDICATION,
1613 
1614     /** PLXS Client - Pulse Oximeter Service Characteristic
1615      *  Notification was received. The parameter of this event
1616      *  is a structure of the cy_stc_ble_plxs_char_value_t type.
1617      */
1618     CY_BLE_EVT_PLXSC_NOTIFICATION,
1619 
1620     /** PLXS Client - Read Response for Read Request of Pulse Oximeter
1621      *  Service Characteristic Value. The parameter of this event
1622      *  is a structure of the cy_stc_ble_plxs_char_value_t type.
1623      */
1624     CY_BLE_EVT_PLXSC_READ_CHAR_RESPONSE,
1625 
1626     /** PLXS Client - Write Response for Write Request of Pulse Oximeter
1627      *  Service Characteristic Value. The
1628      *  parameter of this event is a structure of
1629      *  the cy_stc_ble_plxs_char_value_t type.
1630      */
1631     CY_BLE_EVT_PLXSC_WRITE_CHAR_RESPONSE,
1632 
1633     /** PLXS Client - Read Response for Read Request of Pulse Oximeter
1634      *  Service Characteristic descriptor Read Request. The
1635      *  parameter of this event is a structure of
1636      *  the cy_stc_ble_plxs_descr_value_t type.
1637      */
1638     CY_BLE_EVT_PLXSC_READ_DESCR_RESPONSE,
1639 
1640     /** PLXS Client - Write Response for Write Request of Pulse Oximeter
1641      *  Service Characteristic Configuration Descriptor value.
1642      *  The parameter of this event is a structure of
1643      *  the cy_stc_ble_plxs_descr_value_t type.
1644      */
1645     CY_BLE_EVT_PLXSC_WRITE_DESCR_RESPONSE,
1646 
1647     /** PLXS Client - PLX RACP procedure timeout was received. The parameter
1648      *  of this event is a structure of the cy_stc_ble_plxs_char_value_t type.
1649      */
1650     CY_BLE_EVT_PLXSC_TIMEOUT,
1651 
1652     /****************************************
1653      * Running Speed and Cadence Service events
1654      ***************************************/
1655 
1656     /** RSCS Server - Notification for Running Speed and Cadence Service
1657      *  Characteristic was enabled. The parameter of this event is a structure of
1658      *  the cy_stc_ble_rscs_char_value_t type.
1659      */
1660     CY_BLE_EVT_RSCSS_NOTIFICATION_ENABLED,
1661 
1662     /** RSCS Server - Notification for Running Speed and Cadence Service
1663      *  Characteristic was disabled. The parameter of this event is a structure
1664      *  of the cy_stc_ble_rscs_char_value_t type.
1665      */
1666     CY_BLE_EVT_RSCSS_NOTIFICATION_DISABLED,
1667 
1668     /** RSCS Server - Indication for Running Speed and Cadence Service Characteristic
1669      *  was enabled. The parameter of this event is a structure
1670      *  of the cy_stc_ble_rscs_char_value_t type.
1671      */
1672     CY_BLE_EVT_RSCSS_INDICATION_ENABLED,
1673 
1674     /** RSCS Server - Indication for Running Speed and Cadence Service Characteristic
1675      *  was disabled. The parameter of this event is a structure
1676      *  of the cy_stc_ble_rscs_char_value_t type.
1677      */
1678     CY_BLE_EVT_RSCSS_INDICATION_DISABLED,
1679 
1680     /** RSCS Server - Running Speed and Cadence Service Characteristic
1681      *  Indication was confirmed. The parameter of this event
1682      *  is a structure of the cy_stc_ble_rscs_char_value_t type.
1683      */
1684     CY_BLE_EVT_RSCSS_INDICATION_CONFIRMED,
1685 
1686     /** RSCS Server - Write Request for Running Speed and Cadence Service
1687      *  Characteristic was received. The parameter of this event is a structure
1688      *  of cy_stc_ble_rscs_char_value_t type.
1689      */
1690     CY_BLE_EVT_RSCSS_WRITE_CHAR,
1691 
1692     /** RSCS Client - Running Speed and Cadence Service Characteristic
1693      *  Notification was received. The parameter of this event
1694      *  is a structure of the cy_stc_ble_rscs_char_value_t type.
1695      */
1696     CY_BLE_EVT_RSCSC_NOTIFICATION,
1697 
1698     /** RSCS Client - Running Speed and Cadence Service Characteristic
1699      *  Indication was received. The parameter of this event
1700      *  is a structure of the cy_stc_ble_rscs_char_value_t type.
1701      */
1702     CY_BLE_EVT_RSCSC_INDICATION,
1703 
1704     /** RSCS Client - Read Response for Read Request of Running Speed and Cadence
1705      *  Service Characteristic Value. The parameter of this event
1706      *  is a structure of the cy_stc_ble_rscs_char_value_t type.
1707      */
1708     CY_BLE_EVT_RSCSC_READ_CHAR_RESPONSE,
1709 
1710     /** RSCS Client - Write Response for Write Request of Running Speed and Cadence
1711      *  Service Characteristic Value. The parameter of this event
1712      *  is a structure of the cy_stc_ble_rscs_char_value_t type.
1713      */
1714     CY_BLE_EVT_RSCSC_WRITE_CHAR_RESPONSE,
1715 
1716     /** RSCS Client - Read Response for Read Request of Running Speed and Cadence
1717      *  Service Characteristic descriptor Read Request. The
1718      *  parameter of this event is a structure of
1719      *  the cy_stc_ble_rscs_descr_value_t type.
1720      */
1721     CY_BLE_EVT_RSCSC_READ_DESCR_RESPONSE,
1722 
1723     /** RSCS Client - Write Response for Write Request of Running Speed and Cadence
1724      *  Service Characteristic Configuration Descriptor value.
1725      *  The parameter of this event is a structure of
1726      *  the cy_stc_ble_rscs_descr_value_t type.
1727      */
1728     CY_BLE_EVT_RSCSC_WRITE_DESCR_RESPONSE,
1729 
1730 
1731     /****************************************
1732      * Reference Time Update Service events
1733      ***************************************/
1734 
1735     /** RTUS Server - Write command request for Reference Time Update
1736      *  Characteristic Value. The parameter of this event
1737      *  is a structure of cy_stc_ble_rtus_char_value_t type.
1738      */
1739     CY_BLE_EVT_RTUSS_WRITE_CHAR_CMD,
1740 
1741     /** RTUS Client - Read Response for Read Request of Reference Time Update
1742      *  Service Characteristic Value. The parameter of this event
1743      *  is a structure of the cy_stc_ble_rtus_char_value_t type.
1744      */
1745     CY_BLE_EVT_RTUSC_READ_CHAR_RESPONSE,
1746 
1747 
1748     /****************************************
1749      * Scan Parameters Service events
1750      ***************************************/
1751 
1752     /** ScPS Server - Notification for Scan Refresh Characteristic
1753      *  was enabled. The parameter of this event is a structure
1754      *  of the cy_stc_ble_scps_char_value_t type.
1755      */
1756     CY_BLE_EVT_SCPSS_NOTIFICATION_ENABLED,
1757 
1758     /** ScPS Server - Notification for Scan Refresh Characteristic
1759      *  was disabled. The parameter of this event is a structure
1760      *  of the cy_stc_ble_scps_char_value_t type.
1761      */
1762     CY_BLE_EVT_SCPSS_NOTIFICATION_DISABLED,
1763 
1764     /** ScPS Client - Read Response for Scan Interval Window
1765      *  Characteristic Value of Scan Parameters service. The
1766      *  parameter of this event is a structure
1767      *  of the cy_stc_ble_scps_char_value_t type.
1768      */
1769     CY_BLE_EVT_SCPSS_SCAN_INT_WIN_WRITE_CHAR,
1770 
1771     /** ScPS Client - Scan Refresh Characteristic Notification
1772      *  was received. The parameter of this event is a
1773      *  structure of the cy_stc_ble_scps_char_value_t type.
1774      */
1775     CY_BLE_EVT_SCPSC_NOTIFICATION,
1776 
1777     /** ScPS Client - Read Response for Scan Refresh Characteristic
1778      *  Descriptor Read Request. The parameter of this event is a
1779      *  structure of the cy_stc_ble_scps_descr_value_t type.
1780      */
1781     CY_BLE_EVT_SCPSC_READ_DESCR_RESPONSE,
1782 
1783     /** ScPS Client - Write Response for Scan Refresh Client
1784      *  Characteristic Configuration Descriptor Value. The
1785      *  parameter of this event is a structure of
1786      *  the cy_stc_ble_scps_descr_value_t type.
1787      */
1788     CY_BLE_EVT_SCPSC_WRITE_DESCR_RESPONSE,
1789 
1790 
1791     /****************************************
1792      * Tx Power Service events
1793      ***************************************/
1794 
1795     /** TPS Server - Notification for Tx Power Level Characteristic
1796      *  was enabled. The parameter of this event is a structure of
1797      *  the cy_stc_ble_tps_char_value_t type.
1798      */
1799     CY_BLE_EVT_TPSS_NOTIFICATION_ENABLED,
1800 
1801     /** TPS Server - Notification for Tx Power Level Characteristic
1802      *  was disabled. The parameter of this event is a structure of
1803      *  the cy_stc_ble_tps_char_value_t type.
1804      */
1805     CY_BLE_EVT_TPSS_NOTIFICATION_DISABLED,
1806 
1807     /** TPS Client - Tx Power Level Characteristic Notification.
1808      *  The parameter of this event is a structure of
1809      *  the cy_stc_ble_tps_char_value_t type.
1810      */
1811     CY_BLE_EVT_TPSC_NOTIFICATION,
1812 
1813     /** TPS Client - Read Response for Tx Power Level Characteristic
1814      *  Value Read Request. The parameter of this event is a
1815      *  structure of the cy_stc_ble_tps_char_value_t type.
1816      */
1817     CY_BLE_EVT_TPSC_READ_CHAR_RESPONSE,
1818 
1819     /** TPS Client - Read Response for Tx Power Level Client
1820      *  Characteristic Configuration Descriptor Value Read Request.
1821      *  The parameter of this event is a structure of
1822      *  the cy_stc_ble_tps_descr_value_t type.
1823      */
1824     CY_BLE_EVT_TPSC_READ_DESCR_RESPONSE,
1825 
1826     /** TPS Client - Write Response for Tx Power Level Characteristic
1827      *  Descriptor Value Write Request. The parameter of this event
1828      *  is a structure of the cy_stc_ble_tps_descr_value_t type.
1829      */
1830     CY_BLE_EVT_TPSC_WRITE_DESCR_RESPONSE,
1831 
1832 
1833     /****************************************
1834      * User Data Service events
1835      ***************************************/
1836 
1837     /** UDS Server - Indication for User Data Service Characteristic
1838      *  was enabled. The parameter of this event is a structure
1839      *  of cy_stc_ble_uds_char_value_t type.
1840      */
1841     CY_BLE_EVT_UDSS_INDICATION_ENABLED,
1842 
1843     /** UDS Server - Indication for User Data Service Characteristic
1844      *  was disabled. The parameter of this event is a structure
1845      *  of the cy_stc_ble_uds_char_value_t type.
1846      */
1847     CY_BLE_EVT_UDSS_INDICATION_DISABLED,
1848 
1849     /** UDS Server - User Data Service Characteristic
1850      *  Indication was confirmed. The parameter of this event
1851      *  is a structure of the cy_stc_ble_uds_char_value_t type.
1852      */
1853     CY_BLE_EVT_UDSS_INDICATION_CONFIRMED,
1854 
1855     /** UDS Server - Notification for User Data Service Characteristic
1856      *  was enabled. The parameter of this event is a structure of
1857      *  the cy_stc_ble_uds_char_value_t type.
1858      */
1859     CY_BLE_EVT_UDSS_NOTIFICATION_ENABLED,
1860 
1861     /** UDS Server - Notification for User Data Service Characteristic
1862      *  was disabled. The parameter of this event is a structure
1863      *  of the cy_stc_ble_uds_char_value_t type.
1864      */
1865     CY_BLE_EVT_UDSS_NOTIFICATION_DISABLED,
1866 
1867     /** UDS Server - Read Request for User Data Service Characteristic
1868      *  was received. The parameter of this event is a structure
1869      *  of the cy_stc_ble_uds_char_value_t type.
1870      */
1871     CY_BLE_EVT_UDSS_READ_CHAR,
1872 
1873     /** UDS Server - Write Request for User Data Service Characteristic
1874      *  was received. The parameter of this event is a structure
1875      *  of the cy_stc_ble_uds_char_value_t type.
1876      */
1877     CY_BLE_EVT_UDSS_WRITE_CHAR,
1878 
1879     /** UDS Client - User Data Service Characteristic
1880      *  Indication was received. The parameter of this event
1881      *  is a structure of the cy_stc_ble_uds_char_value_t type.
1882      */
1883     CY_BLE_EVT_UDSC_INDICATION,
1884 
1885     /** UDS Client - User Data Service Characteristic
1886      *  Notification was received. The parameter of this event
1887      *  is a structure of the cy_stc_ble_uds_char_value_t type.
1888      */
1889     CY_BLE_EVT_UDSC_NOTIFICATION,
1890 
1891     /** UDS Client - Read Response for Read Request of User Data
1892      *  Service Characteristic Value. The parameter of this event
1893      *  is a structure of the cy_stc_ble_uds_char_value_t type.
1894      */
1895     CY_BLE_EVT_UDSC_READ_CHAR_RESPONSE,
1896 
1897     /** UDS Client - Write Response for Write Request of User Data
1898      *  Service Characteristic Value. The parameter of this event
1899      *  is a structure of the cy_stc_ble_uds_char_value_t type.
1900      */
1901     CY_BLE_EVT_UDSC_WRITE_CHAR_RESPONSE,
1902 
1903     /** UDS Client - Read Response for Read Request of User Data
1904      *  Service Characteristic descriptor Read Request. The
1905      *  parameter of this event is a structure of
1906      *  the cy_stc_ble_uds_descr_value_t type.
1907      */
1908     CY_BLE_EVT_UDSC_READ_DESCR_RESPONSE,
1909 
1910     /** UDS Client - Write Response for Write Request of User Data
1911      *  Service Characteristic Configuration Descriptor value.
1912      *  The parameter of this event is a structure of
1913      *  the cy_stc_ble_uds_descr_value_t type.
1914      */
1915     CY_BLE_EVT_UDSC_WRITE_DESCR_RESPONSE,
1916 
1917     /** UDS Client - Error Response for Write Request for User Data Service
1918      *  Characteristic Value. The parameter of this event is a structure of
1919      *  the cy_stc_ble_uds_char_value_t type.
1920      */
1921     CY_BLE_EVT_UDSC_ERROR_RESPONSE,
1922 
1923 
1924     /****************************************
1925     * Wireless Power Transfer Service events
1926     ****************************************/
1927 
1928     /** WPTS Server - Notification for Wireless Power Transfer Service Characteristic
1929      *  was enabled. The parameter of this event is a structure of
1930      *  the cy_stc_ble_wpts_char_value_t type.
1931      */
1932     CY_BLE_EVT_WPTSS_NOTIFICATION_ENABLED,
1933 
1934     /** WPTS Server - Notification for Wireless Power Transfer Service Characteristic
1935      *  was disabled. The parameter of this event is a structure
1936      *  of the cy_stc_ble_wpts_char_value_t type.
1937      */
1938     CY_BLE_EVT_WPTSS_NOTIFICATION_DISABLED,
1939 
1940     /** WPTS Server - Indication for Wireless Power Transfer Service Characteristic
1941      *  was enabled. The parameter of this event is a structure
1942      *  of the cy_stc_ble_wpts_char_value_t type.
1943      */
1944     CY_BLE_EVT_WPTSS_INDICATION_ENABLED,
1945 
1946     /** WPTS Server - Indication for Wireless Power Transfer Service Characteristic
1947      *  was disabled. The parameter of this event is a structure
1948      *  of the cy_stc_ble_wpts_char_value_t type.
1949      */
1950     CY_BLE_EVT_WPTSS_INDICATION_DISABLED,
1951 
1952     /** WPTS Server - Wireless Power Transfer Service Characteristic
1953      *  Indication was confirmed. The parameter of this event
1954      *  is a structure of the cy_stc_ble_wpts_char_value_t type.
1955      */
1956     CY_BLE_EVT_WPTSS_INDICATION_CONFIRMED,
1957 
1958     /** WPTS Server - Write Request for Wireless Power Transfer Service Characteristic
1959      *  was received. The parameter of this event is a structure
1960      *  of cy_stc_ble_wpts_char_value_t type.
1961      */
1962     CY_BLE_EVT_WPTSS_WRITE_CHAR,
1963 
1964     /** WPTS Client - Wireless Power Transfer Service Characteristic
1965      *  Notification was received. The parameter of this event
1966      *  is a structure of the cy_stc_ble_wpts_char_value_t type.
1967      */
1968     CY_BLE_EVT_WPTSC_NOTIFICATION,
1969 
1970     /** WPTS Client - Wireless Power Transfer Service Characteristic
1971      *  Indication was received. The parameter of this event
1972      *  is a structure of the cy_stc_ble_wpts_char_value_t type.
1973      */
1974     CY_BLE_EVT_WPTSC_INDICATION,
1975 
1976     /** WPTS Client - Write Response for Read Request of Wireless Power Transfer
1977      *  Service Characteristic Value. The parameter of this event
1978      *  is a structure of the cy_stc_ble_wpts_char_value_t type.
1979      */
1980     CY_BLE_EVT_WPTSC_WRITE_CHAR_RESPONSE,
1981 
1982     /** WPTS Client - Read Response for Read Request of Wireless Power Transfer
1983      *  Service Characteristic Value. The parameter of this event
1984      *  is a structure of the cy_stc_ble_wpts_char_value_t type.
1985      */
1986     CY_BLE_EVT_WPTSC_READ_CHAR_RESPONSE,
1987 
1988     /** WPTS Client - Read Response for Read Request of Wireless Power Transfer
1989      *  Service Characteristic descriptor Read Request. The
1990      *  parameter of this event is a structure of
1991      *  the cy_stc_ble_wpts_descr_value_t type.
1992      */
1993     CY_BLE_EVT_WPTSC_READ_DESCR_RESPONSE,
1994 
1995     /** WPTS Client - Write Response for Write Request of Wireless Power Transfer
1996      *  Service Characteristic Configuration Descriptor value.
1997      *  The parameter of this event is a structure of
1998      *  the cy_stc_ble_wpts_descr_value_t type.
1999      */
2000     CY_BLE_EVT_WPTSC_WRITE_DESCR_RESPONSE,
2001 
2002 
2003     /****************************************
2004     *     Weight Scale Service events
2005     ****************************************/
2006 
2007     /** WSS Server - Indication for Weight Scale Service Characteristic
2008      *  was enabled. The parameter of this event is a structure
2009      *  of the cy_stc_ble_wss_char_value_t type.
2010      */
2011     CY_BLE_EVT_WSSS_INDICATION_ENABLED,
2012 
2013     /** WSS Server - Indication for Weight Scale Service Characteristic
2014      *  was disabled. The parameter of this event is a structure
2015      *  of the cy_stc_ble_wss_char_value_t type.
2016      */
2017     CY_BLE_EVT_WSSS_INDICATION_DISABLED,
2018 
2019     /** WSS Server - Weight Scale Service Characteristic
2020      *  Indication was confirmed. The parameter of this event
2021      *  is a structure of the cy_stc_ble_wss_char_value_t type.
2022      */
2023     CY_BLE_EVT_WSSS_INDICATION_CONFIRMED,
2024 
2025     /** WSS Client - Weight Scale Service Characteristic
2026      *  Indication was received. The parameter of this event
2027      *  is a structure of the cy_stc_ble_wss_char_value_t type.
2028      */
2029     CY_BLE_EVT_WSSC_INDICATION,
2030     /** WSS Client - Read Response for Read Request of Weight Scale
2031      *  Service Characteristic Value. The parameter of this event
2032      *  is a structure of the cy_stc_ble_wss_char_value_t type.
2033      */
2034     CY_BLE_EVT_WSSC_READ_CHAR_RESPONSE,
2035 
2036     /** WSS Client - Read Response for Read Request of Weight Scale
2037      *  Service Characteristic descriptor Read Request. The
2038      *  parameter of this event is a structure of
2039      *  cy_stc_ble_wss_descr_value_t type.
2040      */
2041     CY_BLE_EVT_WSSC_READ_DESCR_RESPONSE,
2042 
2043     /** WSS Client - Write Response for Write Request of Weight Scale
2044      *  Service Characteristic Configuration Descriptor value.
2045      *  The parameter of this event is a structure of
2046      *  the cy_stc_ble_wss_descr_value_t type.
2047      */
2048     CY_BLE_EVT_WSSC_WRITE_DESCR_RESPONSE,
2049 
2050     /****************************************
2051     *     Bootloader Service events
2052     ****************************************/
2053     /** BT Server - Notification for Bootloader Service Characteristic
2054      *  was enabled.
2055      */
2056     CY_BLE_EVT_BTSS_NOTIFICATION_ENABLED,
2057 
2058     /** BT Server - Notification for Bootloader Service Characteristic
2059      *  was disabled.
2060      */
2061     CY_BLE_EVT_BTSS_NOTIFICATION_DISABLED,
2062     /** BT Server - Write Request event for the Bootloader Service Characteristic.
2063      *  The parameter of this event is a structure of the cy_stc_ble_bts_char_value_t type.
2064      */
2065     CY_BLE_EVT_BTSS_WRITE_REQ,
2066     /** BT Server - Write Without Response Request event for the Bootloader Service Characteristic.
2067      *  The parameter of this event is a structure of the cy_stc_ble_bts_char_value_t type.
2068      */
2069     CY_BLE_EVT_BTSS_WRITE_CMD_REQ,
2070     /** Send Prepare Write Response that identifies acknowledgement for
2071      *  long Characteristic value write. The parameter of this event is a structure of
2072      *  the cy_stc_ble_gatts_prep_write_req_param_t type.
2073      */
2074     CY_BLE_EVT_BTSS_PREP_WRITE_REQ,
2075 
2076     /** Execute Write Request for Bootloader Service
2077      *  Characteristic was received. The parameter of this event is a structure of
2078      *  the cy_stc_ble_gatts_exec_write_req_t type.
2079      */
2080     CY_BLE_EVT_BTSS_EXEC_WRITE_REQ,
2081 
2082 
2083     /****************************************
2084      * Discovery Procedure events
2085      ***************************************/
2086 
2087     /** Discovery Services event. The parameter of this event is a structure of
2088      *  the cy_stc_ble_disc_srv_info_t type.
2089      */
2090     CY_BLE_EVT_GATTC_DISC_SERVICE,
2091 
2092     /** Discovery Includes event. The parameter of this event is a structure of
2093      *  the cy_stc_ble_disc_incl_info_t type.
2094      */
2095     CY_BLE_EVT_GATTC_DISC_INCL,
2096 
2097     /** Discovery Characteristic event. The parameter of this event is a structure of
2098      *  the cy_stc_ble_disc_char_info_t type.
2099      */
2100     CY_BLE_EVT_GATTC_DISC_CHAR,
2101 
2102     /** Discovery Descriptors event. The parameter of this event is a structure of
2103      *  the cy_stc_ble_disc_descr_info_t type.
2104      */
2105     CY_BLE_EVT_GATTC_DISC_DESCR,
2106 
2107     /** event for run a procedure which returns a possible range of the current
2108      *  Characteristic descriptor. The parameter of this event is a structure
2109      *  of the cy_stc_ble_disc_range_info_t type.
2110      */
2111     CY_BLE_EVT_GATTC_DISC_DESCR_GET_RANGE
2112 } cy_en_ble_evt_t;
2113 /** \} group_service_api_events */
2114 
2115 
2116 /*******************************************************************************
2117 * Private Function Prototypes
2118 *******************************************************************************/
2119 
2120 void Cy_BLE_EventHandler(cy_en_ble_event_t event, void *evParam);
2121 void Cy_BLE_ServerEventHandler(cy_en_ble_event_t event, void *evParam);
2122 void Cy_BLE_ClientEventHandler(cy_en_ble_event_t event, void *evParam);
2123 uint8_t Cy_BLE_IsDeviceAddressValid(const cy_stc_ble_bd_addr_t *deviceAddress);
2124 
2125 /* Registration Service's event Handler functions */
2126 // cy_en_ble_api_result_t Cy_BLE_RegisterServiceEventHandler(cy_ble_event_handle_t eventHandlerFunc);
2127 // cy_en_ble_gatt_err_code_t Cy_BLE_InvokeServiceEventHandler(uint32_t eventCode, void *eventParam);
2128 
2129 
2130 /***************************************
2131 * External Data references
2132 ***************************************/
2133 
2134 extern volatile uint8_t cy_ble_eventHandlerFlag;
2135 // extern volatile uint8_t cy_ble_busyStatus[CY_BLE_MAX_SUPPORTED_CONN_COUNT];
2136 extern cy_ble_app_ev_cb_t Cy_BLE_ServerEventHandlerCallback;
2137 extern cy_ble_app_ev_cb_t Cy_BLE_ClientEventHandlerCallback;
2138 extern void (* Cy_BLE_UnregisterPmCallbacksPtr)(void);
2139 extern void (* Cy_BLE_RegisterPmCallbacksPtr)(void);
2140 
2141 /* Pointer to the BLE device address in SROM */
2142 extern cy_stc_ble_bd_addr_t *cy_ble_sflashDeviceAddress;
2143 
2144 
2145 /*******************************************************************************
2146 * Macro Functions
2147 *******************************************************************************/
2148 
2149 /**
2150  * \addtogroup group_ble_common_api_gatt_functions
2151  * \{
2152  */
2153 /******************************************************************************
2154 * Function Name: Cy_BLE_GATT_GetBusyStatus
2155 ***************************************************************************//**
2156 *
2157 *  This function returns a status of the BLE Stack (busy or not busy).
2158 *  The status is changed after the #CY_BLE_EVT_STACK_BUSY_STATUS event.
2159 *
2160 *  \param attId: Identifies the active ATT connection Instance.
2161 *
2162 * \return
2163 *  uint8_t: The busy status.
2164 *   * CY_BLE_STACK_STATE_BUSY - The BLE Stack is busy.
2165 *   * CY_BLE_STACK_STATE_FREE - The BLE Stack is not busy.
2166 *
2167 ******************************************************************************/
2168 #define Cy_BLE_GATT_GetBusyStatus(attId)    (cy_ble_busyStatus[attId])
2169 /** \} group_ble_common_api_gatt_functions */
2170 
2171 /**
2172  * \addtogroup group_ble_common_api_functions
2173  * \{
2174  */
2175 
2176 /** \cond IGNORE */
2177 /** Macro to check the Characteristic handle */
2178 #define CY_BLE_GapcCheckCharHandle(handle, discCharInfo)                     \
2179     do {                                                                     \
2180         if((handle) == CY_BLE_GATT_INVALID_ATTR_HANDLE_VALUE)                \
2181         {                                                                    \
2182             (handle) = (discCharInfo)->valueHandle;                          \
2183         }                                                                    \
2184         else                                                                 \
2185         {                                                                    \
2186             Cy_BLE_ApplCallback((uint32_t)CY_BLE_EVT_GATTC_CHAR_DUPLICATION, \
2187                                 (discCharInfo));                             \
2188         }                                                                    \
2189     } while(0)
2190 
2191 /** Macro to check and store the Characteristic handle */
2192 #define Cy_BLE_CheckStoreCharHandle(handle)                                  \
2193     do {                                                                     \
2194         if((handle).valueHandle == CY_BLE_GATT_INVALID_ATTR_HANDLE_VALUE)    \
2195         {                                                                    \
2196             (handle).valueHandle = discCharInfo->valueHandle;                \
2197             (handle).properties = discCharInfo->properties;                  \
2198         }                                                                    \
2199         else                                                                 \
2200         {                                                                    \
2201             Cy_BLE_ApplCallback((uint32_t)CY_BLE_EVT_GATTC_CHAR_DUPLICATION, \
2202                                 discCharInfo);                               \
2203         }                                                                    \
2204     } while(0)
2205 
2206 /** Macro to check and store the Characteristic descriptor handle */
2207 #define Cy_BLE_CheckStoreCharDescrHandle(handle)                             \
2208     do {                                                                     \
2209         if((handle) == CY_BLE_GATT_INVALID_ATTR_HANDLE_VALUE)                \
2210         {                                                                    \
2211             (handle) = discDescrInfo->descrHandle;                           \
2212         }                                                                    \
2213         else                                                                 \
2214         {                                                                    \
2215             Cy_BLE_ApplCallback((uint32_t)CY_BLE_EVT_GATTC_DESCR_DUPLICATION,\
2216                                 discDescrInfo);                              \
2217         }                                                                    \
2218     } while(0)
2219 
2220 
2221 /******************************************************************************
2222 * Function Name: Cy_BLE_Get16ByPtr
2223 ***************************************************************************//**
2224 *
2225 *  Returns the two-bytes value by using a pointer to the LSB.
2226 *
2227 *  \param ptr: Pointer to the LSB of two-bytes data (little-endian).
2228 *
2229 *  \return
2230 *  uint16_t: Two-bytes data.
2231 *
2232 ******************************************************************************/
Cy_BLE_Get16ByPtr(const uint8_t ptr[])2233 __STATIC_INLINE uint16_t Cy_BLE_Get16ByPtr(const uint8_t ptr[])
2234 {
2235     return((uint16_t)ptr[0u] | ((uint16_t)(((uint16_t)ptr[1u]) << 8u)));
2236 }
2237 
2238 
2239 /******************************************************************************
2240 * Function Name: Cy_BLE_Set16ByPtr
2241 ***************************************************************************//**
2242 *
2243 *  Sets the two-bytes value by using a pointer to the LSB.
2244 *
2245 *  \param ptr:    Pointer to the LSB of two-bytes data (little-endian).
2246 *  \param value:  Two-bytes data to be written.
2247 *
2248 ******************************************************************************/
Cy_BLE_Set16ByPtr(uint8_t ptr[],uint16_t value)2249 __STATIC_INLINE void Cy_BLE_Set16ByPtr(uint8_t ptr[],
2250                                        uint16_t value)
2251 {
2252     ptr[0u] = (uint8_t)value;
2253     ptr[1u] = (uint8_t)(value >> 8u);
2254 }
2255 
2256 /******************************************************************************
2257 * Function Name: Cy_BLE_Get24ByPtr
2258 ***************************************************************************//**
2259 *
2260 *  Returns the three-bytes value by using a pointer to the LSB.
2261 *
2262 *  \param ptr: Pointer to the LSB of two-bytes data (little-endian).
2263 *
2264 *  \return
2265 *  uint16_t: Two-bytes data.
2266 *
2267 ******************************************************************************/
Cy_BLE_Get24ByPtr(const uint8_t ptr[])2268 __STATIC_INLINE uint32_t Cy_BLE_Get24ByPtr(const uint8_t ptr[])
2269 {
2270     return(((uint32_t)ptr[0u]) | ((uint32_t)(((uint32_t)ptr[1u]) << 8u)) | ((uint32_t)((uint32_t)ptr[2u]) << 16u));
2271 }
2272 /** \endcond */
2273 /** \} group_common_api_functions */
2274 
2275 /*******************************************************************************
2276 * Private Function Prototypes
2277 *******************************************************************************/
2278 
2279 // void Cy_BLE_NextInclDiscovery(cy_stc_ble_conn_handle_t connHandle, uint8_t incrementIndex);
2280 
2281 
2282 #ifdef __cplusplus
2283 }
2284 #endif /* __cplusplus */
2285 #endif /* CY_IP_MXBLESS */
2286 #endif /* CY_BLE_EVENT_HANDLER_H */
2287 
2288 
2289 /* [] END OF FILE */
2290