Zephyr Project API  3.4.0
A Scalable Open Source RTOS
sar_cfg_cli.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
10#ifndef BT_MESH_SAR_CFG_CLI_H__
11#define BT_MESH_SAR_CFG_CLI_H__
12
15
23#ifdef __cplusplus
24extern "C" {
25#endif
26
31
32 /* Publication structure instance */
34
35 /* Synchronous message timeout in milliseconds. */
37
38 /* Internal parameters for tracking message responses. */
40};
41
48#define BT_MESH_MODEL_SAR_CFG_CLI(_cli) \
49 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_SAR_CFG_CLI, \
50 _bt_mesh_sar_cfg_cli_op, _cli.pub, _cli, \
51 &_bt_mesh_sar_cfg_cli_cb)
52
62 struct bt_mesh_sar_tx *rsp);
63
74 const struct bt_mesh_sar_tx *set,
75 struct bt_mesh_sar_tx *rsp);
76
86 struct bt_mesh_sar_rx *rsp);
87
98 const struct bt_mesh_sar_rx *set,
99 struct bt_mesh_sar_rx *rsp);
100
106
112
114extern const struct bt_mesh_model_op _bt_mesh_sar_cfg_cli_op[];
115extern const struct bt_mesh_model_cb _bt_mesh_sar_cfg_cli_cb;
118#ifdef __cplusplus
119}
120#endif
121
122#endif /* BT_MESH_SAR_CFG_CLI_H__ */
123
ZTEST_BMEM int timeout
Definition: main.c:31
int bt_mesh_sar_cfg_cli_transmitter_set(uint16_t net_idx, uint16_t addr, const struct bt_mesh_sar_tx *set, struct bt_mesh_sar_tx *rsp)
Set the SAR Transmitter state of the target node.
int bt_mesh_sar_cfg_cli_receiver_get(uint16_t net_idx, uint16_t addr, struct bt_mesh_sar_rx *rsp)
Get the SAR Receiver state of the target node.
void bt_mesh_sar_cfg_cli_timeout_set(int32_t timeout)
Set the transmission timeout value.
int bt_mesh_sar_cfg_cli_receiver_set(uint16_t net_idx, uint16_t addr, const struct bt_mesh_sar_rx *set, struct bt_mesh_sar_rx *rsp)
Set the SAR Receiver state of the target node.
int bt_mesh_sar_cfg_cli_transmitter_get(uint16_t net_idx, uint16_t addr, struct bt_mesh_sar_tx *rsp)
Get the SAR Transmitter state of the target node.
int32_t bt_mesh_sar_cfg_cli_timeout_get(void)
Get the current transmission timeout value.
Bluetooth mesh Profile APIs.
__INT32_TYPE__ int32_t
Definition: stdint.h:74
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
Definition: access.h:645
Definition: access.h:208
Definition: access.h:543
Definition: access.h:723
Definition: msg.h:159
Definition: sar_cfg_cli.h:28
struct bt_mesh_model_pub pub
Definition: sar_cfg_cli.h:33
struct bt_mesh_msg_ack_ctx ack_ctx
Definition: sar_cfg_cli.h:39
int32_t timeout
Definition: sar_cfg_cli.h:36
struct bt_mesh_model * model
Definition: sar_cfg_cli.h:30
Definition: sar_cfg.h:47
Definition: sar_cfg.h:23