Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
brg_cfg.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_H__
8#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_H__
9
10#include <stdint.h>
11#include <stdbool.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
30
31/* Briding from Addr1 to Addr2. */
32#define BT_MESH_SUBNET_BRIDGE_DIR_ONEWAY 1
33/* Bidirectional briging between Addr1 and Addr2. */
34#define BT_MESH_SUBNET_BRIDGE_DIR_TWOWAY 2
35
49
57
60 uint16_t filter: 2, /* Filter applied to the set of pairs of NetKey Indexes */
61 prohibited: 2, /* Prohibited */
62 net_idx: 12; /* NetKey Index used for filtering or ignored */
63};
64
74
88
93#ifdef __cplusplus
94}
95#endif
96
97#endif /* ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_H__ */
bt_mesh_subnet_bridge_state
Subnet Bridge states.
Definition brg_cfg.h:24
@ BT_MESH_SUBNET_BRIDGE_ENABLED
Subnet bridge state functionality is enabled.
Definition brg_cfg.h:28
@ BT_MESH_SUBNET_BRIDGE_DISABLED
Subnet bridge functionality is disabled.
Definition brg_cfg.h:26
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Bridged Subnets List response.
Definition brg_cfg.h:66
struct bt_mesh_filter_netkey net_idx_filter
Filter applied NetKey Indexes, and NetKey Index used for filtering.
Definition brg_cfg.h:68
struct net_buf_simple * list
Pointer to allocated buffer for storing filtered of NetKey Indexes.
Definition brg_cfg.h:72
uint8_t start_idx
Start offset in units of bridges.
Definition brg_cfg.h:70
Bridging Table state entry corresponding to a entry in the Bridging Table.
Definition brg_cfg.h:37
uint8_t directions
Allowed directions for the bridged traffic (or bridged traffic not allowed)
Definition brg_cfg.h:39
uint16_t addr2
Address of the node in the second subnet.
Definition brg_cfg.h:47
uint16_t net_idx1
NetKey Index of the first subnet.
Definition brg_cfg.h:41
uint16_t addr1
Address of the node in the first subnet.
Definition brg_cfg.h:45
uint16_t net_idx2
NetKey Index of the second subnet.
Definition brg_cfg.h:43
Bridging Table List response.
Definition brg_cfg.h:76
uint8_t status
Status Code of the requesting message.
Definition brg_cfg.h:78
uint16_t start_idx
Start offset in units of bridging table state entries.
Definition brg_cfg.h:84
struct net_buf_simple * list
Pointer to allocated buffer for storing list of bridged addresses and directions.
Definition brg_cfg.h:86
uint16_t net_idx2
NetKey Index of the second subnet.
Definition brg_cfg.h:82
uint16_t net_idx1
NetKey Index of the first subnet.
Definition brg_cfg.h:80
Bridging Table Status response.
Definition brg_cfg.h:51
uint8_t status
Status Code of the requesting message.
Definition brg_cfg.h:53
struct bt_mesh_bridging_table_entry entry
Requested Bridging Table entry.
Definition brg_cfg.h:55
Used to filter set of pairs of NetKey Indexes from the Bridging Table.
Definition brg_cfg.h:59
uint16_t filter
Definition brg_cfg.h:60
uint16_t prohibited
Definition brg_cfg.h:61
uint16_t net_idx
Definition brg_cfg.h:62
Simple network buffer representation.
Definition net_buf.h:89