Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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
30 const struct bt_mesh_model *model;
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
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
Model callback functions.
Definition: access.h:809
Model opcode handler.
Definition: access.h:359
Model publication context.
Definition: access.h:704
Abstraction that describes a Mesh Model instance.
Definition: access.h:887
Acknowledged message context for tracking the status of model messages pending a response.
Definition: msg.h:172
Mesh SAR Configuration Client Model Context.
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
const struct bt_mesh_model * model
Access model pointer.
Definition: sar_cfg_cli.h:30
SAR Receiver Configuration state structure.
Definition: sar_cfg.h:47
SAR Transmitter Configuration state structure.
Definition: sar_cfg.h:23