38 #ifndef ACCESS_UTILS_H__ 39 #define ACCESS_UTILS_H__ 52 #define ACCESS_UTILS_SIG_OPCODE_SIZE(OPCODE) (((OPCODE) > 0x00FF) ? 2 : 1) 54 #define ACCESS_UTILS_VENDOR_OPCODE_SIZE 3 #define ACCESS_UTILS_SIG_OPCODE_SIZE(OPCODE)
Size of a SIG model opcode in bytes.
uint16_t opcode
14-bit or 7-bit Bluetooth SIG defined opcode or 6-bit vendor specific opcode.
#define ACCESS_UTILS_VENDOR_OPCODE_SIZE
Size of a vendor model opcode in bytes.
#define ACCESS_COMPANY_ID_NONE
Company ID value for Bluetooth SIG opcodes or models.
static uint16_t access_utils_opcode_size_get(access_opcode_t opcode)
Gets the raw size in bytes of an access layer opcode.
Access layer opcode type.
uint16_t company_id
Company ID.