Go to the documentation of this file.
64 #include "custom_config.h"
72 #define RSCS_C_CONNECTION_MAX 10
73 #define RSCS_C_PT_RSP_LEN_MAX (3 + RSCS_C_SENSOR_LOC_SUP_NB)
74 #define RSCS_C_ERROR_PROC_IN_PROGRESS 0x80
75 #define RSCS_C_ERROR_CCCD_INVALID 0x81
82 #define RSCS_C_MEAS_FLAG_INST_STRIDE_LEN_BIT (0x01 << 0)
83 #define RSCS_C_MEAS_FLAG_TOTAL_DISTANCE_BIT (0x01 << 1)
84 #define RSCS_C_MEAS_FLAG_RUNNING_OR_WALKING_BIT (0x01 << 2)
92 #define RSCS_C_FEAT_INSTANT_STRIDE_LEN_BIT (0x01 << 0)
93 #define RSCS_C_FEAT_TOTAL_DISTANCE_BIT (0x01 << 1)
94 #define RSCS_C_FEAT_RUNNING_OR_WALKING_STATUS_BIT (0x01 << 2)
95 #define RSCS_C_FEAT_CALIBRATION_PROCEDURE_BIT (0x01 << 3)
96 #define RSCS_C_FEAT_MULTIPLE_SENSORS_BIT (0x01 << 4)
@ RSCS_C_SENSOR_LOC_SHOE_TOP
#define RSCS_C_PT_RSP_LEN_MAX
@ RSCS_C_SENSOR_LOC_LEFT_PEDAL
@ RSCS_C_EVT_DISCOVERY_COMPLETE
sdk_err_t rscs_c_ctrl_pt_set(uint8_t conn_idx, uint16_t ctrl_value)
Set Control Point characteristic value.
@ RSCS_C_CTRL_PT_OP_RESERVED
@ RSCS_C_CTRL_PT_OP_START_CALIB
@ RSCS_C_SENSOR_LOC_SUP_NB
uint16_t rscs_rsc_meas_handle
@ RSCS_C_EVT_CTRL_PT_IND_SET_SUCCESS
@ RSCS_C_SENSOR_LOC_SHOE_IN
uint16_t rscs_ctrl_pt_cccd_handle
uint16_t rscs_sensor_loc_handle
sdk_err_t rscs_c_rsc_meas_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer RSC Measurement characteristic notify.
sdk_err_t rscs_c_rsc_feature_read(uint8_t conn_idx)
Read RSC Feature characteristic value.
rscs_c_sensor_loc_t
Running Speed and Cadence Service Sensor Location.
@ RSCS_C_CTRL_PT_RSP_RESERVED
rscs_c_meas_val_t rsc_meas_buff
sdk_err_t rscs_client_init(rscs_c_evt_handler_t evt_handler)
Register RSCS Client event handler.
uint16_t rscs_rsc_meas_cccd_handle
rscs_c_evt_type_t evt_type
rscs_c_sensor_loc_t rsc_sensor_loc
rscs_c_evt_type_t
Running Speed and Cadence Service Client event type.
Handles on the connected peer device needed to interact with it.
rscs_c_ctrl_pt_rsp_t
Running Speed and Cadence Service Control Point Response value.
@ RSCS_C_EVT_RSC_MEAS_NTF_SET_SUCCESS
@ RSCS_C_SENSOR_LOC_FRONT_WHEEL
Running Speed and Cadence Measurement Character value structure.
@ RSCS_C_CTRL_PT_RSP_SUCCESS
@ RSCS_C_CTRL_PT_RSP_INVALID_PARAM
bool total_distance_present
@ RSCS_C_EVT_WRITE_OP_ERR
@ RSCS_C_EVT_CTRL_PT_SET_SUCCESS
uint16_t rscs_srvc_start_handle
@ RSCS_C_EVT_RSC_FEATURE_RECEIVE
uint16_t rscs_srvc_end_handle
@ RSCS_C_CTRL_PT_OP_REQ_SUP_LOC
@ RSCS_C_EVT_SENSOR_LOC_RECEIVE
@ RSCS_C_EVT_RSC_MEAS_VAL_RECEIVE
Profile/Service Common Types.
uint16_t sdk_err_t
SDK API result type.
@ RSCS_C_CTRL_PT_OP_UPD_LOC
@ RSCS_C_EVT_CTRL_PT_RSP_RECEIVE
Running Speed and Cadence Service Client event.
rscs_c_ctrl_pt_op_code_t
Running Speed and Cadence Service Control Point Operation Code.
@ RSCS_C_CTRL_PT_RSP_FAILED
uint16_t inst_stride_length
@ RSCS_C_CTRL_PT_OP_RSP_CODE
@ RSCS_C_SENSOR_LOC_RIGHT_PEDAL
bool inst_stride_length_present
sdk_err_t rscs_c_disc_srvc_start(uint8_t conn_idx)
Discovery Running Speed and Cadence Service on peer.
@ RSCS_C_EVT_DISCOVERY_FAIL
uint16_t rscs_ctrl_pt_handle
@ RSCS_C_CTRL_PT_OP_SET_CUMUL_VAL
void(* rscs_c_evt_handler_t)(rscs_c_evt_t *p_evt)
Running Speed and Cadence Service Client event handler type.
@ RSCS_C_SENSOR_LOC_FRONT_HUB
sdk_err_t rscs_c_ctrl_pt_indicate_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer Control Point characteristic indicate.
@ RSCS_C_SENSOR_LOC_OTHER
uint16_t rscs_rsc_feature_handle
sdk_err_t rscs_c_sensor_loc_read(uint8_t conn_idx)
Read Sensor Location characteristic value.
@ RSCS_C_CTRL_PT_RSP_NOT_SUP