NimBLE-Arduino 2.1.2
Loading...
Searching...
No Matches
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 __BT_MESH_HEALTH_CLI_H
11#define __BT_MESH_HEALTH_CLI_H
12
20#ifdef __cplusplus
21extern "C" {
22#endif
23
26 struct bt_mesh_model *model;
27
28 void (*current_status)(struct bt_mesh_health_cli *cli, uint16_t addr,
29 uint8_t test_id, uint16_t cid, uint8_t *faults,
30 size_t fault_count);
31
32 struct bt_mesh_msg_ack_ctx ack_ctx;
33};
34
35extern const struct bt_mesh_model_op bt_mesh_health_cli_op[];
36extern const struct bt_mesh_model_cb bt_mesh_health_cli_cb;
37
38#define BT_MESH_MODEL_HEALTH_CLI(cli_data) \
39 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_HEALTH_CLI, bt_mesh_health_cli_op, \
40 NULL, cli_data, &bt_mesh_health_cli_cb)
41
42int bt_mesh_health_cli_set(struct bt_mesh_model *model);
43
44int bt_mesh_health_fault_get(uint16_t addr, uint16_t app_idx, uint16_t cid,
45 uint8_t *test_id, uint8_t *faults,
46 size_t *fault_count);
47
48int bt_mesh_health_fault_clear(uint16_t addr, uint16_t app_idx, uint16_t cid,
49 uint8_t *test_id, uint8_t *faults,
50 size_t *fault_count);
51
52int bt_mesh_health_fault_test(uint16_t addr, uint16_t app_idx, uint16_t cid,
53 uint8_t test_id, uint8_t *faults,
54 size_t *fault_count);
55
56int bt_mesh_health_period_get(uint16_t addr, uint16_t app_idx, uint8_t *divisor);
57
58int bt_mesh_health_period_set(uint16_t addr, uint16_t app_idx, uint8_t divisor,
59 uint8_t *updated_divisor);
60
61int bt_mesh_health_attention_get(uint16_t addr, uint16_t app_idx, uint8_t *attention);
62
63int bt_mesh_health_attention_set(uint16_t addr, uint16_t app_idx, uint8_t attention,
64 uint8_t *updated_attention);
65
66int32_t bt_mesh_health_cli_timeout_get(void);
67void bt_mesh_health_cli_timeout_set(int32_t timeout);
68
69#ifdef __cplusplus
70}
71#endif
72
77#endif /* __BT_MESH_HEALTH_CLI_H */
Definition health_cli.h:25
Definition access.h:380
Definition access.h:444
Definition msg.h:119