Zephyr API 3.6.99
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/* Bridging from Addr1 to Addr2. */
32#define BT_MESH_BRG_CFG_DIR_ONEWAY 1
33/* Bidirectional bridging between Addr1 and Addr2. */
34#define BT_MESH_BRG_CFG_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_brg_cfg_state
Subnet Bridge states.
Definition brg_cfg.h:24
@ BT_MESH_BRG_CFG_DISABLED
Subnet bridge functionality is disabled.
Definition brg_cfg.h:26
@ BT_MESH_BRG_CFG_ENABLED
Subnet bridge state functionality is enabled.
Definition brg_cfg.h:28
__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:59
uint16_t prohibited
Definition brg_cfg.h:61
uint16_t filter
Definition brg_cfg.h:60
uint16_t net_idx
Definition brg_cfg.h:62
Bridged Subnets List response.
Definition brg_cfg.h:66
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
struct bt_mesh_brg_cfg_filter_netkey net_idx_filter
Filter applied NetKey Indexes, and NetKey Index used for filtering.
Definition brg_cfg.h:68
Bridging Table state entry corresponding to a entry in the Bridging Table.
Definition brg_cfg.h:37
uint16_t net_idx2
NetKey Index of the second subnet.
Definition brg_cfg.h:43
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 addr1
Address of the node in the first subnet.
Definition brg_cfg.h:45
uint16_t net_idx1
NetKey Index of the first subnet.
Definition brg_cfg.h:41
Bridging Table List response.
Definition brg_cfg.h:76
uint16_t net_idx2
NetKey Index of the second subnet.
Definition brg_cfg.h:82
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_idx1
NetKey Index of the first subnet.
Definition brg_cfg.h:80
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
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_brg_cfg_table_entry entry
Requested Bridging Table entry.
Definition brg_cfg.h:55
Simple network buffer representation.
Definition net_buf.h:89