FreeRTOS: BLE
BLE
Return to main page ↑
BTService_t Struct Reference

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_tpxBLEAttributes
 

Detailed Description

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.

Field Documentation

◆ ucInstId

uint8_t BTService_t::ucInstId

Service Instance ID.

◆ xType

BTGattServiceTypes_t BTService_t::xType

Service type.

◆ xNumberOfAttributes

size_t BTService_t::xNumberOfAttributes

Number of attributes.

◆ pusHandlesBuffer

uint16_t* BTService_t::pusHandlesBuffer

Array of handles, mapping to pxBLEAttributes.

◆ pxBLEAttributes

BTAttribute_t* BTService_t::pxBLEAttributes

Array of attribute, can be allocated in ROM.


The documentation for this struct was generated from the following file: