10#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_SRV_H_ 
   11#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_HEALTH_SRV_H_ 
  146#define BT_MESH_HEALTH_PUB_DEFINE(_name, _max_faults) \ 
  147        BT_MESH_MODEL_PUB_DEFINE(_name, NULL, (1 + 3 + (_max_faults))) 
  160#ifdef CONFIG_BT_MESH_LARGE_COMP_DATA_SRV 
  177#ifdef CONFIG_BT_MESH_LARGE_COMP_DATA_SRV 
  178#define BT_MESH_MODEL_HEALTH_SRV(srv, pub)                                              \ 
  179        BT_MESH_MODEL_METADATA_CB(BT_MESH_MODEL_ID_HEALTH_SRV, bt_mesh_health_srv_op,   \ 
  180                         pub, srv, &bt_mesh_health_srv_cb, &(srv)->metadata) 
  182#define BT_MESH_MODEL_HEALTH_SRV(srv, pub)                                     \ 
  183        BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_HEALTH_SRV, bt_mesh_health_srv_op,   \ 
  184                         pub, srv, &bt_mesh_health_srv_cb) 
  191#define BT_MESH_HEALTH_TEST_INFO_METADATA_ID 0x0001 
  193#define BT_MESH_HEALTH_TEST_INFO_METADATA(tests)                               \ 
  195                .len = ARRAY_SIZE(tests),                                      \ 
  196                .id = BT_MESH_HEALTH_TEST_INFO_METADATA_ID,                    \ 
  209#define BT_MESH_HEALTH_TEST_INFO(cid, tests...)                                \ 
  210        BT_BYTES_LIST_LE16(cid), sizeof((uint8_t[]){ tests }), tests 
int bt_mesh_health_srv_fault_update(struct bt_mesh_elem *elem)
Notify the stack that the fault array state of the given element has changed.
 
Bluetooth mesh Profile APIs.
 
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
 
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
 
Definition: health_srv.h:28
 
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:94
 
void(* attn_off)(struct bt_mesh_model *model)
Stop the attention state.
Definition: health_srv.h:137
 
int(* fault_test)(struct bt_mesh_model *model, uint8_t test_id, uint16_t company_id)
Run a self-test.
Definition: health_srv.h:111
 
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:56
 
void(* attn_on)(struct bt_mesh_model *model)
Start calling attention to the device.
Definition: health_srv.h:128
 
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:82
 
Definition: health_srv.h:150
 
struct bt_mesh_model * model
Definition: health_srv.h:152
 
const struct bt_mesh_health_srv_cb * cb
Definition: health_srv.h:155
 
struct k_work_delayable attn_timer
Definition: health_srv.h:158
 
A structure used to submit work after a delay.
Definition: kernel.h:3793