Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: GattCharacteristic.h
- Revision:
- 71:ff3e3bdf4514
- Parent:
- 67:0fac4e99f29b
- Child:
- 75:d08bdef22500
--- 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,
