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... | |
Detailed Description
Utility functions for access layer users.
Macro Definition Documentation
◆ ACCESS_UTILS_SIG_OPCODE_SIZE
| #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().
◆ ACCESS_UTILS_VENDOR_OPCODE_SIZE
| #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().
Function Documentation
◆ access_utils_opcode_size_get()
|
inlinestatic |
Gets the raw size in bytes of an access layer opcode.
- Parameters
-
[in] opcode Access layer opcode.
- Returns
- Size in bytes of 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.