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:05 2015 +0100
Parent:
515:0bcd3a4746fd
Child:
517:3c8170ac2a7f
Commit message:
Synchronized with git rev ab66c925
Author: Rohit Grover
Gap APIs should be mostly public.

Changed in this revision

public/Gap.h Show annotated file Show diff for this revision Revisions of this file
--- a/public/Gap.h	Fri Jun 19 15:52:05 2015 +0100
+++ b/public/Gap.h	Fri Jun 19 15:52:05 2015 +0100
@@ -163,9 +163,7 @@
     };
     typedef FunctionPointerWithContext<const AdvertisementCallbackParams_t *> AdvertisementReportCallback_t;
 
-    friend class BLEDevice;
-
-private:
+public:
     /* These functions must be defined in the sub-class */
     virtual ble_error_t setAddress(AddressType_t type,   const Address_t address)                    = 0;
     virtual ble_error_t getAddress(AddressType_t *typeP, Address_t address)                          = 0;
@@ -212,7 +210,7 @@
         return err;
     }
 
-protected:
+public:
     virtual ble_error_t startRadioScan(const GapScanningParams &scanningParams) = 0;
 
     /* Event callback handlers */
@@ -276,7 +274,7 @@
     template<typename T>
     void addToDisconnectionCallChain(T *tptr, void (T::*mptr)(void)) {disconnectionCallChain.add(tptr, mptr);}
 
-private:
+public:
     GapState_t getState(void) const {
         return state;
     }