Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Revision 516:85b9261fbda7, committed 2015-06-19
- 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;
}
