Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
brg_cfg_cli.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_CLI_H__
8#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_CLI_H__
9
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
24
30#define BT_MESH_MODEL_BRG_CFG_CLI(_cli) \
31 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_BRG_CFG_CLI, _bt_mesh_brg_cfg_cli_op, NULL, _cli, \
32 &_bt_mesh_brg_cfg_cli_cb)
33
45 void (*bridge_status)(struct bt_mesh_brg_cfg_cli *cli, uint16_t addr,
46 enum bt_mesh_brg_cfg_state status);
47
57 void (*table_size_status)(struct bt_mesh_brg_cfg_cli *cli, uint16_t addr, uint16_t size);
58
68 void (*table_status)(struct bt_mesh_brg_cfg_cli *cli, uint16_t addr,
70
80 void (*subnets_list)(struct bt_mesh_brg_cfg_cli *cli, uint16_t addr,
82
92 void (*table_list)(struct bt_mesh_brg_cfg_cli *cli, uint16_t addr,
93 struct bt_mesh_brg_cfg_table_list *rsp);
94};
95
99 const struct bt_mesh_model *model;
100
103
104 /* Internal parameters for tracking message responses. */
106};
107
129
155 enum bt_mesh_brg_cfg_state *status);
156
177
199 struct bt_mesh_brg_cfg_table_entry *entry,
200 struct bt_mesh_brg_cfg_table_status *rsp);
201
227 uint16_t net_idx2, uint16_t addr1, uint16_t addr2,
228 struct bt_mesh_brg_cfg_table_status *rsp);
229
257 struct bt_mesh_brg_cfg_filter_netkey filter_net_idx,
258 uint8_t start_idx, struct bt_mesh_brg_cfg_subnets_list *rsp);
259
291 uint16_t net_idx2, uint16_t start_idx,
292 struct bt_mesh_brg_cfg_table_list *rsp);
293
299
305
307extern const struct bt_mesh_model_op _bt_mesh_brg_cfg_cli_op[];
308extern const struct bt_mesh_model_cb _bt_mesh_brg_cfg_cli_cb;
315#ifdef __cplusplus
316}
317#endif
318
319#endif /* ZEPHYR_INCLUDE_BLUETOOTH_MESH_BRG_CFG_CLI_H__ */
int bt_mesh_brg_cfg_cli_subnets_get(uint16_t net_idx, uint16_t addr, struct bt_mesh_brg_cfg_filter_netkey filter_net_idx, uint8_t start_idx, struct bt_mesh_brg_cfg_subnets_list *rsp)
Sends a Bridged Subnets Get message to the given destination address with the given parameters.
int32_t bt_mesh_brg_cfg_cli_timeout_get(void)
Get the current transmission timeout value.
int bt_mesh_brg_cfg_cli_set(uint16_t net_idx, uint16_t addr, enum bt_mesh_brg_cfg_state val, enum bt_mesh_brg_cfg_state *status)
Sends a Subnet Bridge Set message to the given destination address with the given parameters.
int bt_mesh_brg_cfg_cli_get(uint16_t net_idx, uint16_t addr, enum bt_mesh_brg_cfg_state *status)
Sends a Subnet Bridge Get message to the given destination address.
int bt_mesh_brg_cfg_cli_table_add(uint16_t net_idx, uint16_t addr, struct bt_mesh_brg_cfg_table_entry *entry, struct bt_mesh_brg_cfg_table_status *rsp)
Sends a Bridging Table Add message to the given destination address with the given parameters.
int bt_mesh_brg_cfg_cli_table_size_get(uint16_t net_idx, uint16_t addr, uint16_t *size)
Sends a Bridging Table Size Get message to the given destination address with the given parameters.
int bt_mesh_brg_cfg_cli_table_remove(uint16_t net_idx, uint16_t addr, uint16_t net_idx1, uint16_t net_idx2, uint16_t addr1, uint16_t addr2, struct bt_mesh_brg_cfg_table_status *rsp)
Sends a Bridging Table Remove message to the given destination address with the given parameters.
int bt_mesh_brg_cfg_cli_table_get(uint16_t net_idx, uint16_t addr, uint16_t net_idx1, uint16_t net_idx2, uint16_t start_idx, struct bt_mesh_brg_cfg_table_list *rsp)
Sends a Bridging Table Get message to the given destination address with the given parameters.
void bt_mesh_brg_cfg_cli_timeout_set(int32_t timeout)
Set the transmission timeout value.
bt_mesh_brg_cfg_state
Subnet Bridge states.
Definition brg_cfg.h:24
__INT32_TYPE__ int32_t
Definition stdint.h:74
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Mesh Bridge Configuration Client Status messages callback.
Definition brg_cfg_cli.h:35
void(* table_list)(struct bt_mesh_brg_cfg_cli *cli, uint16_t addr, struct bt_mesh_brg_cfg_table_list *rsp)
Optional callback for Bridging Table List message.
Definition brg_cfg_cli.h:92
void(* table_status)(struct bt_mesh_brg_cfg_cli *cli, uint16_t addr, struct bt_mesh_brg_cfg_table_status *rsp)
Optional callback for Bridging Table Status message.
Definition brg_cfg_cli.h:68
void(* subnets_list)(struct bt_mesh_brg_cfg_cli *cli, uint16_t addr, struct bt_mesh_brg_cfg_subnets_list *rsp)
Optional callback for Bridged Subnets List message.
Definition brg_cfg_cli.h:80
void(* bridge_status)(struct bt_mesh_brg_cfg_cli *cli, uint16_t addr, enum bt_mesh_brg_cfg_state status)
Optional callback for Subnet Bridge Status message.
Definition brg_cfg_cli.h:45
void(* table_size_status)(struct bt_mesh_brg_cfg_cli *cli, uint16_t addr, uint16_t size)
Optional callback for Bridging Table Size Status message.
Definition brg_cfg_cli.h:57
Bridge Configuration Client Model Context.
Definition brg_cfg_cli.h:97
const struct bt_mesh_brg_cfg_cli_cb * cb
Event handler callbacks.
Definition brg_cfg_cli.h:102
const struct bt_mesh_model * model
Bridge Configuration model entry pointer.
Definition brg_cfg_cli.h:99
struct bt_mesh_msg_ack_ctx ack_ctx
Definition brg_cfg_cli.h:105
Used to filter set of pairs of NetKey Indexes from the Bridging Table.
Definition brg_cfg.h:59
Bridged Subnets List response.
Definition brg_cfg.h:66
Bridging Table state entry corresponding to a entry in the Bridging Table.
Definition brg_cfg.h:37
Bridging Table List response.
Definition brg_cfg.h:76
Bridging Table Status response.
Definition brg_cfg.h:51
Model callback functions.
Definition access.h:813
Model opcode handler.
Definition access.h:363
Abstraction that describes a Mesh Model instance.
Definition access.h:891
Acknowledged message context for tracking the status of model messages pending a response.
Definition msg.h:172