Access layer opcode type. More...
#include <access.h>
Data Fields | |
uint16_t | opcode |
14-bit or 7-bit Bluetooth SIG defined opcode or 6-bit vendor specific opcode. More... | |
uint16_t | company_id |
Company ID. More... | |
Access layer opcode type.
The format of the opcodes is given in the table below: Bluetooth Mesh Profile Specification (MshPRFv1.0.1) table 3.43
Byte 0 | Byte 1 | Byte 2 | Description |
---|---|---|---|
0xxxxxxx | 1-octet Bluetooth SIG Opcodes (excluding 01111111) | ||
01111111 | Reserved for Future Use | ||
10xxxxxx | xxxxxxxx | 2-octet Bluetooth SIG Opcodes | |
11xxxxxx | zzzzzzzz | zzzzzzzz | 3-octet Vendor Specific Opcodes. z denotes company identifier packed in little-endian order |
To initialize an access_opcode_t, use the ACCESS_OPCODE_SIG() or ACCESS_OPCODE_VENDOR() macros.
uint16_t access_opcode_t::opcode |
14-bit or 7-bit Bluetooth SIG defined opcode or 6-bit vendor specific opcode.
Definition at line 190 of file access.h.
Referenced by access_utils_opcode_size_get().
uint16_t access_opcode_t::company_id |
Company ID.
Set to ACCESS_COMPANY_ID_NONE if it is a Bluetooth SIG defined opcode.
Definition at line 192 of file access.h.
Referenced by access_utils_opcode_size_get().