Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
hrs.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_
8#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_
9
20#include <stdint.h>
21
22#include <zephyr/sys/slist.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
29struct bt_hrs_cb {
35 void (*ntf_changed)(bool enabled);
36
38 sys_snode_t _node;
39};
40
53
65
74int bt_hrs_notify(uint16_t heartrate);
75
76#ifdef __cplusplus
77}
78#endif
79
84#endif /* ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_ */
int bt_hrs_notify(uint16_t heartrate)
Notify heart rate measurement.
int bt_hrs_cb_register(struct bt_hrs_cb *cb)
Heart rate service callback register.
int bt_hrs_cb_unregister(struct bt_hrs_cb *cb)
Heart rate service callback unregister.
struct _snode sys_snode_t
Single-linked list node structure.
Definition: slist.h:39
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
Heart rate service callback structure.
Definition: hrs.h:29
void(* ntf_changed)(bool enabled)
Heart rate notifications changed.
Definition: hrs.h:35