|
Dawn Framework 1.0
Universal data acquisition framework for embedded systems
|
Base interface for GATT services exposed by BLE peripheral. More...
#include <iprph.hxx>
Classes | |
| struct | SPrphNotiferCb |
| Context data for characteristic notification callbacks. More... | |
Public Member Functions | |
| IProtoNimblePrphService (const SObjectCfg::SObjectCfgItem *desc_, IProtoNimblePrphCb *cb_) | |
| Constructor. | |
| virtual | ~IProtoNimblePrphService () |
| Virtual destructor. | |
| virtual int | deinit ()=0 |
| Deinitialize service. | |
| virtual int | init ()=0 |
| Initialize service. | |
| virtual int | start ()=0 |
| Start service. | |
| virtual int | stop ()=0 |
| Stop service. | |
Public Attributes | |
| IProtoNimblePrphCb * | cb |
| Callback interface to peripheral. | |
| const SObjectCfg::SObjectCfgItem * | desc |
| Configuration descriptor for this service. | |
| std::vector< SObjectId::ObjectId > | vio |
| Vector of I/O objects exposed by this service. | |
Base interface for GATT services exposed by BLE peripheral.
All BLE services (DIS, BAS, ESS, AIOS, IMDS) implement this interface.
|
inline |
|
inlinevirtual |
|
pure virtual |
Deinitialize service.
Releases all allocated resources for this service.
Implemented in dawn::CProtoNimblePrphAios, dawn::CProtoNimblePrphBas, dawn::CProtoNimblePrphCustom, dawn::CProtoNimblePrphDis, dawn::CProtoNimblePrphEss, dawn::CProtoNimblePrphImds, and dawn::CProtoNimblePrphOts.
|
pure virtual |
Initialize service.
Allocates service resources and prepares characteristics.
Implemented in dawn::CProtoNimblePrphAios, dawn::CProtoNimblePrphBas, dawn::CProtoNimblePrphCustom, dawn::CProtoNimblePrphDis, dawn::CProtoNimblePrphEss, dawn::CProtoNimblePrphImds, and dawn::CProtoNimblePrphOts.
|
pure virtual |
Start service.
Registers the service with the GATT database.
Implemented in dawn::CProtoNimblePrphAios, dawn::CProtoNimblePrphBas, dawn::CProtoNimblePrphCustom, dawn::CProtoNimblePrphDis, dawn::CProtoNimblePrphEss, dawn::CProtoNimblePrphImds, and dawn::CProtoNimblePrphOts.
|
pure virtual |
Stop service.
Removes the service from the GATT database.
Implemented in dawn::CProtoNimblePrphAios, dawn::CProtoNimblePrphBas, dawn::CProtoNimblePrphCustom, dawn::CProtoNimblePrphDis, dawn::CProtoNimblePrphEss, dawn::CProtoNimblePrphImds, and dawn::CProtoNimblePrphOts.
| IProtoNimblePrphCb* dawn::IProtoNimblePrphService::cb |
| const SObjectCfg::SObjectCfgItem* dawn::IProtoNimblePrphService::desc |
| std::vector<SObjectId::ObjectId> dawn::IProtoNimblePrphService::vio |