|
Dawn Framework 1.0
Universal data acquisition framework for embedded systems
|
Battery Service (BAS) for BLE Peripheral. More...
#include <prph_bas.hxx>
Public Member Functions | |
| int | deinit () |
| Deinitialize service. | |
| int | init () |
| Initialize service. | |
| int | start () |
| Start service. | |
| int | stop () |
| 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. | |
Battery Service (BAS) for BLE Peripheral.
This class implements the Bluetooth SIG Battery Service (0x180F).
Definition at line 24 of file prph_bas.hxx.
|
virtual |
Deinitialize service.
Releases all allocated resources for this service.
Implements dawn::IProtoNimblePrphService.
Definition at line 115 of file prph_bas.cxx.
|
virtual |
Initialize service.
Allocates service resources and prepares characteristics.
Implements dawn::IProtoNimblePrphService.
Definition at line 93 of file prph_bas.cxx.
References dawn::IProtoNimblePrphService::cb, dawn::IProtoNimblePrphService::desc, and dawn::IProtoNimblePrphCb::serviceRegister().
|
virtual |
Start service.
Registers the service with the GATT database.
Implements dawn::IProtoNimblePrphService.
Definition at line 226 of file prph_bas.cxx.
References dawn::IProtoNimblePrphService::cb, and dawn::IProtoNimblePrphCb::startService().
|
virtual |
Stop service.
Removes the service from the GATT database.
Implements dawn::IProtoNimblePrphService.
Definition at line 247 of file prph_bas.cxx.
References dawn::IProtoNimblePrphService::cb, and dawn::IProtoNimblePrphCb::stopService().
|
inherited |
|
inherited |
|
inherited |