Go to the documentation of this file.
63 #include "custom_config.h"
71 #define HRS_C_CONNECTION_MAX (10 < CFG_MAX_CONNECTIONS ?\
72 10 : CFG_MAX_CONNECTIONS)
73 #define HRS_C_RR_INTERVALS_NUM_MAX 9
74 #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.
Definition: hrs_c.h:96
uint16_t hrs_hr_meas_handle
Definition: hrs_c.h:137
@ HRS_C_EVT_INVALID
Definition: hrs_c.h:84
uint16_t hrs_srvc_start_handle
Definition: hrs_c.h:135
@ HRS_C_BIT_INTERVAL
Definition: hrs_c.h:102
hrs_c_evt_type_t evt_type
Definition: hrs_c.h:147
@ HRS_C_SENS_LOC_FOOT
Definition: hrs_c.h:114
hrs_c_evt_type_t
Heart Rate Service Client event type.
Definition: hrs_c.h:83
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
Definition: hrs_c.h:87
Handles on the connected peer device needed to interact with it.
Definition: hrs_c.h:134
@ HRS_C_SENS_LOC_HAND
Definition: hrs_c.h:112
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.
@ HRS_C_SENS_LOC_CHEST
Definition: hrs_c.h:109
void(* hrs_c_evt_handler_t)(hrs_c_evt_t *p_evt)
Heart Rate Service Client event handler type.
Definition: hrs_c.h:161
@ HRS_C_EVT_WRITE_OP_ERR
Definition: hrs_c.h:91
@ HRS_C_BIT_SENSOR_CONTACT_SUPPORTED
Definition: hrs_c.h:100
@ HRS_C_EVT_CTRL_POINT_SET
Definition: hrs_c.h:90
@ HRS_C_BIT_RATE_FORMAT
Definition: hrs_c.h:98
@ HRS_C_BIT_SENSOR_CONTACT_DETECTED
Definition: hrs_c.h:99
Heart Rate Service Client event.
Definition: hrs_c.h:145
uint8_t conn_idx
Definition: hrs_c.h:146
uint8_t rr_intervals_num
Definition: hrs_c.h:127
uint16_t hrs_ctrl_point_handle
Definition: hrs_c.h:140
Profile/Service Common Types.
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:243
@ HRS_C_EVT_DISCOVERY_FAIL
Definition: hrs_c.h:86
@ HRS_C_SENS_LOC_WRIST
Definition: hrs_c.h:110
@ HRS_C_SENS_LOC_OTHER
Definition: hrs_c.h:108
uint16_t energy_expended
Definition: hrs_c.h:129
hrs_c_sensor_loc_t
Values for sensor location.
Definition: hrs_c.h:107
hrs_c_sensor_loc_t sensor_loc
Definition: hrs_c.h:151
Heart Rate Measurement characteristic value structure.
Definition: hrs_c.h:124
@ HRS_C_EVT_HR_MEAS_VAL_RECEIVE
Definition: hrs_c.h:88
uint16_t hrs_hr_meas_cccd_handle
Definition: hrs_c.h:138
@ HRS_C_EVT_DISCOVERY_COMPLETE
Definition: hrs_c.h:85
uint16_t hrs_sensor_loc_handle
Definition: hrs_c.h:139
#define HRS_C_RR_INTERVALS_NUM_MAX
Definition: hrs_c.h:73
uint16_t hr_value
Definition: hrs_c.h:126
@ HRS_C_SENS_LOC_EARLOBE
Definition: hrs_c.h:113
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
Definition: hrs_c.h:136
@ HRS_C_BIT_ENERGY_EXPENDED_STATUS
Definition: hrs_c.h:101
bool is_sensor_contact_detected
Definition: hrs_c.h:125
@ HRS_C_SENS_LOC_FINGER
Definition: hrs_c.h:111
@ HRS_C_EVT_SENSOR_LOC_READ_RSP
Definition: hrs_c.h:89
hrs_c_hr_meas_t hr_meas_buff
Definition: hrs_c.h:150
sdk_err_t hrs_c_sensor_loc_read(uint8_t conn_idx)
Read Sensor Location characteristic value.