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)
#define | BLE_ATT_MTU_DEFAULT (23)
#define | BLE_ATT_INVALID_HDL (0x0000)
#define | BLE_ATT_HANDLE_START (0x0001)
#define | BLE_ATT_HANDLE_END (0xFFFF)
#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 |

## ◆ 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 |

## ◆ 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.

## ◆ BLE_ATT_HANDLE_END

#define BLE_ATT_HANDLE_END (0xFFFF)

Attribute handle end.

## ◆ BLE_ATT_HANDLE_START

#define BLE_ATT_HANDLE_START (0x0001)

Attribute handle start.

## ◆ BLE_ATT_INVALID_HDL

#define BLE_ATT_INVALID_HDL (0x0000)

Invalid attribute handle.

## ◆ BLE_ATT_MTU_DEFAULT

#define BLE_ATT_MTU_DEFAULT (23)

Default ATT MTU size in bytes.

## ◆ BLE_ATT_UUID_16

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

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