Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Heartbeat. More...
Data Structures | |
struct | bt_mesh_hb_pub |
Heartbeat Publication parameters. More... | |
struct | bt_mesh_hb_sub |
Heartbeat Subscription parameters. More... | |
struct | bt_mesh_hb_cb |
Heartbeat callback structure. More... | |
Macros | |
#define | BT_MESH_HB_CB_DEFINE(_name) static const STRUCT_SECTION_ITERABLE(bt_mesh_hb_cb, _name) |
Register a callback structure for Heartbeat events. | |
Functions | |
void | bt_mesh_hb_pub_get (struct bt_mesh_hb_pub *get) |
Get the current Heartbeat publication parameters. | |
void | bt_mesh_hb_sub_get (struct bt_mesh_hb_sub *get) |
Get the current Heartbeat subscription parameters. | |
Heartbeat.
#define BT_MESH_HB_CB_DEFINE | ( | _name | ) | static const STRUCT_SECTION_ITERABLE(bt_mesh_hb_cb, _name) |
#include <include/zephyr/bluetooth/mesh/heartbeat.h>
Register a callback structure for Heartbeat events.
Registers a callback structure that will be called whenever Heartbeat events occur
_name | Name of callback structure. |
void bt_mesh_hb_pub_get | ( | struct bt_mesh_hb_pub * | get | ) |
#include <include/zephyr/bluetooth/mesh/heartbeat.h>
Get the current Heartbeat publication parameters.
get | Heartbeat publication parameters return buffer. |
void bt_mesh_hb_sub_get | ( | struct bt_mesh_hb_sub * | get | ) |
#include <include/zephyr/bluetooth/mesh/heartbeat.h>
Get the current Heartbeat subscription parameters.
get | Heartbeat subscription parameters return buffer. |