Utility functions for access layer users. More...
Macros | |
#define | ACCESS_UTILS_SIG_OPCODE_SIZE(OPCODE) (((OPCODE) > 0x00FF) ? 2 : 1) |
Size of a SIG model opcode in bytes. More... | |
#define | ACCESS_UTILS_VENDOR_OPCODE_SIZE 3 |
Size of a vendor model opcode in bytes. More... | |
Functions | |
static uint16_t | access_utils_opcode_size_get (access_opcode_t opcode) |
Gets the raw size in bytes of an access layer opcode. More... | |
Utility functions for access layer users.
#define ACCESS_UTILS_SIG_OPCODE_SIZE | ( | OPCODE | ) | (((OPCODE) > 0x00FF) ? 2 : 1) |
Size of a SIG model opcode in bytes.
Definition at line 52 of file access_utils.h.
Referenced by access_utils_opcode_size_get().
#define ACCESS_UTILS_VENDOR_OPCODE_SIZE 3 |
Size of a vendor model opcode in bytes.
Definition at line 54 of file access_utils.h.
Referenced by access_utils_opcode_size_get().
|
inlinestatic |
Gets the raw size in bytes of an access layer opcode.
[in] | opcode | Access layer opcode. |
Definition at line 63 of file access_utils.h.
References ACCESS_COMPANY_ID_NONE, ACCESS_UTILS_SIG_OPCODE_SIZE, ACCESS_UTILS_VENDOR_OPCODE_SIZE, access_opcode_t::company_id, and access_opcode_t::opcode.