High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: common/BLEDeviceInstanceBase.h
- Revision:
- 526:caa67c3187a0
- Parent:
- 524:6e97ab392e2a
- Child:
- 527:493185cebc03
--- a/common/BLEDeviceInstanceBase.h Fri Jun 19 15:52:06 2015 +0100 +++ b/common/BLEDeviceInstanceBase.h Fri Jun 19 15:52:06 2015 +0100 @@ -17,12 +17,6 @@ #ifndef __BLE_DEVICE_INSTANCE_BASE__ #define __BLE_DEVICE_INSTANCE_BASE__ -#include "Gap.h" - -/* forward declarations */ -class GattServer; -class GattClient; - /** * The interface for the transport object to be created by the target library's * createBLEDeviceInstance(). @@ -30,20 +24,16 @@ class BLEDeviceInstanceBase { public: + virtual ble_error_t init(void) = 0; + virtual ble_error_t shutdown(void) = 0; + virtual ble_error_t reset(void) = 0; virtual const char *getVersion(void) = 0; virtual Gap& getGap() = 0; virtual GattServer& getGattServer() = 0; - virtual GattClient& getGattClient() = 0; - - virtual ble_error_t init(void) = 0; - virtual ble_error_t shutdown(void) = 0; - virtual ble_error_t reset(void) = 0; virtual ble_error_t initializeSecurity(bool enableBonding = true, bool requireMITM = true, Gap::SecurityIOCapabilities_t iocaps = Gap::IO_CAPS_NONE, const Gap::Passkey_t passkey = NULL) = 0; - virtual ble_error_t setTxPower(int8_t txPower) = 0; - virtual void getPermittedTxPowerValues(const int8_t **, size_t *) = 0; virtual void waitForEvent(void) = 0; };