High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
Rohit Grover
Date:
Mon Jun 09 08:29:22 2014 +0100
Parent:
75:d08bdef22500
Child:
77:1436ecf09583
Commit message:
slowly switching to astyle code formatting as recommended by the team

Changed in this revision

GapAdvertisingData.cpp Show annotated file Show diff for this revision Revisions of this file
GapAdvertisingParams.cpp Show annotated file Show diff for this revision Revisions of this file
UUID.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/GapAdvertisingData.cpp	Fri Jun 06 14:14:46 2014 +0100
+++ b/GapAdvertisingData.cpp	Mon Jun 09 08:29:22 2014 +0100
@@ -30,10 +30,8 @@
     \endcode
 */
 /**************************************************************************/
-GapAdvertisingData::GapAdvertisingData(void) : _payload(),
-                                               _payloadLen(0),
-                                               _appearance(GENERIC_TAG)
-{
+GapAdvertisingData::GapAdvertisingData(void) : _payload(), _payloadLen(0), _appearance(GENERIC_TAG) {
+    /* empty */
 }
 
 /**************************************************************************/
@@ -70,9 +68,7 @@
     \endcode
 */
 /**************************************************************************/
-ble_error_t GapAdvertisingData::addData(DataType       advDataType,
-                                        const uint8_t *payload,
-                                        uint8_t        len)
+ble_error_t GapAdvertisingData::addData(DataType advDataType, const uint8_t *payload, uint8_t len)
 {
     /* ToDo: Check if an AD type already exists and if the existing */
     /*       value is exclusive or not (flags, etc.) */
--- a/GapAdvertisingParams.cpp	Fri Jun 06 14:14:46 2014 +0100
+++ b/GapAdvertisingParams.cpp	Mon Jun 09 08:29:22 2014 +0100
@@ -82,9 +82,7 @@
     \endcode
 */
 /**************************************************************************/
-GapAdvertisingParams::GapAdvertisingParams(AdvertisingType advType,
-                                           uint16_t        interval,
-                                           uint16_t        timeout)
+GapAdvertisingParams::GapAdvertisingParams(AdvertisingType advType, uint16_t interval, uint16_t timeout)
 {
     _advType  = advType;
     _interval = interval;
--- a/UUID.cpp	Fri Jun 06 14:14:46 2014 +0100
+++ b/UUID.cpp	Mon Jun 09 08:29:22 2014 +0100
@@ -64,10 +64,7 @@
     @endcode
 */
 /**************************************************************************/
-UUID::UUID(const LongUUID_t longUUID) :
-    type(UUID_TYPE_SHORT),
-    baseUUID(),
-    shortUUID(0)
+UUID::UUID(const LongUUID_t longUUID) : type(UUID_TYPE_SHORT), baseUUID(), shortUUID(0)
 {
     memcpy(baseUUID, longUUID, LENGTH_OF_LONG_UUID);
     shortUUID = (uint16_t)((longUUID[2] << 8) | (longUUID[3]));
@@ -101,9 +98,8 @@
                 The 16-bit BLE UUID value.
 */
 /**************************************************************************/
-UUID::UUID(uint16_t shortUUID) : type(UUID_TYPE_SHORT),
-                                 baseUUID(),
-                                 shortUUID(shortUUID) {
+UUID::UUID(ShortUUID_t shortUUID) : type(UUID_TYPE_SHORT), baseUUID(), shortUUID(shortUUID)
+{
     /* empty */
 }