Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
health_cli.h
Go to the documentation of this file.
1
5/*
6 * Copyright (c) 2017 Intel Corporation
7 *
8 * SPDX-License-Identifier: Apache-2.0
9 */
10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_CLI_H_
11#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_CLI_H_
12
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28
45 uint8_t test_id, uint16_t cid, uint8_t *faults,
46 size_t fault_count);
47
48 /* Internal parameters for tracking message responses. */
50};
51
52
59#define BT_MESH_MODEL_HEALTH_CLI(cli_data) \
60 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_HEALTH_CLI, bt_mesh_health_cli_op, \
61 NULL, cli_data, &bt_mesh_health_cli_cb)
62
70
85 uint8_t *test_id, uint8_t *faults,
86 size_t *fault_count);
87
102 uint8_t *test_id, uint8_t *faults,
103 size_t *fault_count);
104
117 uint8_t test_id, uint8_t *faults,
118 size_t *fault_count);
119
137
156 uint8_t *updated_divisor);
157
167
179 uint8_t *updated_attention);
180
186
192
194extern const struct bt_mesh_model_op bt_mesh_health_cli_op[];
195extern const struct bt_mesh_model_cb bt_mesh_health_cli_cb;
198#ifdef __cplusplus
199}
200#endif
201
206#endif /* ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_CLI_H_ */
ZTEST_BMEM int timeout
Definition: main.c:31
void
Definition: eswifi_shell.c:15
int bt_mesh_health_period_set(uint16_t addr, uint16_t app_idx, uint8_t divisor, uint8_t *updated_divisor)
Set the target node's Health fast period divisor.
int bt_mesh_health_fault_get(uint16_t addr, uint16_t app_idx, uint16_t cid, uint8_t *test_id, uint8_t *faults, size_t *fault_count)
Get the registered fault state for the given Company ID.
int bt_mesh_health_attention_set(uint16_t addr, uint16_t app_idx, uint8_t attention, uint8_t *updated_attention)
Set the attention timer.
int32_t bt_mesh_health_cli_timeout_get(void)
Get the current transmission timeout value.
int bt_mesh_health_cli_set(struct bt_mesh_model *model)
Set Health client model instance to use for communication.
int bt_mesh_health_attention_get(uint16_t addr, uint16_t app_idx, uint8_t *attention)
Get the current attention timer value.
int bt_mesh_health_period_get(uint16_t addr, uint16_t app_idx, uint8_t *divisor)
Get the target node's Health fast period divisor.
void bt_mesh_health_cli_timeout_set(int32_t timeout)
Set the transmission timeout value.
int bt_mesh_health_fault_test(uint16_t addr, uint16_t app_idx, uint16_t cid, uint8_t test_id, uint8_t *faults, size_t *fault_count)
Invoke a self-test procedure for the given Company ID.
int bt_mesh_health_fault_clear(uint16_t addr, uint16_t app_idx, uint16_t cid, uint8_t *test_id, uint8_t *faults, size_t *fault_count)
Clear the registered faults for the given Company ID.
__INT32_TYPE__ int32_t
Definition: stdint.h:44
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
Definition: health_cli.h:25
struct bt_mesh_model * model
Definition: health_cli.h:27
void(* current_status)(struct bt_mesh_health_cli *cli, uint16_t addr, uint8_t test_id, uint16_t cid, uint8_t *faults, size_t fault_count)
Optional callback for Health Current Status messages.
Definition: health_cli.h:44
struct bt_mesh_msg_ack_ctx ack_ctx
Definition: health_cli.h:49
Definition: access.h:415
Definition: access.h:165
Definition: access.h:483
Definition: msg.h:117