Pinned to some recent date
features/FEATURE_BLE/ble/GattServerEvents.h@0:fb7af294d5d9, 2016-11-17 (annotated)
- Committer:
- Simon Cooksey
- Date:
- Thu Nov 17 16:43:53 2016 +0000
- Revision:
- 0:fb7af294d5d9
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Simon Cooksey |
0:fb7af294d5d9 | 1 | /* mbed Microcontroller Library |
Simon Cooksey |
0:fb7af294d5d9 | 2 | * Copyright (c) 2006-2013 ARM Limited |
Simon Cooksey |
0:fb7af294d5d9 | 3 | * |
Simon Cooksey |
0:fb7af294d5d9 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Simon Cooksey |
0:fb7af294d5d9 | 5 | * you may not use this file except in compliance with the License. |
Simon Cooksey |
0:fb7af294d5d9 | 6 | * You may obtain a copy of the License at |
Simon Cooksey |
0:fb7af294d5d9 | 7 | * |
Simon Cooksey |
0:fb7af294d5d9 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Simon Cooksey |
0:fb7af294d5d9 | 9 | * |
Simon Cooksey |
0:fb7af294d5d9 | 10 | * Unless required by applicable law or agreed to in writing, software |
Simon Cooksey |
0:fb7af294d5d9 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Simon Cooksey |
0:fb7af294d5d9 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Simon Cooksey |
0:fb7af294d5d9 | 13 | * See the License for the specific language governing permissions and |
Simon Cooksey |
0:fb7af294d5d9 | 14 | * limitations under the License. |
Simon Cooksey |
0:fb7af294d5d9 | 15 | */ |
Simon Cooksey |
0:fb7af294d5d9 | 16 | |
Simon Cooksey |
0:fb7af294d5d9 | 17 | #ifndef __GATT_SERVER_EVENTS_H__ |
Simon Cooksey |
0:fb7af294d5d9 | 18 | #define __GATT_SERVER_EVENTS_H__ |
Simon Cooksey |
0:fb7af294d5d9 | 19 | |
Simon Cooksey |
0:fb7af294d5d9 | 20 | /** |
Simon Cooksey |
0:fb7af294d5d9 | 21 | * @brief The base class used to abstract away the callback events that can be |
Simon Cooksey |
0:fb7af294d5d9 | 22 | * triggered with the GATT Server. |
Simon Cooksey |
0:fb7af294d5d9 | 23 | */ |
Simon Cooksey |
0:fb7af294d5d9 | 24 | class GattServerEvents |
Simon Cooksey |
0:fb7af294d5d9 | 25 | { |
Simon Cooksey |
0:fb7af294d5d9 | 26 | public: |
Simon Cooksey |
0:fb7af294d5d9 | 27 | /** |
Simon Cooksey |
0:fb7af294d5d9 | 28 | * Enumeration for GattServer events. |
Simon Cooksey |
0:fb7af294d5d9 | 29 | */ |
Simon Cooksey |
0:fb7af294d5d9 | 30 | typedef enum gattEvent_e { |
Simon Cooksey |
0:fb7af294d5d9 | 31 | GATT_EVENT_DATA_SENT = 1, /**< Fired when a message was successfully sent out (notify only?) */ |
Simon Cooksey |
0:fb7af294d5d9 | 32 | GATT_EVENT_DATA_WRITTEN = 2, /**< Client wrote data to the server (separate into char and descriptor writes?) */ |
Simon Cooksey |
0:fb7af294d5d9 | 33 | GATT_EVENT_UPDATES_ENABLED = 3, /**< Notify/Indicate enabled in CCCD. */ |
Simon Cooksey |
0:fb7af294d5d9 | 34 | GATT_EVENT_UPDATES_DISABLED = 4, /**< Notify/Indicate disabled in CCCD. */ |
Simon Cooksey |
0:fb7af294d5d9 | 35 | GATT_EVENT_CONFIRMATION_RECEIVED = 5, /**< Response received from Indicate message. */ |
Simon Cooksey |
0:fb7af294d5d9 | 36 | GATT_EVENT_READ_AUTHORIZATION_REQ = 6, /**< Request application to authorize read. */ |
Simon Cooksey |
0:fb7af294d5d9 | 37 | GATT_EVENT_WRITE_AUTHORIZATION_REQ = 7, /**< Request application to authorize write. */ |
Simon Cooksey |
0:fb7af294d5d9 | 38 | } gattEvent_t; |
Simon Cooksey |
0:fb7af294d5d9 | 39 | }; |
Simon Cooksey |
0:fb7af294d5d9 | 40 | |
Simon Cooksey |
0:fb7af294d5d9 | 41 | #endif /* ifndef __GATT_SERVER_EVENTS_H__ */ |