hrs.h 843 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2016 Intel Corporation
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_
  7. #define ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_
  8. /**
  9. * @brief Heart Rate Service (HRS)
  10. * @defgroup bt_hrs Heart Rate Service (HRS)
  11. * @ingroup bluetooth
  12. * @{
  13. *
  14. * [Experimental] Users should note that the APIs can change
  15. * as a part of ongoing development.
  16. */
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /** @brief Notify heart rate measurement.
  21. *
  22. * This will send a GATT notification to all current subscribers.
  23. *
  24. * @param heartrate The heartrate measurement in beats per minute.
  25. *
  26. * @return Zero in case of success and error code in case of error.
  27. */
  28. int bt_hrs_notify(uint16_t heartrate);
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. /**
  33. * @}
  34. */
  35. #endif /* ZEPHYR_INCLUDE_BLUETOOTH_SERVICES_HRS_H_ */