Go to the documentation of this file.
72 #include "custom_config.h"
81 #define HRS_CONNECTION_MAX 10
82 #define HRS_MEAS_MAX_LEN 20
83 #define HRS_MAX_BUFFERED_RR_INTERVALS 9
91 #define HRS_CHAR_MANDATORY 0x0F
92 #define HRS_CHAR_BODY_SENSOR_LOC_SUP 0x30
93 #define HRS_CHAR_ENGY_EXP_SUP 0xC0
hrs_evt_handler_t evt_handler
hrs_sensor_loc_t sensor_loc
@ HRS_EVT_NOTIFICATION_ENABLED
Heart Rate Service event.
void hrs_sensor_contact_detected_update(bool is_sensor_contact_detected)
Set the state of the Sensor Contact Detected bit.
sdk_err_t hrs_service_init(hrs_init_t *p_hrs_init)
Init a Heart Rate Service instance and add in the DB.
void hrs_rr_interval_add(uint16_t rr_interval)
Add an RR Interval measurement to the RR Interval buffer.
void hrs_sensor_location_set(hrs_sensor_loc_t hrs_sensor_loc)
Set the Body Sensor Location.
hrs_evt_type_t
Heart Rate Service event types.
sdk_err_t hrs_heart_rate_measurement_send(uint8_t conn_idx, uint16_t heart_rate, bool is_energy_updated)
Send Heart Rate measurement if Notify has been enabled.
hrs_sensor_loc_t
Values for sensor location.
uint16_t sdk_err_t
SDK API result type.
@ HRS_EVT_READ_BODY_SEN_LOCATION
uint16_t hrs_service_start_handle_get(void)
Provide the interface for other modules to obtain the hrs service start handle .
Heart Rate Service Init variable.
@ HRS_EVT_NOTIFICATION_DISABLED
@ HRS_EVT_RESET_ENERGY_EXPENDED
void hrs_energy_update(uint16_t energy)
Update Energy measurement if Energy Expended is supported.
void(* hrs_evt_handler_t)(hrs_evt_t *p_evt)
Heart Rate Service event handler type.
void hrs_sensor_contact_supported_set(bool is_sensor_contact_supported)
Set the state of the Sensor Contact Supported bit.
bool is_sensor_contact_supported