Marco Zecchini
/
Example_RTOS
Rtos API example
Embed:
(wiki syntax)
Show/hide line numbers
GattServerEvents.h
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2006-2013 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #ifndef MBED_BLE_GATT_SERVER_EVENTS_H__ 00018 #define MBED_BLE_GATT_SERVER_EVENTS_H__ 00019 00020 /** 00021 * @addtogroup ble 00022 * @{ 00023 * @addtogroup gatt 00024 * @{ 00025 * @addtogroup server 00026 * @{ 00027 */ 00028 00029 /** 00030 * Abstract events generated by a GattServer vendor port. 00031 * 00032 * @important This class is not part of the public API. 00033 */ 00034 class GattServerEvents 00035 { 00036 public: 00037 /** 00038 * Enumeration of events, which a GattServer 00039 * implementation can generate. 00040 */ 00041 typedef enum gattEvent_e { 00042 /** 00043 * Fired when a server event was successfully sent. 00044 */ 00045 GATT_EVENT_DATA_SENT = 1, 00046 00047 /** 00048 * Client has written a server attribute. 00049 */ 00050 GATT_EVENT_DATA_WRITTEN = 2, 00051 00052 /** 00053 * Notification or indication enabled in CCCD. 00054 */ 00055 GATT_EVENT_UPDATES_ENABLED = 3, 00056 00057 /** 00058 * Notification or Indication disabled in CCCD. 00059 */ 00060 GATT_EVENT_UPDATES_DISABLED = 4, 00061 00062 /** 00063 * Response received from Characteristic Value Indication message. 00064 */ 00065 GATT_EVENT_CONFIRMATION_RECEIVED = 5, 00066 00067 /** 00068 * Request application to authorize read. 00069 */ 00070 GATT_EVENT_READ_AUTHORIZATION_REQ = 6, 00071 00072 /** 00073 * Request application to authorize write. 00074 */ 00075 GATT_EVENT_WRITE_AUTHORIZATION_REQ = 7, 00076 00077 } gattEvent_t; 00078 }; 00079 00080 /** 00081 * @} 00082 * @} 00083 * @} 00084 */ 00085 00086 #endif /* ifndef MBED_BLE_GATT_SERVER_EVENTS_H__ */
Generated on Sun Jul 17 2022 08:25:23 by 1.7.2