2019-07-04 22:44:29 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Intel Corporation
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_
|
|
|
|
#define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Heart Rate Service (HRS)
|
|
|
|
* @defgroup bt_gatt_hrs Heart Rate Service (HRS)
|
|
|
|
* @ingroup bluetooth
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* [Experimental] Users should note that the APIs can change
|
|
|
|
* as a part of ongoing development.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** @brief Notify heart rate measurement.
|
|
|
|
*
|
|
|
|
* This will send a GATT notification to all current subscribers.
|
|
|
|
*
|
2019-10-29 07:27:57 +08:00
|
|
|
* @param heartrate The heartrate measurement in beats per minute.
|
2019-07-04 22:44:29 +08:00
|
|
|
*
|
|
|
|
* @return Zero in case of success and error code in case of error.
|
|
|
|
*/
|
2020-05-28 00:26:57 +08:00
|
|
|
int bt_gatt_hrs_notify(uint16_t heartrate);
|
2019-07-04 22:44:29 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#endif /* ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_ */
|