BLE_API v2.1.3

Macros | Typedefs
BLE Attribute Operation Code Definition
BLE ATT/ GATT Definition

## Macros
#define | OPCODE_ATT_ERROR_RESPONSE 0x01
#define | OPCODE_ATT_EXCHANGE_MTU_REQUEST 0x02
#define | OPCODE_ATT_EXCHANGE_MTU_RESPONSE 0x03
#define | OPCODE_ATT_FIND_INFORMATION_REQUEST 0x04
#define | OPCODE_ATT_FIND_INFORMATION_RESPONSE 0x05
#define | OPCODE_ATT_FIND_BY_TYPE_VALUE_REQUEST 0x06
#define | OPCODE_ATT_FIND_BY_TYPE_VALUE_RESPONSE 0x07
#define | OPCODE_ATT_READ_BY_TYPE_REQUEST 0x08
#define | OPCODE_ATT_READ_BY_TYPE_RESPONSE 0x09
#define | OPCODE_ATT_READ_REQUEST 0x0A
#define | OPCODE_ATT_READ_RESPONSE 0x0B
#define | OPCODE_ATT_READ_BLOB_REQUEST 0x0C
#define | OPCODE_ATT_READ_BLOB_RESPONSE 0x0D
#define | OPCODE_ATT_READ_MULTIPLE_REQUEST 0x0E
#define | OPCODE_ATT_READ_MULTIPLE_RESPONSE 0x0F
#define | OPCODE_ATT_READ_BY_GROUP_TYPE_REQUEST 0x10
#define | OPCODE_ATT_READ_BY_GROUP_TYPE_RESPONSE 0x11
#define | OPCODE_ATT_WRITE_REQUEST 0x12
#define | OPCODE_ATT_WRITE_RESPONSE 0x13
#define | OPCODE_ATT_WRITE_COMMAND 0x52
#define | OPCODE_ATT_PREPARE_WRITE_REQUEST 0x16
#define | OPCODE_ATT_PREPARE_WRITE_RESPONSE 0x17
#define | OPCODE_ATT_EXECUTE_WRITE_REQUEST 0x18
#define | OPCODE_ATT_EXECUTE_WRITE_RESPONSE 0x19
#define | OPCODE_ATT_HANDLE_VALUE_NOTIFICATION 0x1B
#define | OPCODE_ATT_HANDLE_VALUE_INDICATION 0x1D
#define | OPCODE_ATT_HANDLE_VALUE_CONFIRMATION 0x1E
#define | OPCODE_ATT_SIGNED_WRITE_COMMAND 0xD2
#define | OPCODE_ATT_RESTORE_BOND_DATA_COMMAND 0xFF

## Typedefs
typedef uint8_t | BleAttOpcode

## Detailed Description

BLE attribute operation code definition.

## Macro Definition Documentation

## ◆ OPCODE_ATT_ERROR_RESPONSE

#define OPCODE_ATT_ERROR_RESPONSE 0x01

Error response.

## ◆ OPCODE_ATT_EXCHANGE_MTU_REQUEST

#define OPCODE_ATT_EXCHANGE_MTU_REQUEST 0x02

Exchange MTU request.

## ◆ OPCODE_ATT_EXCHANGE_MTU_RESPONSE

#define OPCODE_ATT_EXCHANGE_MTU_RESPONSE 0x03

Exchange MTU response.

## ◆ OPCODE_ATT_EXECUTE_WRITE_REQUEST

#define OPCODE_ATT_EXECUTE_WRITE_REQUEST 0x18

Execute write request.

## ◆ OPCODE_ATT_EXECUTE_WRITE_RESPONSE

#define OPCODE_ATT_EXECUTE_WRITE_RESPONSE 0x19

Execute write response.

## ◆ OPCODE_ATT_FIND_BY_TYPE_VALUE_REQUEST

#define OPCODE_ATT_FIND_BY_TYPE_VALUE_REQUEST 0x06

Find by type value request.

## ◆ OPCODE_ATT_FIND_BY_TYPE_VALUE_RESPONSE

#define OPCODE_ATT_FIND_BY_TYPE_VALUE_RESPONSE 0x07

Find by type value response.

## ◆ OPCODE_ATT_FIND_INFORMATION_REQUEST

#define OPCODE_ATT_FIND_INFORMATION_REQUEST 0x04

Find information request.

## ◆ OPCODE_ATT_FIND_INFORMATION_RESPONSE

#define OPCODE_ATT_FIND_INFORMATION_RESPONSE 0x05

Find information response.

## ◆ OPCODE_ATT_HANDLE_VALUE_CONFIRMATION

#define OPCODE_ATT_HANDLE_VALUE_CONFIRMATION 0x1E

Handle value confirmation.

## ◆ OPCODE_ATT_HANDLE_VALUE_INDICATION

#define OPCODE_ATT_HANDLE_VALUE_INDICATION 0x1D

Handle value indication.

## ◆ OPCODE_ATT_HANDLE_VALUE_NOTIFICATION

#define OPCODE_ATT_HANDLE_VALUE_NOTIFICATION 0x1B

Handle value notification.

## ◆ OPCODE_ATT_PREPARE_WRITE_REQUEST

#define OPCODE_ATT_PREPARE_WRITE_REQUEST 0x16

Prepare write request.

## ◆ OPCODE_ATT_PREPARE_WRITE_RESPONSE

#define OPCODE_ATT_PREPARE_WRITE_RESPONSE 0x17

Prepare write response.

## ◆ OPCODE_ATT_READ_BLOB_REQUEST

#define OPCODE_ATT_READ_BLOB_REQUEST 0x0C

Read blob request.

## ◆ OPCODE_ATT_READ_BLOB_RESPONSE

#define OPCODE_ATT_READ_BLOB_RESPONSE 0x0D

Read blob response.

## ◆ OPCODE_ATT_READ_BY_GROUP_TYPE_REQUEST

#define OPCODE_ATT_READ_BY_GROUP_TYPE_REQUEST 0x10

Read by group type request.

## ◆ OPCODE_ATT_READ_BY_GROUP_TYPE_RESPONSE

#define OPCODE_ATT_READ_BY_GROUP_TYPE_RESPONSE 0x11

Read by group type response.

## ◆ OPCODE_ATT_READ_BY_TYPE_REQUEST

#define OPCODE_ATT_READ_BY_TYPE_REQUEST 0x08

Read by type request.

## ◆ OPCODE_ATT_READ_BY_TYPE_RESPONSE

#define OPCODE_ATT_READ_BY_TYPE_RESPONSE 0x09

Read by type response.

## ◆ OPCODE_ATT_READ_MULTIPLE_REQUEST

#define OPCODE_ATT_READ_MULTIPLE_REQUEST 0x0E

Read multiple request.

## ◆ OPCODE_ATT_READ_MULTIPLE_RESPONSE

#define OPCODE_ATT_READ_MULTIPLE_RESPONSE 0x0F

Read multiple response.

## ◆ OPCODE_ATT_READ_REQUEST

#define OPCODE_ATT_READ_REQUEST 0x0A

Read request.

## ◆ OPCODE_ATT_READ_RESPONSE

#define OPCODE_ATT_READ_RESPONSE 0x0B

Read response.

## ◆ OPCODE_ATT_RESTORE_BOND_DATA_COMMAND

#define OPCODE_ATT_RESTORE_BOND_DATA_COMMAND 0xFF

VENDOR DEFINE: restore bond data Command.

## ◆ OPCODE_ATT_SIGNED_WRITE_COMMAND

#define OPCODE_ATT_SIGNED_WRITE_COMMAND 0xD2

Signed write command.

## ◆ OPCODE_ATT_WRITE_COMMAND

#define OPCODE_ATT_WRITE_COMMAND 0x52

Write command.

## ◆ OPCODE_ATT_WRITE_REQUEST

#define OPCODE_ATT_WRITE_REQUEST 0x12

Write request.

## ◆ OPCODE_ATT_WRITE_RESPONSE

#define OPCODE_ATT_WRITE_RESPONSE 0x13

Write response.