High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Revision 71:ff3e3bdf4514, committed 2014-06-05
- Comitter:
- Rohit Grover
- Date:
- Thu Jun 05 15:24:22 2014 +0100
- Parent:
- 70:d6c0a4cedf46
- Child:
- 72:bd485a3b18c5
- Commit message:
- white space diffs; bringing comments on the same line as declarations
Changed in this revision
GattCharacteristic.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/GattCharacteristic.h Thu Jun 05 11:38:21 2014 +0100 +++ b/GattCharacteristic.h Thu Jun 05 15:24:22 2014 +0100 @@ -275,46 +275,14 @@ /**************************************************************************/ typedef enum ble_gatt_char_properties_e { - BLE_GATT_CHAR_PROPERTIES_BROADCAST = 0x01, /**< - * Permits broadcasts of the - * Characteristic Value using - * Server Characteristic - * Configuration Descriptor. - **/ - BLE_GATT_CHAR_PROPERTIES_READ = 0x02, /**< - * Permits reads of the - * Characteristic Value. - **/ - BLE_GATT_CHAR_PROPERTIES_WRITE_WITHOUT_RESPONSE = 0x04, /**< - * Permits writes of the - * Characteristic Value without - * response. - **/ - BLE_GATT_CHAR_PROPERTIES_WRITE = 0x08, /**< - * Permits writes of the - * Characteristic Value with - * response. - **/ - BLE_GATT_CHAR_PROPERTIES_NOTIFY = 0x10, /**< - * Permits notifications of a - * Characteristic Value without - * acknowledgement. - **/ - BLE_GATT_CHAR_PROPERTIES_INDICATE = 0x20, /**< - * Permits indications of a - * Characteristic Value with - * acknowledgement. - **/ - BLE_GATT_CHAR_PROPERTIES_AUTHENTICATED_SIGNED_WRITES = 0x40, /**< - * Permits signed writes to the - * Characteristic Value. - **/ - BLE_GATT_CHAR_PROPERTIES_EXTENDED_PROPERTIES = 0x80 /**< - * Additional characteristic - * properties are defined in the - * Characteristic Extended - * Properties Descriptor - **/ + BLE_GATT_CHAR_PROPERTIES_BROADCAST = 0x01, /**< Permits broadcasts of the Characteristic Value using Server Characteristic Configuration Descriptor. */ + BLE_GATT_CHAR_PROPERTIES_READ = 0x02, /**< Permits reads of the Characteristic Value. */ + BLE_GATT_CHAR_PROPERTIES_WRITE_WITHOUT_RESPONSE = 0x04, /**< Permits writes of the Characteristic Value without response. */ + BLE_GATT_CHAR_PROPERTIES_WRITE = 0x08, /**< Permits writes of the Characteristic Value with response. */ + BLE_GATT_CHAR_PROPERTIES_NOTIFY = 0x10, /**< Permits notifications of a Characteristic Value without acknowledgement. */ + BLE_GATT_CHAR_PROPERTIES_INDICATE = 0x20, /**< Permits indications of a Characteristic Value with acknowledgement. */ + BLE_GATT_CHAR_PROPERTIES_AUTHENTICATED_SIGNED_WRITES = 0x40, /**< Permits signed writes to the Characteristic Value. */ + BLE_GATT_CHAR_PROPERTIES_EXTENDED_PROPERTIES = 0x80 /**< Additional characteristic properties are defined in the Characteristic Extended Properties Descriptor */ } ble_gatt_char_properties_t; /**************************************************************************/ @@ -327,19 +295,11 @@ /**************************************************************************/ typedef struct PresentationFormat { - uint8_t gatt_format; /**< Format of the value, see @ref - *ble_gatt_format_t. */ - int8_t exponent; /**< Exponent for integer data types. Ex. - *if Exponent = -3 and the char value is - *3892, the actual value is 3.892 */ - uint16_t gatt_unit; /**< UUID from Bluetooth Assigned Numbers, - *see @ref ble_gatt_unit_t. */ - uint8_t gatt_namespace; /**< Namespace from Bluetooth Assigned - *Numbers, normally '1', see @ref - *BLE_GATT_CPF_NAMESPACES. */ - uint16_t gatt_nsdesc; /**< Namespace description from Bluetooth - *Assigned Numbers, normally '0', see @ref - *BLE_GATT_CPF_NAMESPACES. */ + uint8_t gatt_format; /**< Format of the value, see @ref ble_gatt_format_t. */ + int8_t exponent; /**< Exponent for integer data types. Ex. if Exponent = -3 and the char value is 3892, the actual value is 3.892 */ + uint16_t gatt_unit; /**< UUID from Bluetooth Assigned Numbers, see @ref ble_gatt_unit_t. */ + uint8_t gatt_namespace; /**< Namespace from Bluetooth Assigned Numbers, normally '1', see @ref BLE_GATT_CPF_NAMESPACES. */ + uint16_t gatt_nsdesc; /**< Namespace description from Bluetooth Assigned Numbers, normally '0', see @ref BLE_GATT_CPF_NAMESPACES. */ } presentation_format_t; GattCharacteristic(ShortUUID_t uuid = 0,