Commit 62f08da4 authored by Pavel Vasilyev's avatar Pavel Vasilyev Committed by Carles Cufi
Browse files

bluetooth: mesh: brg_cfg: add constants for directions

Add constants for directions so that they can be used in the
subnet bridge client api.

Signed-off-by: default avatarPavel Vasilyev <pavel.vasilyev@nordicsemi.no>
parent 81dbc697
Loading
Loading
Loading
Loading
+5 −0
Changes for include/zephyr/bluetooth/mesh/brg_cfg.h: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -28,6 +28,11 @@ enum bt_mesh_subnet_bridge_state {
	BT_MESH_SUBNET_BRIDGE_ENABLED,
};

/* Briding from Addr1 to Addr2. */
#define BT_MESH_SUBNET_BRIDGE_DIR_ONEWAY 1
/* Bidirectional briging between Addr1 and Addr2. */
#define BT_MESH_SUBNET_BRIDGE_DIR_TWOWAY 2

/** Bridging Table state entry corresponding to a entry in the Bridging Table. */
struct bt_mesh_bridging_table_entry {
	/** Allowed directions for the bridged traffic (or bridged traffic not allowed) */