Skip to content

Commit 7f22d25

Browse files
committed
BLE: Improve GattServerEvents.h documentation.
1 parent a7b4d6a commit 7f22d25

File tree

1 file changed

+43
-13
lines changed

1 file changed

+43
-13
lines changed

features/FEATURE_BLE/ble/GattServerEvents.h

Lines changed: 43 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,58 @@
1414
* limitations under the License.
1515
*/
1616

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__
1919

2020
/**
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.
2324
*/
2425
class GattServerEvents
2526
{
2627
public:
2728
/**
28-
* Enumeration for GattServer events.
29+
* Enumeration of events which can be generated by a GattServer
30+
* implementation.
2931
*/
3032
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+
3868
} gattEvent_t;
3969
};
4070

41-
#endif /* ifndef __GATT_SERVER_EVENTS_H__ */
71+
#endif /* ifndef MBED_BLE_GATT_SERVER_EVENTS_H__ */

0 commit comments

Comments
 (0)