nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_hrs_rr_interval_add()

uint32_t ble_hrs_rr_interval_add ( struct ble_hrs * hrs,
uint16_t rr_interval )

#include <ble_hrs.h>

Function for adding a RR Interval measurement to the RR Interval buffer.

All buffered RR Interval measurements will be included in the next heart rate measurement message, up to the maximum number of measurements that will fit into the message. If the buffer is full, the oldest measurement in the buffer will be deleted.

Parameters
hrsHeart rate service.
rr_intervalNew RR interval measurement.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf hrs is NULL.