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