Cypress PSoC 6 Bluetooth Low Energy Middleware Library 3.60
cy_stc_ble_gatts_db_t Struct Reference

Description

GATT database structure used in the GATT Server.

Data Fields

uint16_t attHandle
 Index for querying BLE GATT database.
 
uint16_t attType
 UUID: 16-bit UUID type for an attribute entry. More...
 
uint32_t permission
 The permission bits are stored in a 32-bit field. More...
 
uint16_t attEndHandle
 Attribute end handle, indicating logical boundary of given attribute. More...
 
cy_stc_ble_gatts_att_value_t attValue
 Attribute value format, it can be one of following: uint16_t 16bit - UUID for 16-bit service and characteristic declaration cy_ble_gatts_att_generic_val_t attFormatValue - Buffer containing 32-bit or 128-bit UUID values for service & characteristic declaration cy_ble_gatts_att_generic_val_t attFormatValue - Buffer containing generic characteristic definition value or generic descriptor values.
 

Field Documentation

◆ attType

uint16_t cy_stc_ble_gatts_db_t::attType

UUID: 16-bit UUID type for an attribute entry.

For 32-bit and 128-bit UUIDs, the last 16 bits should be stored in this entry. The GATT DB access layer shall retrieve complete 128-bit UUID from the cy_ble_gatts_att_generic_val_t structure.

◆ permission

uint32_t cy_stc_ble_gatts_db_t::permission

The permission bits are stored in a 32-bit field.

These 32-bits can be grouped in four bytes. The least significant byte is byte 0 (B0) and the most significant byte is byte 3 (B3). The bytes where the permissions have been grouped is as given below. Attribute permissions for read (B0) Attribute permissions for write (B1) Characteristic properties (B2) Implementation specific permission (B3) If permission is set to CY_BLE_GATT_DB_ATTR_CHAR_VAL_RD_EVENT, all GATT characteristic read requests will be indicated to the application using the CY_BLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ event.

◆ attEndHandle

uint16_t cy_stc_ble_gatts_db_t::attEndHandle

Attribute end handle, indicating logical boundary of given attribute.