Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
st_ble_servc_desc_info_t Struct Reference

st_ble_servc_desc_info_t includes information about descriptor. More...

Data Fields

uint16_t uuid_16
 
const uint8_t * uuid_128
 
uint8_t uuid_type
 
uint8_t desc_idx
 
uint8_t inst_idx
 
uint16_t * p_attr_hdls
 
uint16_t app_size
 
uint16_t db_size
 
ble_servc_attr_write_rsp_t write_rsp_cb
 
ble_servc_attr_read_rsp_t read_rsp_cb
 
ble_servc_attr_decode_t decode
 
ble_servc_attr_encode_t encode
 

Detailed Description

st_ble_servc_desc_info_t includes information about descriptor.

Field Documentation

◆ uuid_16

uint16_t st_ble_servc_desc_info_t::uuid_16

16bit UUID of descriptor.

◆ uuid_128

const uint8_t* st_ble_servc_desc_info_t::uuid_128

128bit UUID of descriptor.

◆ uuid_type

uint8_t st_ble_servc_desc_info_t::uuid_type

Select from 16bit UUID or 128bit UUID.
128bit UUID should be used for custom service.
16bit UUID = BLE_GATT_16_BIT_UUID_FORMAT
128bit UUID = BLE_GATT_128_BIT_UUID_FORMAT

◆ desc_idx

uint8_t st_ble_servc_desc_info_t::desc_idx

Index of descriptor.

◆ inst_idx

uint8_t st_ble_servc_desc_info_t::inst_idx

Index used if same descriptor is set in one characteristic.

◆ p_attr_hdls

uint16_t* st_ble_servc_desc_info_t::p_attr_hdls

Attribute handle for each connection.

◆ app_size

uint16_t st_ble_servc_desc_info_t::app_size

Descriptor value size used in application.

◆ db_size

uint16_t st_ble_servc_desc_info_t::db_size

Descriptor value size used in GATT database.

◆ write_rsp_cb

ble_servc_attr_write_rsp_t st_ble_servc_desc_info_t::write_rsp_cb

Write response callback function. Set function if needed.

◆ read_rsp_cb

ble_servc_attr_read_rsp_t st_ble_servc_desc_info_t::read_rsp_cb

Read response callback function. Set function if needed.

◆ decode

ble_servc_attr_decode_t st_ble_servc_desc_info_t::decode

Decode function.

◆ encode

ble_servc_attr_encode_t st_ble_servc_desc_info_t::encode

Encode function.