|
Open Model Railroad Network (OpenMRN)
|
OpenLCB BLE service definition. More...
#include <BLEService.hxx>
Public Types | |
| enum | GATTAttributeIndexs { GATT_SERVICE_INDEX = 0 , GATT_DATA_IN_DECL_INDEX , GATT_DATA_IN_VALUE_INDEX , GATT_DATA_IN_CCCD_INDEX , GATT_DATA_OUT_DECL_INDEX , GATT_DATA_OUT_VALUE_INDEX , GATT_DATA_OUT_CCCD_INDEX } |
| The entry indexes for the GATT_ATTRIBUTES table. More... | |
Static Public Member Functions | |
| static constexpr size_t | size () |
| Get the size in number of elements (Attributes). | |
Static Public Attributes | |
| static const uint8_t | GATT_SERVICE_UUID_OPENLCB [16] |
| OpenLCB GATT service UUID. | |
| static const uint8_t | GATT_CHAR_UUID_DATA_IN [16] |
| OpenLCB GATT data in characterisitic UUID. | |
| static const uint8_t | GATT_CHAR_UUID_DATA_OUT [16] |
| OpenLCB GATT data out characterisitic UUID. | |
| static constexpr GATTAttribute | GATT_ATTRIBUTES [] |
| GATT Attribute table properties for this service. | |
Static Private Attributes | |
| static uint8_t | dataIn_ [200] |
| data incoming to the server | |
| static uint8_t | dataOut_ [200] |
| data outgoing from the server | |
| static uint8_t | dataInCCCD_ [2] = {0x00, 0x00} |
| configuration descriptor for input | |
| static uint8_t | dataOutCCCD_ [2] = {0x00, 0x00} |
| configuration descriptor for output | |
OpenLCB BLE service definition.
Definition at line 40 of file BLEService.hxx.
The entry indexes for the GATT_ATTRIBUTES table.
| Enumerator | |
|---|---|
| GATT_SERVICE_INDEX | GATT Primary Service index. |
| GATT_DATA_IN_DECL_INDEX | GATT data in declaration index. |
| GATT_DATA_IN_VALUE_INDEX | GATT data in value index. |
| GATT_DATA_IN_CCCD_INDEX | GATT data in CCCD index. |
| GATT_DATA_OUT_DECL_INDEX | GATT data out declaration index. |
| GATT_DATA_OUT_VALUE_INDEX | GATT data out value index. |
| GATT_DATA_OUT_CCCD_INDEX | GATT data out CCCD index. |
Definition at line 61 of file BLEService.hxx.
|
inlinestaticconstexpr |
Get the size in number of elements (Attributes).
Definition at line 135 of file BLEService.hxx.
|
staticprivate |
data incoming to the server
Definition at line 53 of file BLEService.hxx.
|
staticprivate |
configuration descriptor for input
Definition at line 56 of file BLEService.hxx.
|
staticprivate |
data outgoing from the server
Definition at line 54 of file BLEService.hxx.
|
staticprivate |
configuration descriptor for output
Definition at line 57 of file BLEService.hxx.
|
staticconstexpr |
GATT Attribute table properties for this service.
Definition at line 73 of file BLEService.hxx.
|
static |
OpenLCB GATT data in characterisitic UUID.
Definition at line 47 of file BLEService.hxx.
|
static |
OpenLCB GATT data out characterisitic UUID.
Definition at line 50 of file BLEService.hxx.
|
static |
OpenLCB GATT service UUID.
Definition at line 44 of file BLEService.hxx.