Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages

GATT Characteristic Presentation Format Attribute Value. More...

#include <gatt.h>

Data Fields

uint8_t format
 Format of the value of the characteristic.
 
int8_t exponent
 Exponent field for value formatting.
 
uint16_t unit
 UUID of the unit of the characteristic.
 
uint8_t name_space
 Name space of the description.
 
uint16_t description
 Description of the characteristic as defined in a higher layer profile.
 

Detailed Description

GATT Characteristic Presentation Format Attribute Value.

Used in the discovery of standard characteristic descriptor values. Can be used with the BT_GATT_CPF macro to declare the CPF descriptor.

Field Documentation

◆ description

uint16_t bt_gatt_cpf::description

Description of the characteristic as defined in a higher layer profile.

An enumerated value defined by the organization identified by the name_space field. See section 2.4.2.1 of the Bluetooth SIG Assigned Numbers document.

◆ exponent

int8_t bt_gatt_cpf::exponent

Exponent field for value formatting.

Only used on integer format types. actual value = Characteristic Value x 10^Exponent

◆ format

uint8_t bt_gatt_cpf::format

Format of the value of the characteristic.

The format types can be found in section 2.4.1 of the Bluetooth SIG Assigned Numbers document.

◆ name_space

uint8_t bt_gatt_cpf::name_space

Name space of the description.

Used to identify the organization that is responsible for defining the enumerations for the description field. See section 2.4.2 of the Bluetooth SIG Assigned Numbers document.

◆ unit

uint16_t bt_gatt_cpf::unit

UUID of the unit of the characteristic.

The units can be found in section 3.5 of the Bluetooth SIG Assigned Numbers document.


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