Nordic nrf51 sdk sources. Mirrored from https://github.com/ARMmbed/nrf51-sdk.
source/nordic_sdk/components/softdevice/s130/headers/ble_gatt.h@28:041dac1366b2, 2016-04-07 (annotated)
- Committer:
- vcoubard
- Date:
- Thu Apr 07 17:37:56 2016 +0100
- Revision:
- 28:041dac1366b2
- Parent:
- 20:a90c48eb1d30
- Child:
- 29:286940b7ee5a
Synchronized with git rev 012b8118
Author: Liyou Zhou
Pull in files from sdk 10.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
vcoubard | 28:041dac1366b2 | 1 | /* |
vcoubard | 28:041dac1366b2 | 2 | * Copyright (c) Nordic Semiconductor ASA |
vcoubard | 28:041dac1366b2 | 3 | * All rights reserved. |
vcoubard | 28:041dac1366b2 | 4 | * |
vcoubard | 28:041dac1366b2 | 5 | * Redistribution and use in source and binary forms, with or without modification, |
vcoubard | 28:041dac1366b2 | 6 | * are permitted provided that the following conditions are met: |
vcoubard | 28:041dac1366b2 | 7 | * |
vcoubard | 28:041dac1366b2 | 8 | * 1. Redistributions of source code must retain the above copyright notice, this |
vcoubard | 28:041dac1366b2 | 9 | * list of conditions and the following disclaimer. |
vcoubard | 28:041dac1366b2 | 10 | * |
vcoubard | 28:041dac1366b2 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, this |
vcoubard | 28:041dac1366b2 | 12 | * list of conditions and the following disclaimer in the documentation and/or |
vcoubard | 28:041dac1366b2 | 13 | * other materials provided with the distribution. |
vcoubard | 28:041dac1366b2 | 14 | * |
vcoubard | 28:041dac1366b2 | 15 | * 3. Neither the name of Nordic Semiconductor ASA nor the names of other |
vcoubard | 28:041dac1366b2 | 16 | * contributors to this software may be used to endorse or promote products |
vcoubard | 28:041dac1366b2 | 17 | * derived from this software without specific prior written permission. |
vcoubard | 28:041dac1366b2 | 18 | * |
vcoubard | 28:041dac1366b2 | 19 | * 4. This software must only be used in a processor manufactured by Nordic |
vcoubard | 28:041dac1366b2 | 20 | * Semiconductor ASA, or in a processor manufactured by a third party that |
vcoubard | 28:041dac1366b2 | 21 | * is used in combination with a processor manufactured by Nordic Semiconductor. |
vcoubard | 28:041dac1366b2 | 22 | * |
vcoubard | 28:041dac1366b2 | 23 | * |
vcoubard | 28:041dac1366b2 | 24 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
vcoubard | 28:041dac1366b2 | 25 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
vcoubard | 28:041dac1366b2 | 26 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
vcoubard | 28:041dac1366b2 | 27 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
vcoubard | 28:041dac1366b2 | 28 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
vcoubard | 28:041dac1366b2 | 29 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
vcoubard | 28:041dac1366b2 | 30 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
vcoubard | 28:041dac1366b2 | 31 | * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
vcoubard | 28:041dac1366b2 | 32 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
vcoubard | 28:041dac1366b2 | 33 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
vcoubard | 28:041dac1366b2 | 34 | * |
vcoubard | 1:ebc0e0ef0a11 | 35 | */ |
vcoubard | 1:ebc0e0ef0a11 | 36 | |
vcoubard | 1:ebc0e0ef0a11 | 37 | /** |
vcoubard | 1:ebc0e0ef0a11 | 38 | @addtogroup BLE_GATT Generic Attribute Profile (GATT) Common |
vcoubard | 1:ebc0e0ef0a11 | 39 | @{ |
vcoubard | 1:ebc0e0ef0a11 | 40 | @brief Common definitions and prototypes for the GATT interfaces. |
vcoubard | 1:ebc0e0ef0a11 | 41 | */ |
vcoubard | 1:ebc0e0ef0a11 | 42 | |
vcoubard | 1:ebc0e0ef0a11 | 43 | #ifndef BLE_GATT_H__ |
vcoubard | 1:ebc0e0ef0a11 | 44 | #define BLE_GATT_H__ |
vcoubard | 1:ebc0e0ef0a11 | 45 | |
vcoubard | 1:ebc0e0ef0a11 | 46 | #include "ble_types.h" |
vcoubard | 1:ebc0e0ef0a11 | 47 | #include "ble_ranges.h" |
vcoubard | 1:ebc0e0ef0a11 | 48 | |
vcoubard | 1:ebc0e0ef0a11 | 49 | |
vcoubard | 1:ebc0e0ef0a11 | 50 | /** @addtogroup BLE_GATT_DEFINES Defines |
vcoubard | 1:ebc0e0ef0a11 | 51 | * @{ */ |
vcoubard | 1:ebc0e0ef0a11 | 52 | |
vcoubard | 1:ebc0e0ef0a11 | 53 | /** @brief Default MTU size. */ |
vcoubard | 1:ebc0e0ef0a11 | 54 | #define GATT_MTU_SIZE_DEFAULT 23 |
vcoubard | 1:ebc0e0ef0a11 | 55 | |
vcoubard | 1:ebc0e0ef0a11 | 56 | /** @brief Only the default MTU size of 23 is currently supported. */ |
vcoubard | 1:ebc0e0ef0a11 | 57 | #define GATT_RX_MTU 23 |
vcoubard | 1:ebc0e0ef0a11 | 58 | |
vcoubard | 1:ebc0e0ef0a11 | 59 | |
vcoubard | 1:ebc0e0ef0a11 | 60 | /**@brief Invalid Attribute Handle. */ |
vcoubard | 1:ebc0e0ef0a11 | 61 | #define BLE_GATT_HANDLE_INVALID 0x0000 |
vcoubard | 1:ebc0e0ef0a11 | 62 | |
vcoubard | 1:ebc0e0ef0a11 | 63 | /** @defgroup BLE_GATT_TIMEOUT_SOURCES GATT Timeout sources |
vcoubard | 1:ebc0e0ef0a11 | 64 | * @{ */ |
vcoubard | 1:ebc0e0ef0a11 | 65 | #define BLE_GATT_TIMEOUT_SRC_PROTOCOL 0x00 /**< ATT Protocol timeout. */ |
vcoubard | 1:ebc0e0ef0a11 | 66 | /** @} */ |
vcoubard | 1:ebc0e0ef0a11 | 67 | |
vcoubard | 1:ebc0e0ef0a11 | 68 | /** @defgroup BLE_GATT_WRITE_OPS GATT Write operations |
vcoubard | 1:ebc0e0ef0a11 | 69 | * @{ */ |
vcoubard | 1:ebc0e0ef0a11 | 70 | #define BLE_GATT_OP_INVALID 0x00 /**< Invalid Operation. */ |
vcoubard | 1:ebc0e0ef0a11 | 71 | #define BLE_GATT_OP_WRITE_REQ 0x01 /**< Write Request. */ |
vcoubard | 1:ebc0e0ef0a11 | 72 | #define BLE_GATT_OP_WRITE_CMD 0x02 /**< Write Command. */ |
vcoubard | 1:ebc0e0ef0a11 | 73 | #define BLE_GATT_OP_SIGN_WRITE_CMD 0x03 /**< Signed Write Command. */ |
vcoubard | 1:ebc0e0ef0a11 | 74 | #define BLE_GATT_OP_PREP_WRITE_REQ 0x04 /**< Prepare Write Request. */ |
vcoubard | 1:ebc0e0ef0a11 | 75 | #define BLE_GATT_OP_EXEC_WRITE_REQ 0x05 /**< Execute Write Request. */ |
vcoubard | 1:ebc0e0ef0a11 | 76 | /** @} */ |
vcoubard | 1:ebc0e0ef0a11 | 77 | |
vcoubard | 1:ebc0e0ef0a11 | 78 | /** @defgroup BLE_GATT_EXEC_WRITE_FLAGS GATT Execute Write flags |
vcoubard | 1:ebc0e0ef0a11 | 79 | * @{ */ |
vcoubard | 1:ebc0e0ef0a11 | 80 | #define BLE_GATT_EXEC_WRITE_FLAG_PREPARED_CANCEL 0x00 |
vcoubard | 1:ebc0e0ef0a11 | 81 | #define BLE_GATT_EXEC_WRITE_FLAG_PREPARED_WRITE 0x01 |
vcoubard | 1:ebc0e0ef0a11 | 82 | /** @} */ |
vcoubard | 1:ebc0e0ef0a11 | 83 | |
vcoubard | 1:ebc0e0ef0a11 | 84 | /** @defgroup BLE_GATT_HVX_TYPES GATT Handle Value operations |
vcoubard | 1:ebc0e0ef0a11 | 85 | * @{ */ |
vcoubard | 1:ebc0e0ef0a11 | 86 | #define BLE_GATT_HVX_INVALID 0x00 /**< Invalid Operation. */ |
vcoubard | 1:ebc0e0ef0a11 | 87 | #define BLE_GATT_HVX_NOTIFICATION 0x01 /**< Handle Value Notification. */ |
vcoubard | 1:ebc0e0ef0a11 | 88 | #define BLE_GATT_HVX_INDICATION 0x02 /**< Handle Value Indication. */ |
vcoubard | 1:ebc0e0ef0a11 | 89 | /** @} */ |
vcoubard | 1:ebc0e0ef0a11 | 90 | |
vcoubard | 1:ebc0e0ef0a11 | 91 | /** @defgroup BLE_GATT_STATUS_CODES GATT Status Codes |
vcoubard | 1:ebc0e0ef0a11 | 92 | * @{ */ |
vcoubard | 1:ebc0e0ef0a11 | 93 | #define BLE_GATT_STATUS_SUCCESS 0x0000 /**< Success. */ |
vcoubard | 1:ebc0e0ef0a11 | 94 | #define BLE_GATT_STATUS_UNKNOWN 0x0001 /**< Unknown or not applicable status. */ |
vcoubard | 1:ebc0e0ef0a11 | 95 | #define BLE_GATT_STATUS_ATTERR_INVALID 0x0100 /**< ATT Error: Invalid Error Code. */ |
vcoubard | 1:ebc0e0ef0a11 | 96 | #define BLE_GATT_STATUS_ATTERR_INVALID_HANDLE 0x0101 /**< ATT Error: Invalid Attribute Handle. */ |
vcoubard | 1:ebc0e0ef0a11 | 97 | #define BLE_GATT_STATUS_ATTERR_READ_NOT_PERMITTED 0x0102 /**< ATT Error: Read not permitted. */ |
vcoubard | 1:ebc0e0ef0a11 | 98 | #define BLE_GATT_STATUS_ATTERR_WRITE_NOT_PERMITTED 0x0103 /**< ATT Error: Write not permitted. */ |
vcoubard | 1:ebc0e0ef0a11 | 99 | #define BLE_GATT_STATUS_ATTERR_INVALID_PDU 0x0104 /**< ATT Error: Used in ATT as Invalid PDU. */ |
vcoubard | 1:ebc0e0ef0a11 | 100 | #define BLE_GATT_STATUS_ATTERR_INSUF_AUTHENTICATION 0x0105 /**< ATT Error: Authenticated link required. */ |
vcoubard | 1:ebc0e0ef0a11 | 101 | #define BLE_GATT_STATUS_ATTERR_REQUEST_NOT_SUPPORTED 0x0106 /**< ATT Error: Used in ATT as Request Not Supported. */ |
vcoubard | 1:ebc0e0ef0a11 | 102 | #define BLE_GATT_STATUS_ATTERR_INVALID_OFFSET 0x0107 /**< ATT Error: Offset specified was past the end of the attribute. */ |
vcoubard | 1:ebc0e0ef0a11 | 103 | #define BLE_GATT_STATUS_ATTERR_INSUF_AUTHORIZATION 0x0108 /**< ATT Error: Used in ATT as Insufficient Authorisation. */ |
vcoubard | 1:ebc0e0ef0a11 | 104 | #define BLE_GATT_STATUS_ATTERR_PREPARE_QUEUE_FULL 0x0109 /**< ATT Error: Used in ATT as Prepare Queue Full. */ |
vcoubard | 1:ebc0e0ef0a11 | 105 | #define BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND 0x010A /**< ATT Error: Used in ATT as Attribute not found. */ |
vcoubard | 1:ebc0e0ef0a11 | 106 | #define BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_LONG 0x010B /**< ATT Error: Attribute cannot be read or written using read/write blob requests. */ |
vcoubard | 1:ebc0e0ef0a11 | 107 | #define BLE_GATT_STATUS_ATTERR_INSUF_ENC_KEY_SIZE 0x010C /**< ATT Error: Encryption key size used is insufficient. */ |
vcoubard | 1:ebc0e0ef0a11 | 108 | #define BLE_GATT_STATUS_ATTERR_INVALID_ATT_VAL_LENGTH 0x010D /**< ATT Error: Invalid value size. */ |
vcoubard | 1:ebc0e0ef0a11 | 109 | #define BLE_GATT_STATUS_ATTERR_UNLIKELY_ERROR 0x010E /**< ATT Error: Very unlikely error. */ |
vcoubard | 1:ebc0e0ef0a11 | 110 | #define BLE_GATT_STATUS_ATTERR_INSUF_ENCRYPTION 0x010F /**< ATT Error: Encrypted link required. */ |
vcoubard | 1:ebc0e0ef0a11 | 111 | #define BLE_GATT_STATUS_ATTERR_UNSUPPORTED_GROUP_TYPE 0x0110 /**< ATT Error: Attribute type is not a supported grouping attribute. */ |
vcoubard | 1:ebc0e0ef0a11 | 112 | #define BLE_GATT_STATUS_ATTERR_INSUF_RESOURCES 0x0111 /**< ATT Error: Encrypted link required. */ |
vcoubard | 1:ebc0e0ef0a11 | 113 | #define BLE_GATT_STATUS_ATTERR_RFU_RANGE1_BEGIN 0x0112 /**< ATT Error: Reserved for Future Use range #1 begin. */ |
vcoubard | 1:ebc0e0ef0a11 | 114 | #define BLE_GATT_STATUS_ATTERR_RFU_RANGE1_END 0x017F /**< ATT Error: Reserved for Future Use range #1 end. */ |
vcoubard | 1:ebc0e0ef0a11 | 115 | #define BLE_GATT_STATUS_ATTERR_APP_BEGIN 0x0180 /**< ATT Error: Application range begin. */ |
vcoubard | 1:ebc0e0ef0a11 | 116 | #define BLE_GATT_STATUS_ATTERR_APP_END 0x019F /**< ATT Error: Application range end. */ |
vcoubard | 1:ebc0e0ef0a11 | 117 | #define BLE_GATT_STATUS_ATTERR_RFU_RANGE2_BEGIN 0x01A0 /**< ATT Error: Reserved for Future Use range #2 begin. */ |
vcoubard | 1:ebc0e0ef0a11 | 118 | #define BLE_GATT_STATUS_ATTERR_RFU_RANGE2_END 0x01DF /**< ATT Error: Reserved for Future Use range #2 end. */ |
vcoubard | 1:ebc0e0ef0a11 | 119 | #define BLE_GATT_STATUS_ATTERR_RFU_RANGE3_BEGIN 0x01E0 /**< ATT Error: Reserved for Future Use range #3 begin. */ |
vcoubard | 1:ebc0e0ef0a11 | 120 | #define BLE_GATT_STATUS_ATTERR_RFU_RANGE3_END 0x01FC /**< ATT Error: Reserved for Future Use range #3 end. */ |
vcoubard | 1:ebc0e0ef0a11 | 121 | #define BLE_GATT_STATUS_ATTERR_CPS_CCCD_CONFIG_ERROR 0x01FD /**< ATT Common Profile and Service Error: Client Characteristic Configuration Descriptor improperly configured. */ |
vcoubard | 1:ebc0e0ef0a11 | 122 | #define BLE_GATT_STATUS_ATTERR_CPS_PROC_ALR_IN_PROG 0x01FE /**< ATT Common Profile and Service Error: Procedure Already in Progress. */ |
vcoubard | 1:ebc0e0ef0a11 | 123 | #define BLE_GATT_STATUS_ATTERR_CPS_OUT_OF_RANGE 0x01FF /**< ATT Common Profile and Service Error: Out Of Range. */ |
vcoubard | 1:ebc0e0ef0a11 | 124 | /** @} */ |
vcoubard | 1:ebc0e0ef0a11 | 125 | |
vcoubard | 1:ebc0e0ef0a11 | 126 | |
vcoubard | 1:ebc0e0ef0a11 | 127 | /** @defgroup BLE_GATT_CPF_FORMATS Characteristic Presentation Formats |
vcoubard | 1:ebc0e0ef0a11 | 128 | * @note Found at http://developer.bluetooth.org/gatt/descriptors/Pages/DescriptorViewer.aspx?u=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml |
vcoubard | 1:ebc0e0ef0a11 | 129 | * @{ */ |
vcoubard | 1:ebc0e0ef0a11 | 130 | #define BLE_GATT_CPF_FORMAT_RFU 0x00 /**< Reserved For Future Use. */ |
vcoubard | 1:ebc0e0ef0a11 | 131 | #define BLE_GATT_CPF_FORMAT_BOOLEAN 0x01 /**< Boolean. */ |
vcoubard | 1:ebc0e0ef0a11 | 132 | #define BLE_GATT_CPF_FORMAT_2BIT 0x02 /**< Unsigned 2-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 133 | #define BLE_GATT_CPF_FORMAT_NIBBLE 0x03 /**< Unsigned 4-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 134 | #define BLE_GATT_CPF_FORMAT_UINT8 0x04 /**< Unsigned 8-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 135 | #define BLE_GATT_CPF_FORMAT_UINT12 0x05 /**< Unsigned 12-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 136 | #define BLE_GATT_CPF_FORMAT_UINT16 0x06 /**< Unsigned 16-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 137 | #define BLE_GATT_CPF_FORMAT_UINT24 0x07 /**< Unsigned 24-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 138 | #define BLE_GATT_CPF_FORMAT_UINT32 0x08 /**< Unsigned 32-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 139 | #define BLE_GATT_CPF_FORMAT_UINT48 0x09 /**< Unsigned 48-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 140 | #define BLE_GATT_CPF_FORMAT_UINT64 0x0A /**< Unsigned 64-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 141 | #define BLE_GATT_CPF_FORMAT_UINT128 0x0B /**< Unsigned 128-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 142 | #define BLE_GATT_CPF_FORMAT_SINT8 0x0C /**< Signed 2-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 143 | #define BLE_GATT_CPF_FORMAT_SINT12 0x0D /**< Signed 12-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 144 | #define BLE_GATT_CPF_FORMAT_SINT16 0x0E /**< Signed 16-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 145 | #define BLE_GATT_CPF_FORMAT_SINT24 0x0F /**< Signed 24-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 146 | #define BLE_GATT_CPF_FORMAT_SINT32 0x10 /**< Signed 32-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 147 | #define BLE_GATT_CPF_FORMAT_SINT48 0x11 /**< Signed 48-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 148 | #define BLE_GATT_CPF_FORMAT_SINT64 0x12 /**< Signed 64-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 149 | #define BLE_GATT_CPF_FORMAT_SINT128 0x13 /**< Signed 128-bit integer. */ |
vcoubard | 1:ebc0e0ef0a11 | 150 | #define BLE_GATT_CPF_FORMAT_FLOAT32 0x14 /**< IEEE-754 32-bit floating point. */ |
vcoubard | 1:ebc0e0ef0a11 | 151 | #define BLE_GATT_CPF_FORMAT_FLOAT64 0x15 /**< IEEE-754 64-bit floating point. */ |
vcoubard | 1:ebc0e0ef0a11 | 152 | #define BLE_GATT_CPF_FORMAT_SFLOAT 0x16 /**< IEEE-11073 16-bit SFLOAT. */ |
vcoubard | 1:ebc0e0ef0a11 | 153 | #define BLE_GATT_CPF_FORMAT_FLOAT 0x17 /**< IEEE-11073 32-bit FLOAT. */ |
vcoubard | 1:ebc0e0ef0a11 | 154 | #define BLE_GATT_CPF_FORMAT_DUINT16 0x18 /**< IEEE-20601 format. */ |
vcoubard | 1:ebc0e0ef0a11 | 155 | #define BLE_GATT_CPF_FORMAT_UTF8S 0x19 /**< UTF-8 string. */ |
vcoubard | 1:ebc0e0ef0a11 | 156 | #define BLE_GATT_CPF_FORMAT_UTF16S 0x1A /**< UTF-16 string. */ |
vcoubard | 1:ebc0e0ef0a11 | 157 | #define BLE_GATT_CPF_FORMAT_STRUCT 0x1B /**< Opaque Structure. */ |
vcoubard | 1:ebc0e0ef0a11 | 158 | /** @} */ |
vcoubard | 1:ebc0e0ef0a11 | 159 | |
vcoubard | 1:ebc0e0ef0a11 | 160 | /** @defgroup BLE_GATT_CPF_NAMESPACES GATT Bluetooth Namespaces |
vcoubard | 1:ebc0e0ef0a11 | 161 | * @{ |
vcoubard | 1:ebc0e0ef0a11 | 162 | */ |
vcoubard | 1:ebc0e0ef0a11 | 163 | #define BLE_GATT_CPF_NAMESPACE_BTSIG 0x01 /**< Bluetooth SIG defined Namespace. */ |
vcoubard | 1:ebc0e0ef0a11 | 164 | #define BLE_GATT_CPF_NAMESPACE_DESCRIPTION_UNKNOWN 0x0000 /**< Namespace Description Unknown. */ |
vcoubard | 1:ebc0e0ef0a11 | 165 | /** @} */ |
vcoubard | 1:ebc0e0ef0a11 | 166 | |
vcoubard | 1:ebc0e0ef0a11 | 167 | /** @} */ |
vcoubard | 1:ebc0e0ef0a11 | 168 | |
vcoubard | 1:ebc0e0ef0a11 | 169 | /** @addtogroup BLE_GATT_STRUCTURES Structures |
vcoubard | 1:ebc0e0ef0a11 | 170 | * @{ */ |
vcoubard | 1:ebc0e0ef0a11 | 171 | |
vcoubard | 1:ebc0e0ef0a11 | 172 | /**@brief GATT Characteristic Properties. */ |
vcoubard | 1:ebc0e0ef0a11 | 173 | typedef struct |
vcoubard | 1:ebc0e0ef0a11 | 174 | { |
vcoubard | 1:ebc0e0ef0a11 | 175 | /* Standard properties */ |
vcoubard | 1:ebc0e0ef0a11 | 176 | uint8_t broadcast :1; /**< Broadcasting of the value permitted. */ |
vcoubard | 1:ebc0e0ef0a11 | 177 | uint8_t read :1; /**< Reading the value permitted. */ |
vcoubard | 1:ebc0e0ef0a11 | 178 | uint8_t write_wo_resp :1; /**< Writing the value with Write Command permitted. */ |
vcoubard | 1:ebc0e0ef0a11 | 179 | uint8_t write :1; /**< Writing the value with Write Request permitted. */ |
vcoubard | 1:ebc0e0ef0a11 | 180 | uint8_t notify :1; /**< Notications of the value permitted. */ |
vcoubard | 1:ebc0e0ef0a11 | 181 | uint8_t indicate :1; /**< Indications of the value permitted. */ |
vcoubard | 1:ebc0e0ef0a11 | 182 | uint8_t auth_signed_wr :1; /**< Writing the value with Signed Write Command permitted. */ |
vcoubard | 1:ebc0e0ef0a11 | 183 | } ble_gatt_char_props_t; |
vcoubard | 1:ebc0e0ef0a11 | 184 | |
vcoubard | 1:ebc0e0ef0a11 | 185 | /**@brief GATT Characteristic Extended Properties. */ |
vcoubard | 1:ebc0e0ef0a11 | 186 | typedef struct |
vcoubard | 1:ebc0e0ef0a11 | 187 | { |
vcoubard | 1:ebc0e0ef0a11 | 188 | /* Extended properties */ |
vcoubard | 1:ebc0e0ef0a11 | 189 | uint8_t reliable_wr :1; /**< Writing the value with Queued Write operations permitted. */ |
vcoubard | 1:ebc0e0ef0a11 | 190 | uint8_t wr_aux :1; /**< Writing the Characteristic User Description descriptor permitted. */ |
vcoubard | 1:ebc0e0ef0a11 | 191 | } ble_gatt_char_ext_props_t; |
vcoubard | 1:ebc0e0ef0a11 | 192 | |
vcoubard | 1:ebc0e0ef0a11 | 193 | #endif // BLE_GATT_H__ |
vcoubard | 1:ebc0e0ef0a11 | 194 | |
vcoubard | 1:ebc0e0ef0a11 | 195 | /** @} */ |
vcoubard | 1:ebc0e0ef0a11 | 196 | |
vcoubard | 1:ebc0e0ef0a11 | 197 | /** |
vcoubard | 1:ebc0e0ef0a11 | 198 | @} |
vcoubard | 1:ebc0e0ef0a11 | 199 | @} |
vcoubard | 1:ebc0e0ef0a11 | 200 | */ |