Zephyr API Documentation 4.4.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
12
13#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_H__
14#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_H__
15
16#include <stdint.h>
17#include <stdbool.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
28
36
37/* Bridging from Addr1 to Addr2. */
38#define BT_MESH_BRG_CFG_DIR_ONEWAY 1
39/* Bidirectional bridging between Addr1 and Addr2. */
40#define BT_MESH_BRG_CFG_DIR_TWOWAY 2
41
55
63
66 uint16_t filter: 2, /* Filter applied to the set of pairs of NetKey Indexes */
67 prohibited: 2, /* Prohibited */
68 net_idx: 12; /* NetKey Index used for filtering or ignored */
69};
70
80
94
98
99#ifdef __cplusplus
100}
101#endif
102
103#endif /* ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_H__ */
bt_mesh_brg_cfg_state
Subnet Bridge states.
Definition brg_cfg.h:30
@ BT_MESH_BRG_CFG_DISABLED
Subnet bridge functionality is disabled.
Definition brg_cfg.h:32
@ BT_MESH_BRG_CFG_ENABLED
Subnet bridge state functionality is enabled.
Definition brg_cfg.h:34
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Used to filter set of pairs of NetKey Indexes from the Bridging Table.
Definition brg_cfg.h:65
uint16_t prohibited
Definition brg_cfg.h:67
uint16_t filter
Definition brg_cfg.h:66
uint16_t net_idx
Definition brg_cfg.h:68
Bridged Subnets List response.
Definition brg_cfg.h:72
struct net_buf_simple * list
Pointer to allocated buffer for storing filtered of NetKey Indexes.
Definition brg_cfg.h:78
uint8_t start_idx
Start offset in units of bridges.
Definition brg_cfg.h:76
struct bt_mesh_brg_cfg_filter_netkey net_idx_filter
Filter applied NetKey Indexes, and NetKey Index used for filtering.
Definition brg_cfg.h:74
Bridging Table state entry corresponding to a entry in the Bridging Table.
Definition brg_cfg.h:43
uint16_t net_idx2
NetKey Index of the second subnet.
Definition brg_cfg.h:49
uint8_t directions
Allowed directions for the bridged traffic (or bridged traffic not allowed).
Definition brg_cfg.h:45
uint16_t addr2
Address of the node in the second subnet.
Definition brg_cfg.h:53
uint16_t addr1
Address of the node in the first subnet.
Definition brg_cfg.h:51
uint16_t net_idx1
NetKey Index of the first subnet.
Definition brg_cfg.h:47
Bridging Table List response.
Definition brg_cfg.h:82
uint16_t net_idx2
NetKey Index of the second subnet.
Definition brg_cfg.h:88
struct net_buf_simple * list
Pointer to allocated buffer for storing list of bridged addresses and directions.
Definition brg_cfg.h:92
uint16_t net_idx1
NetKey Index of the first subnet.
Definition brg_cfg.h:86
uint8_t status
Status Code of the requesting message.
Definition brg_cfg.h:84
uint16_t start_idx
Start offset in units of bridging table state entries.
Definition brg_cfg.h:90
Bridging Table Status response.
Definition brg_cfg.h:57
uint8_t status
Status Code of the requesting message.
Definition brg_cfg.h:59
struct bt_mesh_brg_cfg_table_entry entry
Requested Bridging Table entry.
Definition brg_cfg.h:61
Simple network buffer representation.
Definition net_buf.h:89