abc
Fork of BLE_API by
Diff: public/GattCharacteristic.h
- Revision:
- 389:3487fcdd314e
- Parent:
- 374:8d1f5c5252c4
diff -r 3fa9ce3b1b7a -r 3487fcdd314e public/GattCharacteristic.h --- 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; + }; /**************************************************************************/ /*!