Modules | Macros
Defines
BLE » Attribute Protocol (ATT)

## Modules
| Attribute UUID Length(bytes)
| Characteristic Properties
| Characteristic Extended Properties

## Macros
#define | BLE_ATT_UUID_16(uuid) (uuid)
| Convert CPU’s integer definition to LSB-first 16-bit UUID. More...
#define | BLE_ATT_MTU_DEFAULT (23)
| Default ATT MTU size in bytes. More...
#define | BLE_ATT_INVALID_HDL (0x0000)
| Invalid attribute handle. More...
#define | BLE_ATT_HANDLE_START (0x0001)
| Attribute handle start. More...
#define | BLE_ATT_HANDLE_END (0xFFFF)
| Attribute handle end. More...
#define | BLE_ATT_BT_UUID_128
| Characteristic Base UUID. More...
#define | BLE_ATT_16_TO_128_ARRAY(uuid)
| Change a 16-bit UUID array to a 128-bit one (append 0). More...
#define | BLE_ATT_16_TO_16_ARRAY(uuid) {(uuid) & 0xFF, ((uuid) >> 8) & 0xFF}
| Change a 16-bit UUID array to a 16-bit one (append 0). More...

## Detailed Description

## Macro Definition Documentation

## ◆ BLE_ATT_16_TO_128_ARRAY

#define BLE_ATT_16_TO_128_ARRAY | ( |  | uuid | ) |

Value:
{(uuid) & 0xFF, ((uuid) >> 8) & 0xFF, 0x00, 0x00, 0x00, \
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }

Change a 16-bit UUID array to a 128-bit one (append 0).

Parameters

  uuid | 16-bit UUID

Return values

  None |

Definition at line 94 of file ble_att.h.

## ◆ BLE_ATT_16_TO_16_ARRAY

#define BLE_ATT_16_TO_16_ARRAY | ( |  | uuid | ) | {(uuid) & 0xFF, ((uuid) >> 8) & 0xFF}

Change a 16-bit UUID array to a 16-bit one (append 0).

Parameters

  uuid | 16-bit UUID

Return values

  None |

Definition at line 100 of file ble_att.h.

## ◆ BLE_ATT_BT_UUID_128

#define BLE_ATT_BT_UUID_128

Value:
{0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80, \
0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}

Characteristic Base UUID.

Definition at line 88 of file ble_att.h.

## ◆ BLE_ATT_HANDLE_END

#define BLE_ATT_HANDLE_END (0xFFFF)

Attribute handle end.

Definition at line 59 of file ble_att.h.

## ◆ BLE_ATT_HANDLE_START

#define BLE_ATT_HANDLE_START (0x0001)

Attribute handle start.

Definition at line 58 of file ble_att.h.

## ◆ BLE_ATT_INVALID_HDL

#define BLE_ATT_INVALID_HDL (0x0000)

Invalid attribute handle.

Definition at line 57 of file ble_att.h.

## ◆ BLE_ATT_MTU_DEFAULT

#define BLE_ATT_MTU_DEFAULT (23)

Default ATT MTU size in bytes.

Definition at line 56 of file ble_att.h.

## ◆ BLE_ATT_UUID_16

#define BLE_ATT_UUID_16 | ( |  | uuid | ) | (uuid)

Convert CPU’s integer definition to LSB-first 16-bit UUID.

Definition at line 55 of file ble_att.h.