BLE_API v2.1.3

Macros
Format Field Definition
BLE ATT/ GATT Definition » BLE Characteristic Presentation Format

## Macros
#define | GATT_CHARACTERISTIC_FORMAT_RFU 0x00
#define | GATT_CHARACTERISTIC_FORMAT_BOOLEAN 0x01
#define | GATT_CHARACTERISTIC_FORMAT_2BIT 0x02
#define | GATT_CHARACTERISTIC_FORMAT_NIBBLE 0x03
#define | GATT_CHARACTERISTIC_FORMAT_UINT8 0x04
#define | GATT_CHARACTERISTIC_FORMAT_UINT12 0x05
#define | GATT_CHARACTERISTIC_FORMAT_UINT16 0x06
#define | GATT_CHARACTERISTIC_FORMAT_UINT24 0x07
#define | GATT_CHARACTERISTIC_FORMAT_UINT32 0x08
#define | GATT_CHARACTERISTIC_FORMAT_UINT48 0x09
#define | GATT_CHARACTERISTIC_FORMAT_UINT64 0x0A
#define | GATT_CHARACTERISTIC_FORMAT_UINT128 0x0B
#define | GATT_CHARACTERISTIC_FORMAT_SINT8 0x0C
#define | GATT_CHARACTERISTIC_FORMAT_SINT12 0x0D
#define | GATT_CHARACTERISTIC_FORMAT_SINT16 0x0E
#define | GATT_CHARACTERISTIC_FORMAT_SINT24 0x0F
#define | GATT_CHARACTERISTIC_FORMAT_SINT32 0x10
#define | GATT_CHARACTERISTIC_FORMAT_SINT48 0x11
#define | GATT_CHARACTERISTIC_FORMAT_SINT64 0x12
#define | GATT_CHARACTERISTIC_FORMAT_SINT128 0x13
#define | GATT_CHARACTERISTIC_FORMAT_FLOAT32 0x14
#define | GATT_CHARACTERISTIC_FORMAT_FLOAT64 0x15
#define | GATT_CHARACTERISTIC_FORMAT_SFLOAT 0x16
#define | GATT_CHARACTERISTIC_FORMAT_FLOAT 0x17
#define | GATT_CHARACTERISTIC_FORMAT_DUINT16 0x18
#define | GATT_CHARACTERISTIC_FORMAT_UTF8S 0x19
#define | GATT_CHARACTERISTIC_FORMAT_UTF16S 0x1A
#define | GATT_CHARACTERISTIC_FORMAT_STRUCT 0x1B

## Detailed Description

The format field determines how a single value contained in the characteristic value is formatted.

## Macro Definition Documentation

## ◆ GATT_CHARACTERISTIC_FORMAT_2BIT

#define GATT_CHARACTERISTIC_FORMAT_2BIT 0x02

Unsigned 2-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_BOOLEAN

#define GATT_CHARACTERISTIC_FORMAT_BOOLEAN 0x01

Boolean.

## ◆ GATT_CHARACTERISTIC_FORMAT_DUINT16

#define GATT_CHARACTERISTIC_FORMAT_DUINT16 0x18

IEEE-20601 format.

## ◆ GATT_CHARACTERISTIC_FORMAT_FLOAT

#define GATT_CHARACTERISTIC_FORMAT_FLOAT 0x17

IEEE-11073 32-bit float.

## ◆ GATT_CHARACTERISTIC_FORMAT_FLOAT32

#define GATT_CHARACTERISTIC_FORMAT_FLOAT32 0x14

IEEE-754 32-bit floating point.

## ◆ GATT_CHARACTERISTIC_FORMAT_FLOAT64

#define GATT_CHARACTERISTIC_FORMAT_FLOAT64 0x15

IEEE-754 64-bit floating point.

## ◆ GATT_CHARACTERISTIC_FORMAT_NIBBLE

#define GATT_CHARACTERISTIC_FORMAT_NIBBLE 0x03

Unsigned 4-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_RFU

#define GATT_CHARACTERISTIC_FORMAT_RFU 0x00

Reserved for future use.

## ◆ GATT_CHARACTERISTIC_FORMAT_SFLOAT

#define GATT_CHARACTERISTIC_FORMAT_SFLOAT 0x16

IEEE-11073 16-bit sfloat.

## ◆ GATT_CHARACTERISTIC_FORMAT_SINT12

#define GATT_CHARACTERISTIC_FORMAT_SINT12 0x0D

Signed 12-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_SINT128

#define GATT_CHARACTERISTIC_FORMAT_SINT128 0x13

Signed 128-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_SINT16

#define GATT_CHARACTERISTIC_FORMAT_SINT16 0x0E

Signed 16-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_SINT24

#define GATT_CHARACTERISTIC_FORMAT_SINT24 0x0F

Signed 24-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_SINT32

#define GATT_CHARACTERISTIC_FORMAT_SINT32 0x10

Signed 32-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_SINT48

#define GATT_CHARACTERISTIC_FORMAT_SINT48 0x11

Signed 48-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_SINT64

#define GATT_CHARACTERISTIC_FORMAT_SINT64 0x12

Signed 64-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_SINT8

#define GATT_CHARACTERISTIC_FORMAT_SINT8 0x0C

Signed 2-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_STRUCT

#define GATT_CHARACTERISTIC_FORMAT_STRUCT 0x1B

Opaque structure.

## ◆ GATT_CHARACTERISTIC_FORMAT_UINT12

#define GATT_CHARACTERISTIC_FORMAT_UINT12 0x05

Unsigned 12-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_UINT128

#define GATT_CHARACTERISTIC_FORMAT_UINT128 0x0B

Unsigned 128-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_UINT16

#define GATT_CHARACTERISTIC_FORMAT_UINT16 0x06

Unsigned 16-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_UINT24

#define GATT_CHARACTERISTIC_FORMAT_UINT24 0x07

Unsigned 24-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_UINT32

#define GATT_CHARACTERISTIC_FORMAT_UINT32 0x08

Unsigned 32-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_UINT48

#define GATT_CHARACTERISTIC_FORMAT_UINT48 0x09

Unsigned 48-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_UINT64

#define GATT_CHARACTERISTIC_FORMAT_UINT64 0x0A

Unsigned 64-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_UINT8

#define GATT_CHARACTERISTIC_FORMAT_UINT8 0x04

Unsigned 8-bit integer.

## ◆ GATT_CHARACTERISTIC_FORMAT_UTF16S

#define GATT_CHARACTERISTIC_FORMAT_UTF16S 0x1A

UTF-16 string.

## ◆ GATT_CHARACTERISTIC_FORMAT_UTF8S

#define GATT_CHARACTERISTIC_FORMAT_UTF8S 0x19

UTF-8 string.