Go to the documentation of this file.
63 #include "custom_config.h"
71 #define HRS_C_CONNECTION_MAX 10
72 #define HRS_C_RR_INTERVALS_NUM_MAX 9
73 #define HRS_C_CTRL_POINT_ENERGY_EXP 0x01
sdk_err_t hrs_c_disc_srvc_start(uint8_t conn_idx)
Discovery Heart Rate Service on peer.
hrs_c_flag_bit_t
Heart Rate Service Measurement flag bit.
uint16_t hrs_hr_meas_handle
uint16_t hrs_srvc_start_handle
hrs_c_evt_type_t evt_type
hrs_c_evt_type_t
Heart Rate Service Client event type.
sdk_err_t hrs_client_init(hrs_c_evt_handler_t evt_handler)
Register HRS Client event handler.
@ HRS_C_EVT_HR_MEAS_NTF_SET_SUCCESS
Handles on the connected peer device needed to interact with it.
sdk_err_t hrs_c_heart_rate_meas_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer Heart Rate Measurement characteristic notify.
void(* hrs_c_evt_handler_t)(hrs_c_evt_t *p_evt)
Heart Rate Service Client event handler type.
@ HRS_C_BIT_SENSOR_CONTACT_SUPPORTED
@ HRS_C_EVT_CTRL_POINT_SET
@ HRS_C_BIT_SENSOR_CONTACT_DETECTED
Heart Rate Service Client event.
uint16_t hrs_ctrl_point_handle
Profile/Service Common Types.
uint16_t sdk_err_t
SDK API result type.
@ HRS_C_EVT_DISCOVERY_FAIL
hrs_c_sensor_loc_t
Values for sensor location.
hrs_c_sensor_loc_t sensor_loc
Heart Rate Measurement characteristic value structure.
@ HRS_C_EVT_HR_MEAS_VAL_RECEIVE
uint16_t hrs_hr_meas_cccd_handle
@ HRS_C_EVT_DISCOVERY_COMPLETE
uint16_t hrs_sensor_loc_handle
#define HRS_C_RR_INTERVALS_NUM_MAX
sdk_err_t hrs_c_ctrl_point_set(uint8_t conn_idx, uint16_t ctrl_value)
Set Control Point characteristic value.
uint16_t hrs_srvc_end_handle
@ HRS_C_BIT_ENERGY_EXPENDED_STATUS
bool is_sensor_contact_detected
@ HRS_C_EVT_SENSOR_LOC_READ_RSP
hrs_c_hr_meas_t hr_meas_buff
sdk_err_t hrs_c_sensor_loc_read(uint8_t conn_idx)
Read Sensor Location characteristic value.