7#include "../include/mesh/heartbeat.h"
9static inline uint16_t bt_mesh_hb_pwr2(uint8_t val)
13 }
else if (val == 0xff || val == 0x11) {
16 return (1 << (val - 1));
20static inline uint8_t bt_mesh_hb_log(uint32_t val)
24 }
else if (val == 0xffff) {
27 return 32 - __builtin_clz(val);
31void bt_mesh_hb_init(
void);
32void bt_mesh_hb_start(
void);
33void bt_mesh_hb_suspend(
void);
34void bt_mesh_hb_resume(
void);
36int bt_mesh_hb_recv(
struct bt_mesh_net_rx *rx,
struct os_mbuf *buf);
37void bt_mesh_hb_feature_changed(uint16_t features);
40uint8_t bt_mesh_hb_sub_set(uint16_t src, uint16_t dst, uint32_t period);
41void bt_mesh_hb_sub_reset_count(
void);
42void bt_mesh_hb_pub_pending_store(
void);
43void bt_mesh_hb_pub_init(
void);
Definition heartbeat.h:25