![]() |
Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
|
A structure that defines the detailed information of the attributes. More...
Data Fields | |
uint8_t | desc_prop |
The properties of attribute are specified. More... | |
uint8_t | aux_prop |
The auxiliary properties of attribute are specified. More... | |
uint16_t | length |
The length of the attribute value is specified. More... | |
uint16_t | next |
The position of the next attribute with the same UUID as the defined attribute is specified by an attribute handle. More... | |
uint16_t | uuid_offset |
The storage area of attribute value. More... | |
uint8_t * | p_data_offset |
Storage area of attribute value. More... | |
A structure that defines the detailed information of the attributes.
uint8_t st_ble_gatts_db_attr_cfg_t::desc_prop |
The properties of attribute are specified.
Set the following properties by a bitwise OR.
macro | description |
---|---|
BLE_GATT_DB_READ(0x01) | Allow clients to read. |
BLE_GATT_DB_WRITE(0x02) | Allow clients to write. |
BLE_GATT_DB_WRITE_WITHOUT_RSP(0x04) | Allow clients to write. |
BLE_GATT_DB_READ_WRITE(0x07) | Allow clients to access of all. |
uint8_t st_ble_gatts_db_attr_cfg_t::aux_prop |
The auxiliary properties of attribute are specified.
Set the following properties by a bitwise OR.
macro | description |
---|---|
BLE_GATT_DB_NO_AUXILIARY_PROPERTY(0x00) | No auxiliary properties. It is invalid when used with other properties at the same time. |
BLE_GATT_DB_FIXED_LENGTH_PROPERTY(0x01) | Fixed length attribute value. |
BLE_GATT_DB_AUTHORIZATION_PROPERTY(0x02) | Attributes requiring authorization. |
BLE_GATT_DB_ATTR_DISABLED(0x10) | The attribute is disabled. If this value is set, the attribute cannot be found and accessed by a GATT Client. It is invalid when used with other properties at the same time. |
BLE_GATT_DB_128_BIT_UUID_FORMAT(0x20) | Attribute with 128 bit UUID. If this macro is not set, the attribute value is 16-bits UUID. |
BLE_GATT_DB_PEER_SPECIFIC_VAL_PROPERTY(0x40) | Attribute managed by each GATT Client. |
BLE_GATT_DB_CONST_ATTR_VAL_PROPERTY(0x80) | Fixed attribute value. Writing from Client and setting from Server are prohibited. |
uint16_t st_ble_gatts_db_attr_cfg_t::length |
The length of the attribute value is specified.
uint16_t st_ble_gatts_db_attr_cfg_t::next |
The position of the next attribute with the same UUID as the defined attribute is specified by an attribute handle.
uint16_t st_ble_gatts_db_attr_cfg_t::uuid_offset |
The storage area of attribute value.
UUID of the defined attribute is set by specifying the position of the UUID registered in uuid_table of st_ble_gatts_db_cfg_t with the array offset value.
uint8_t* st_ble_gatts_db_attr_cfg_t::p_data_offset |
Storage area of attribute value.
The address in the array registered in No.1-No.4 is specified to set the attribute value storage area of the defined attribute.