ble/protocol/att.h header reference
[Bluetooth Low Energy library module]
The source code of this header can be browsed online.
Description [link]
this header defines protocol data types for ATT.
Members [link]
Types [link]
- enum ble_att_error_e
- enum ble_att_opcode_e
- enum ble_att_type_fmt_e
Functions [link]
- bool_t ble_att_opcode_is_client_to_server(enum ble_att_opcode_e opcode)
- bool_t ble_att_opcode_is_response_expected(enum ble_att_opcode_e opcode)
- bool_t ble_att_opcode_is_signed(enum ble_att_opcode_e opcode)
- uint8_t ble_att_opcode_operation(enum ble_att_opcode_e opcode)
Members detail [link]
#define BLE_ATT_H [link]
This macro is declared in ble/protocol/att.h source file, line 21.
enum ble_att_error_e [link]
This enum is declared in ble/protocol/att.h source file, line 105.
Protocol defined ATT error codes
Identifier | Description |
---|---|
BLE_ATT_ERR_NONE | |
BLE_ATT_ERR_INVALID_HANDLE | |
BLE_ATT_ERR_READ_NOT_PERMITTED | |
BLE_ATT_ERR_WRITE_NOT_PERMITTED | |
BLE_ATT_ERR_INVALID_PDU | |
BLE_ATT_ERR_INSUF_AUTHENTICATION | |
BLE_ATT_ERR_REQUEST_NOT_SUPPORTED | |
BLE_ATT_ERR_INVALID_OFFSET | |
BLE_ATT_ERR_INSUF_AUTHORIZATION | |
BLE_ATT_ERR_PREPARE_QUEUE_FULL | |
BLE_ATT_ERR_ATTRIBUTE_NOT_FOUND | |
BLE_ATT_ERR_ATTRIBUTE_NOT_LONG | |
BLE_ATT_ERR_INSUF_ENCRYPT_KEY_SIZE | |
BLE_ATT_ERR_INVALID_ATTR_VALUE_LEN | |
BLE_ATT_ERR_UNLIKELY_ERROR | |
BLE_ATT_ERR_INSUF_ENCRYPTION | |
BLE_ATT_ERR_UNSUPPORTED_GROUP_TYPE | |
BLE_ATT_ERR_INSUF_RESOURCES |
enum ble_att_opcode_e [link]
This enum is declared in ble/protocol/att.h source file, line 36.
Protocol defined ATT opcodes
Identifier | Description |
---|---|
BLE_ATT_ERROR_RSP | |
BLE_ATT_EXCHANGE_MTU_RQT | |
BLE_ATT_EXCHANGE_MTU_RSP | |
BLE_ATT_FIND_INFORMATION_RQT | |
BLE_ATT_FIND_INFORMATION_RSP | |
BLE_ATT_FIND_BY_TYPE_VALUE_RQT | |
BLE_ATT_FIND_BY_TYPE_VALUE_RSP | |
BLE_ATT_READ_BY_TYPE_RQT | |
BLE_ATT_READ_BY_TYPE_RSP | |
BLE_ATT_READ_RQT | |
BLE_ATT_READ_RSP | |
BLE_ATT_READ_BLOB_RQT | |
BLE_ATT_READ_BLOB_RSP | |
BLE_ATT_READ_MULTIPLE_RQT | |
BLE_ATT_READ_MULTIPLE_RSP | |
BLE_ATT_READ_BY_GROUP_TYPE_RQT | |
BLE_ATT_READ_BY_GROUP_TYPE_RSP | |
BLE_ATT_WRITE_RQT | |
BLE_ATT_WRITE_RSP | |
BLE_ATT_WRITE_CMD | |
BLE_ATT_PREPARE_WRITE_RQT | |
BLE_ATT_PREPARE_WRITE_RSP | |
BLE_ATT_EXECUTE_WRITE_RQT | |
BLE_ATT_EXECUTE_WRITE_RSP | |
BLE_ATT_HANDLE_VALUE_NOTIF | |
BLE_ATT_HANDLE_VALUE_INDIC | |
BLE_ATT_HANDLE_VALUE_CONFIRM | |
BLE_ATT_SIGNED_WRITE_CMD |
bool_t ble_att_opcode_is_client_to_server(enum ble_att_opcode_e opcode) [link]
This function is declared in ble/protocol/att.h source file, line 82.
this function retrieves whether ATT opcode is from client to server.
bool_t ble_att_opcode_is_response_expected(enum ble_att_opcode_e opcode) [link]
This function is declared in ble/protocol/att.h source file, line 91.
this function retrieves whether ATT opcode implies a response.
bool_t ble_att_opcode_is_signed(enum ble_att_opcode_e opcode) [link]
This function is declared in ble/protocol/att.h source file, line 100.
this function retrieves whether ATT opcode is signed.
uint8_t ble_att_opcode_operation(enum ble_att_opcode_e opcode) [link]
This function is declared in ble/protocol/att.h source file, line 73.
this function retrieves basic ATT opcode operation from opcode, ignoring if it is signed or unacknowledged.
enum ble_att_type_fmt_e [link]
This enum is declared in ble/protocol/att.h source file, line 127.
Protocol defined ATT UUID formats
Identifier | Description |
---|---|
BLE_ATT_TYPE_UUID16 | |
BLE_ATT_TYPE_UUID128 |