white space diffs; bringing comments on the same line as declarations
parent
e013eff2f0
commit
5a7e159b7b
|
@ -275,46 +275,14 @@ public:
|
|||
/**************************************************************************/
|
||||
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 @@ public:
|
|||
/**************************************************************************/
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue