|
enum class | ErrorCode : uint8_t {
NO_ERROR = 0x00
, INVALID_HANDLE = 0x01
, NO_READ_PERM = 0x02
, NO_WRITE_PERM = 0x03
,
INVALID_PDU = 0x04
, INSUFF_AUTHENTICATION = 0x05
, UNSUPPORTED_REQUEST = 0x06
, INVALID_OFFSET = 0x07
,
INSUFF_AUTHORIZATION = 0x08
, PREPARE_QUEUE_FULL = 0x09
, ATTRIBUTE_NOT_FOUND = 0x0A
, ATTRIBUTE_NOT_LONG = 0x0B
,
INSUFF_ENCRYPTION_KEY_SIZE = 0x0C
, INVALID_ATTRIBUTE_VALUE_LEN = 0x0D
, UNLIKELY_ERROR = 0x0E
, INSUFF_ENCRYPTION = 0x0F
,
UNSUPPORTED_GROUP_TYPE = 0x10
, INSUFFICIENT_RESOURCES = 0x11
, DB_OUT_OF_SYNC = 0x12
, FORBIDDEN_VALUE = 0x13
} |
|
enum class | Opcode : uint8_t {
PDU_UNDEFINED = 0x00
, METHOD_MASK = 0x3F
, COMMAND_FLAG = 0x40
, AUTH_SIGNATURE_FLAG = 0x80
,
ERROR_RSP = 0x01
, EXCHANGE_MTU_REQ = 0x02
, EXCHANGE_MTU_RSP = 0x03
, FIND_INFORMATION_REQ = 0x04
,
FIND_INFORMATION_RSP = 0x05
, FIND_BY_TYPE_VALUE_REQ = 0x06
, FIND_BY_TYPE_VALUE_RSP = 0x07
, READ_BY_TYPE_REQ = 0x08
,
READ_BY_TYPE_RSP = 0x09
, READ_REQ = 0x0A
, READ_RSP = 0x0B
, READ_BLOB_REQ = 0x0C
,
READ_BLOB_RSP = 0x0D
, READ_MULTIPLE_REQ = 0x0E
, READ_MULTIPLE_RSP = 0x0F
, READ_BY_GROUP_TYPE_REQ = 0x10
,
READ_BY_GROUP_TYPE_RSP = 0x11
, WRITE_REQ = 0x12
, WRITE_RSP = 0x13
, WRITE_CMD = WRITE_REQ + COMMAND_FLAG
,
PREPARE_WRITE_REQ = 0x16
, PREPARE_WRITE_RSP = 0x17
, EXECUTE_WRITE_REQ = 0x18
, EXECUTE_WRITE_RSP = 0x19
,
READ_MULTIPLE_VARIABLE_REQ = 0x20
, READ_MULTIPLE_VARIABLE_RSP = 0x21
, MULTIPLE_HANDLE_VALUE_NTF = 0x23
, HANDLE_VALUE_NTF = 0x1B
,
HANDLE_VALUE_IND = 0x1D
, HANDLE_VALUE_CFM = 0x1E
, SIGNED_WRITE_CMD = WRITE_REQ + COMMAND_FLAG + AUTH_SIGNATURE_FLAG
} |
| ATT Opcode Summary Vol 3, Part F 3.4.8. More...
|
|
enum class | OpcodeType : uint8_t {
UNDEFINED = 0
, REQUEST = 1
, RESPONSE = 2
, NOTIFICATION = 3
,
INDICATION = 4
} |
|
enum class | ReqRespType : bool { REQUEST = true
, RESPONSE = false
} |
|
|
| AttErrorRsp (const ErrorCode error_code, const Opcode cause_opc, const uint16_t cause_handle) |
|
| AttErrorRsp (const uint8_t *source, const jau::nsize_t length) |
|
constexpr uint16_t | getCausingHandle () const noexcept |
|
constexpr Opcode | getCausingOpcode () const noexcept |
|
constexpr ErrorCode | getErrorCode () const noexcept |
|
std::string | getName () const noexcept override |
|
constexpr_cxx20 jau::nsize_t | getPDUValueOffset () const noexcept override |
| opcode + reqOpcodeCause + handleCause + errorCode More...
|
|
| AttPDUMsg (AttPDUMsg &&o) noexcept=default |
|
| AttPDUMsg (const AttPDUMsg &o)=default |
|
| AttPDUMsg (const Opcode opc, const jau::nsize_t size) |
| Persistent memory, w/ ownership . More...
|
|
| AttPDUMsg (const uint8_t *source, const jau::nsize_t size) |
| Persistent memory, w/ ownership . More...
|
|
virtual | ~AttPDUMsg () noexcept=default |
|
constexpr jau::nsize_t | getAuthSigSize () const noexcept |
| ATT PDU Format Vol 3, Part F 3.3.1. More...
|
|
constexpr_cxx20 jau::nsize_t | getMaxPDUValueSize (const jau::nsize_t mtu) const noexcept |
| Returns the theoretical maximum value size of a PDU's attribute value. More...
|
|
virtual std::string | getName () const noexcept |
|
constexpr bool | getOpAuthSigFlag () const noexcept |
| ATT PDU Format Vol 3, Part F 3.3.1. More...
|
|
constexpr Opcode | getOpcode () const noexcept |
| ATT PDU Format Vol 3, Part F 3.3.1. More...
|
|
constexpr bool | getOpCommandFlag () const noexcept |
| ATT PDU Format Vol 3, Part F 3.3.1. More...
|
|
constexpr Opcode | getOpMethod () const noexcept |
| ATT PDU Format Vol 3, Part F 3.3.1. More...
|
|
constexpr_cxx20 jau::nsize_t | getPDUMinSize () const noexcept |
| Returns this PDU's minimum size, i.e. More...
|
|
constexpr jau::nsize_t | getPDUParamSize () const noexcept |
| ATT PDU Format Vol 3, Part F 3.3.1. More...
|
|
virtual constexpr_cxx20 jau::nsize_t | getPDUValueOffset () const noexcept |
| Returns the octet offset to the value segment in this PDU including the mandatory opcode, i.e. More...
|
|
constexpr_cxx20 jau::nsize_t | getPDUValueSize () const noexcept |
| Returns the net octet size of this PDU's attributes value, i.e. More...
|
|
AttPDUMsg & | operator= (AttPDUMsg &&o) noexcept=delete |
|
AttPDUMsg & | operator= (const AttPDUMsg &o) noexcept=delete |
|
virtual std::string | toString () const noexcept |
|
BT Core Spec v5.2: Vol 3, Part F ATT: 3.4.1.1 ATT_ERROR_RSP.
Used to send a error reply for any request.
Definition at line 702 of file ATTPDUTypes.hpp.