|
14 | 14 | * limitations under the License.
|
15 | 15 | */
|
16 | 16 |
|
17 |
| -#ifndef __GATT_SERVER_EVENTS_H__ |
18 |
| -#define __GATT_SERVER_EVENTS_H__ |
| 17 | +#ifndef MBED_BLE_GATT_SERVER_EVENTS_H__ |
| 18 | +#define MBED_BLE_GATT_SERVER_EVENTS_H__ |
19 | 19 |
|
20 | 20 | /**
|
21 |
| - * @brief The base class used to abstract away the callback events that can be |
22 |
| - * triggered with the GATT Server. |
| 21 | + * Abstract events generated by a GattServer vendor port. |
| 22 | + * |
| 23 | + * @important This class is not part of the public API. |
23 | 24 | */
|
24 | 25 | class GattServerEvents
|
25 | 26 | {
|
26 | 27 | public:
|
27 | 28 | /**
|
28 |
| - * Enumeration for GattServer events. |
| 29 | + * Enumeration of events which can be generated by a GattServer |
| 30 | + * implementation. |
29 | 31 | */
|
30 | 32 | typedef enum gattEvent_e {
|
31 |
| - GATT_EVENT_DATA_SENT = 1, /**< Fired when a message was successfully sent out (notify only?) */ |
32 |
| - GATT_EVENT_DATA_WRITTEN = 2, /**< Client wrote data to the server (separate into char and descriptor writes?) */ |
33 |
| - GATT_EVENT_UPDATES_ENABLED = 3, /**< Notify/Indicate enabled in CCCD. */ |
34 |
| - GATT_EVENT_UPDATES_DISABLED = 4, /**< Notify/Indicate disabled in CCCD. */ |
35 |
| - GATT_EVENT_CONFIRMATION_RECEIVED = 5, /**< Response received from Indicate message. */ |
36 |
| - GATT_EVENT_READ_AUTHORIZATION_REQ = 6, /**< Request application to authorize read. */ |
37 |
| - GATT_EVENT_WRITE_AUTHORIZATION_REQ = 7, /**< Request application to authorize write. */ |
| 33 | + /** |
| 34 | + * Fired when a server event was successfully sent out. |
| 35 | + */ |
| 36 | + GATT_EVENT_DATA_SENT = 1, |
| 37 | + |
| 38 | + /** |
| 39 | + * Client has written a server attribute. |
| 40 | + */ |
| 41 | + GATT_EVENT_DATA_WRITTEN = 2, |
| 42 | + |
| 43 | + /** |
| 44 | + * Notification or indication enabled in CCCD. |
| 45 | + */ |
| 46 | + GATT_EVENT_UPDATES_ENABLED = 3, |
| 47 | + |
| 48 | + /** |
| 49 | + * Notification or Indication disabled in CCCD. |
| 50 | + */ |
| 51 | + GATT_EVENT_UPDATES_DISABLED = 4, |
| 52 | + |
| 53 | + /** |
| 54 | + * Response received from Characteristic Value Indication message. |
| 55 | + */ |
| 56 | + GATT_EVENT_CONFIRMATION_RECEIVED = 5, |
| 57 | + |
| 58 | + /** |
| 59 | + * Request application to authorize read. |
| 60 | + */ |
| 61 | + GATT_EVENT_READ_AUTHORIZATION_REQ = 6, |
| 62 | + |
| 63 | + /** |
| 64 | + * Request application to authorize write. |
| 65 | + */ |
| 66 | + GATT_EVENT_WRITE_AUTHORIZATION_REQ = 7, |
| 67 | + |
38 | 68 | } gattEvent_t;
|
39 | 69 | };
|
40 | 70 |
|
41 |
| -#endif /* ifndef __GATT_SERVER_EVENTS_H__ */ |
| 71 | +#endif /* ifndef MBED_BLE_GATT_SERVER_EVENTS_H__ */ |
0 commit comments