MicroBit as BLE gamepad
Fork of nRF51822 by
Diff: source/nRF5xn.h
- Revision:
- 592:f9574772b816
- Parent:
- 591:266079a50c20
- Child:
- 615:65ea2acfc6a2
diff -r 266079a50c20 -r f9574772b816 source/nRF5xn.h --- a/source/nRF5xn.h Mon Jan 11 10:19:32 2016 +0000 +++ b/source/nRF5xn.h Mon Jan 11 10:19:33 2016 +0000 @@ -77,7 +77,7 @@ * * @return A reference to GattClient. */ - virtual GattClient &getGattClient() { + virtual nRF5xGattClient &getGattClient() { if (gattClientInstance == NULL) { gattClientInstance = new nRF5xGattClient(); } @@ -91,7 +91,7 @@ * * @return A reference to GattServer. */ - virtual SecurityManager &getSecurityManager() { + virtual nRF5xSecurityManager &getSecurityManager() { if (securityManagerInstance == NULL) { securityManagerInstance = new nRF5xSecurityManager(); } @@ -112,7 +112,7 @@ * @note The accessor is able to modify the object's state because the * internal pointer has been declared mutable. */ - virtual const Gap &getGap() const { + virtual const nRF5xGap &getGap() const { return gapInstance; }; @@ -126,7 +126,7 @@ * @note The accessor is able to modify the object's state because the * internal pointer has been declared mutable. */ - virtual const GattServer &getGattServer() const { + virtual const nRF5xGattServer &getGattServer() const { if (gattServerInstance == NULL) { gattServerInstance = new nRF5xGattServer(); } @@ -143,7 +143,7 @@ * @note The accessor is able to modify the object's state because the * internal pointer has been declared mutable. */ - virtual const SecurityManager &getSecurityManager() const { + virtual const nRF5xSecurityManager &getSecurityManager() const { if (securityManagerInstance == NULL) { securityManagerInstance = new nRF5xSecurityManager(); }