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:
rgrover1
Date:
Fri Jun 19 15:52:06 2015 +0100
Parent:
520:2ac0f11a183a
Child:
522:6bc4662d4e30
Commit message:
Synchronized with git rev eaf65c9e
Author: Rohit Grover
various services: changed member access levels from private to protected

Changed in this revision

services/BatteryService.h Show annotated file Show diff for this revision Revisions of this file
services/DFUService.h Show annotated file Show diff for this revision Revisions of this file
services/DeviceInformationService.h Show annotated file Show diff for this revision Revisions of this file
services/HeartRateService.h Show annotated file Show diff for this revision Revisions of this file
services/LinkLossService.h Show annotated file Show diff for this revision Revisions of this file
services/URIBeaconConfigService.h Show annotated file Show diff for this revision Revisions of this file
--- a/services/BatteryService.h	Fri Jun 19 15:52:06 2015 +0100
+++ b/services/BatteryService.h	Fri Jun 19 15:52:06 2015 +0100
@@ -56,7 +56,7 @@
         ble.updateCharacteristicValue(batteryLevelCharacteristic.getValueAttribute().getHandle(), &batteryLevel, 1);
     }
 
-private:
+protected:
     BLEDevice &ble;
 
     uint8_t    batteryLevel;
--- a/services/DFUService.h	Fri Jun 19 15:52:06 2015 +0100
+++ b/services/DFUService.h	Fri Jun 19 15:52:06 2015 +0100
@@ -105,13 +105,13 @@
         }
     }
 
-private:
+protected:
     static const unsigned SIZEOF_CONTROL_BYTES = 2;
     static const unsigned SIZEOF_PACKET_BYTES  = 20;
 
     static ResetPrepare_t handoverCallback;  /**< application specific handover callback. */
 
-private:
+protected:
     BLEDevice          &ble;
     uint8_t             controlBytes[SIZEOF_CONTROL_BYTES];
     uint8_t             packetBytes[SIZEOF_PACKET_BYTES];
--- a/services/DeviceInformationService.h	Fri Jun 19 15:52:06 2015 +0100
+++ b/services/DeviceInformationService.h	Fri Jun 19 15:52:06 2015 +0100
@@ -114,7 +114,7 @@
         serviceAdded = true;
     }
 
-private:
+protected:
     BLEDevice          &ble;
     GattCharacteristic  manufacturersNameStringCharacteristic;
     GattCharacteristic  modelNumberStringCharacteristic;
--- a/services/HeartRateService.h	Fri Jun 19 15:52:06 2015 +0100
+++ b/services/HeartRateService.h	Fri Jun 19 15:52:06 2015 +0100
@@ -125,7 +125,7 @@
         }
     }
 
-private:
+protected:
     void setupService(void) {
         GattCharacteristic *charTable[] = {&hrmRate, &hrmLocation, &controlPoint};
         GattService         hrmService(GattService::UUID_HEART_RATE_SERVICE, charTable, sizeof(charTable) / sizeof(GattCharacteristic *));
@@ -134,7 +134,7 @@
         ble.onDataWritten(this, &HeartRateService::onDataWritten);
     }
 
-private:
+protected:
     /* Private internal representation for the bytes used to work with the vaulue of the heart-rate characteristic. */
     struct HeartRateValueBytes {
         static const unsigned MAX_VALUE_BYTES  = 3; /* FLAGS + up to two bytes for heart-rate */
@@ -180,7 +180,7 @@
         uint8_t valueBytes[MAX_VALUE_BYTES];
     };
 
-private:
+protected:
     BLEDevice           &ble;
 
     HeartRateValueBytes  valueBytes;
--- a/services/LinkLossService.h	Fri Jun 19 15:52:06 2015 +0100
+++ b/services/LinkLossService.h	Fri Jun 19 15:52:06 2015 +0100
@@ -92,7 +92,7 @@
         }
     }
 
-private:
+protected:
     BLEDevice    &ble;
     AlertLevel_t  alertLevel;
     callback_t    callback;
--- a/services/URIBeaconConfigService.h	Fri Jun 19 15:52:06 2015 +0100
+++ b/services/URIBeaconConfigService.h	Fri Jun 19 15:52:06 2015 +0100
@@ -370,6 +370,7 @@
         }
     }
 
+protected:
     BLEDevice     &ble;
     Params_t      &params;