10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_SRV_H_
11#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_SRV_H_
144#define BT_MESH_HEALTH_PUB_DEFINE(_name, _max_faults) \
145 BT_MESH_MODEL_PUB_DEFINE(_name, NULL, (1 + 3 + (_max_faults)))
171#define BT_MESH_MODEL_HEALTH_SRV(srv, pub) \
172 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_HEALTH_SRV, bt_mesh_health_srv_op, \
173 pub, srv, &bt_mesh_health_srv_cb)
int bt_mesh_fault_update(struct bt_mesh_elem *elem)
Notify the stack that the fault array state of the given element has changed.
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
Definition: health_srv.h:25
int(* fault_clear)(struct bt_mesh_model *model, uint16_t company_id)
Clear all registered faults associated with the given Company ID.
Definition: health_srv.h:91
void(* attn_off)(struct bt_mesh_model *model)
Stop the attention state.
Definition: health_srv.h:134
int(* fault_test)(struct bt_mesh_model *model, uint8_t test_id, uint16_t company_id)
Run a self-test.
Definition: health_srv.h:108
int(* fault_get_cur)(struct bt_mesh_model *model, uint8_t *test_id, uint16_t *company_id, uint8_t *faults, uint8_t *fault_count)
Callback for fetching current faults.
Definition: health_srv.h:53
void(* attn_on)(struct bt_mesh_model *model)
Start calling attention to the device.
Definition: health_srv.h:125
int(* fault_get_reg)(struct bt_mesh_model *model, uint16_t company_id, uint8_t *test_id, uint8_t *faults, uint8_t *fault_count)
Callback for fetching all registered faults.
Definition: health_srv.h:79
Definition: health_srv.h:148
struct bt_mesh_model * model
Definition: health_srv.h:150
const struct bt_mesh_health_srv_cb * cb
Definition: health_srv.h:153
struct k_work_delayable attn_timer
Definition: health_srv.h:156
A structure used to submit work after a delay.
Definition: kernel.h:3600