|
Dawn Framework 1.0
Universal data acquisition framework for embedded systems
|
Industrial Measurement Device Service (IMDS) for BLE Peripheral. More...
#include <prph_imds.hxx>
Public Types | |
| enum | { IMDS_EXT_USER_DESCRIPTION = 1 } |
| enum | { PRPH_IMDS_TYPE_TEMP , PRPH_IMDS_TYPE_HUM , PRPH_IMDS_TYPE_PRESS , PRPH_IMDS_TYPE_UVIDX , PRPH_IMDS_TYPE_GAS , PRPH_IMDS_TYPE_LIGHT } |
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. | |
Industrial Measurement Device Service (IMDS) for BLE Peripheral.
This class implements the Bluetooth SIG Industrial Measurement Device Service (0x185A).
Definition at line 27 of file prph_imds.hxx.
| anonymous enum |
| Enumerator | |
|---|---|
| IMDS_EXT_USER_DESCRIPTION | Characteristic User Description descriptor. |
Definition at line 43 of file prph_imds.hxx.
| anonymous enum |
Definition at line 48 of file prph_imds.hxx.
|
virtual |
Deinitialize service.
Releases all allocated resources for this service.
Implements dawn::IProtoNimblePrphService.
Definition at line 609 of file prph_imds.cxx.
|
virtual |
Initialize service.
Allocates service resources and prepares characteristics.
Implements dawn::IProtoNimblePrphService.
Definition at line 581 of file prph_imds.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 615 of file prph_imds.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 641 of file prph_imds.cxx.
References dawn::IProtoNimblePrphService::cb, and dawn::IProtoNimblePrphCb::stopService().
|
inherited |
|
inherited |
|
inherited |