nRF5 SDK for Mesh v4.1.0
access_opcode_t Struct Reference

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.
uint16_t company_id
 Company ID. More...

Detailed Description

Access layer opcode type.

The format of the opcodes is given in the table below: 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.

Definition at line 187 of file access.h.

Field Documentation

◆ company_id

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().

The documentation for this struct was generated from the following file: