FreeRTOS:
BLE
BLE
|
Return to main page ↑ |
Structure describing a service. Note, handles are allocated separately so the attribute array can be allocated in ROM. pxHandlesBuffer has to dimensions: x and y [x][y] . x : Number of copies of the service y : needs to be equal to xNumberOfAttributes. More...
#include <bt_hal_gatt_types.h>
Data Fields | |
uint8_t | ucInstId |
BTGattServiceTypes_t | xType |
size_t | xNumberOfAttributes |
uint16_t * | pusHandlesBuffer |
BTAttribute_t * | pxBLEAttributes |
Structure describing a service. Note, handles are allocated separately so the attribute array can be allocated in ROM. pxHandlesBuffer has to dimensions: x and y [x][y] . x : Number of copies of the service y : needs to be equal to xNumberOfAttributes.
That structure has been constructed with the intent of putting most of it in ROM. The whole structure can be put in ROM. If copies are needed then only pxBLEAttributes can be constant. The first attribute is the UUID of the service.
uint8_t BTService_t::ucInstId |
Service Instance ID.
BTGattServiceTypes_t BTService_t::xType |
Service type.
size_t BTService_t::xNumberOfAttributes |
Number of attributes.
uint16_t* BTService_t::pusHandlesBuffer |
Array of handles, mapping to pxBLEAttributes.
BTAttribute_t* BTService_t::pxBLEAttributes |
Array of attribute, can be allocated in ROM.