|
Dawn Framework 1.0
Universal data acquisition framework for embedded systems
|
Automation I/O Service (AIOS) for BLE Peripheral. More...
#include <prph_aios.hxx>
Public Types | |
| enum | { PRPH_AIOS_TYPE_DIGITAL = 0 , PRPH_AIOS_TYPE_ANALOG = 1 } |
| enum | { AIOS_EXT_USER_DESCRIPTION = 1 , AIOS_EXT_NUMBER_OF_DIGITALS , AIOS_EXT_VALUE_TRIGGER_SETTING , AIOS_EXT_TIME_TRIGGER_SETTING , AIOS_EXT_PRESENTATION_FORMAT , AIOS_EXT_EXTENDED_PROPERTIES } |
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. | |
Automation I/O Service (AIOS) for BLE Peripheral.
This class implements the Bluetooth SIG Automation I/O Service (0x1815).
Definition at line 26 of file prph_aios.hxx.
| anonymous enum |
| Enumerator | |
|---|---|
| PRPH_AIOS_TYPE_DIGITAL | Digital I/O (GPIO, buttons, LEDs). |
| PRPH_AIOS_TYPE_ANALOG | Analog I/O (ADC, DAC). |
Definition at line 57 of file prph_aios.hxx.
| anonymous enum |
Definition at line 63 of file prph_aios.hxx.
|
virtual |
Deinitialize service.
Releases all allocated resources for this service.
Implements dawn::IProtoNimblePrphService.
Definition at line 1110 of file prph_aios.cxx.
|
virtual |
Initialize service.
Allocates service resources and prepares characteristics.
Implements dawn::IProtoNimblePrphService.
Definition at line 1082 of file prph_aios.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 1116 of file prph_aios.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 1142 of file prph_aios.cxx.
References dawn::IProtoNimblePrphService::cb, and dawn::IProtoNimblePrphCb::stopService().
|
inherited |
|
inherited |
|
inherited |