21 #ifndef MBED_BLE_DEVICE_INSTANCE_BASE__    22 #define MBED_BLE_DEVICE_INSTANCE_BASE__    26 #include "ble/SecurityManager.h"    27 #include "ble/GattServer.h"    28 #include "ble/GattClient.h"   184     virtual const Gap &
getGap(
void) 
const = 0;
   187 #if BLE_FEATURE_GATT_SERVER   207 #endif // BLE_FEATURE_GATT_SERVER   209 #if BLE_FEATURE_GATT_CLIENT   221 #if BLE_FEATURE_SECURITY   241 #endif // BLE_FEATURE_SECURITY   277 #endif // ifndef MBED_BLE_DEVICE_INSTANCE_BASE__ Function like object adapter over freestanding and member functions. 
Private interface used to implement the BLE class. 
virtual void processEvents()=0
Process ALL pending events living in the vendor BLE subsystem. 
virtual const char * getVersion(void)=0
Fetches a NULL terminated string representation of the underlying BLE vendor subsystem. 
virtual bool hasInitialized(void) const  =0
Check whether the vendor BLE subsystem has been initialized or not. 
Define device discovery, connection and link management procedures. 
unsigned InstanceID_t
Opaque type used to store the ID of a BLE instance. 
Define procedures required for interacting with a distant GATT server. 
virtual GattClient & getGattClient(void)=0
Accessor to the vendor implementation of the GattClient interface. 
Construct and operates a GATT server. 
virtual ~BLEInstanceBase()
Virtual destructor of the interface. 
virtual ble_error_t shutdown(void)=0
Shutdown the vendor BLE subsystem. 
BLEInstanceBase * createBLEInstance(void)
Return the instance of the vendor implementation of BLEInstanceBase. 
virtual ble_error_t init(BLE::InstanceID_t instanceID, FunctionPointerWithContext< BLE::InitializationCompleteCallbackContext * > initCallback)=0
Start the initialization of the vendor BLE subsystem. 
virtual GattServer & getGattServer(void)=0
Accessor to the vendor implementation of the GattServer interface. 
virtual void waitForEvent(void)=0
Process pending events present in the vendor subsystem; then, put the MCU to sleep until an external ...
virtual Gap & getGap(void)=0
Accessor to the vendor implementation of the Gap interface. 
virtual SecurityManager & getSecurityManager(void)=0
Accessor to the vendor implementation of the SecurityManager interface. 
BLEInstanceBase()
Base constructor. 
void signalEventsToProcess(BLE::InstanceID_t id)
Signal to BLE that events needing processing are available. 
ble_error_t
Error codes for the BLE API.