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
Revision 389:3487fcdd314e, committed 2015-05-13
- Comitter:
- rgrover1
- Date:
- Wed May 13 08:51:08 2015 +0100
- Parent:
- 388:3fa9ce3b1b7a
- Child:
- 390:4bf41689c7f9
- Commit message:
- Synchronized with git rev 0163a8b7
Author: Rohit Grover
simplify some enumerations within GattCharacteristic. Turn them anynymous.
Changed in this revision
| public/GattCharacteristic.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/public/GattCharacteristic.h Wed May 13 08:51:08 2015 +0100
+++ b/public/GattCharacteristic.h Wed May 13 08:51:08 2015 +0100
@@ -104,7 +104,7 @@
\note See https://developer.bluetooth.org/gatt/units/Pages/default.aspx
*/
/**************************************************************************/
- typedef enum ble_gatt_unit_e {
+ enum {
BLE_GATT_UNIT_NONE = 0x2700, /**< No specified unit type */
BLE_GATT_UNIT_LENGTH_METRE = 0x2701, /**< Length, Metre */
BLE_GATT_UNIT_MASS_KILOGRAM = 0x2702, /**< Mass, Kilogram */
@@ -214,7 +214,7 @@
BLE_GATT_UNIT_TIME_MONTH = 0x27B4, /**< Time, Month */
BLE_GATT_UNIT_CONCENTRATION_COUNT_PER_CUBIC_METRE = 0x27B5, /**< */
BLE_GATT_UNIT_IRRADIANCE_WATT_PER_SQUARE_METRE = 0x27B6 /**< */
- } ble_gatt_unit_t;
+ };
/**************************************************************************/
/*!
@@ -224,7 +224,7 @@
\note See http://developer.bluetooth.org/gatt/descriptors/Pages/DescriptorViewer.aspx?u=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml
*/
/**************************************************************************/
- typedef enum ble_gatt_format_e {
+ enum {
BLE_GATT_FORMAT_RFU = 0x00, /**< Reserved For Future Use. */
BLE_GATT_FORMAT_BOOLEAN = 0x01, /**< Boolean. */
BLE_GATT_FORMAT_2BIT = 0x02, /**< Unsigned 2-bit integer. */
@@ -253,7 +253,7 @@
BLE_GATT_FORMAT_UTF8S = 0x19, /**< UTF-8 string. */
BLE_GATT_FORMAT_UTF16S = 0x1A, /**< UTF-16 string. */
BLE_GATT_FORMAT_STRUCT = 0x1B /**< Opaque Structure. */
- } ble_gatt_format_t;
+ };
/**************************************************************************/
/*!
