This is the client for the Running Speed and Cadence Service .
This is the client for the Running Speed and Cadence Service Service.
|
enum | e_ble_rscc_sensor_location_sensor_location_t {
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_OTHER = 0,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_TOP_OF_SHOE = 1,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_IN_SHOE = 2,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_HIP = 3,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION__FRONT_WHEEL = 4,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_LEFT_CRANK = 5,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_RIGHT_CRANK = 6,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_LEFT_PEDAL = 7,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_RIGHT_PEDAL = 8,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION__FRONT_HUB = 9,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_REAR_DROPOUT = 10,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_CHAINSTAY = 11,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_REAR_WHEEL = 12,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_REAR_HUB = 13,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_CHEST = 14,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_SPIDER = 15,
BLE_RSCC_SENSOR_LOCATION_SENSOR_LOCATION_CHAIN_RING = 16
} |
| Sensor Location Sensor Location enumeration. More...
|
|
enum | e_ble_rscc_sc_control_point_op_code_t {
BLE_RSCC_SC_CONTROL_POINT_OP_CODE_RESERVED_FOR_FUTURE_USE = 0,
BLE_RSCC_SC_CONTROL_POINT_OP_CODE_SET_CUMULATIVE_VALUE = 1,
BLE_RSCC_SC_CONTROL_POINT_OP_CODE_START_SENSOR_CALIBRATION = 2,
BLE_RSCC_SC_CONTROL_POINT_OP_CODE_UPDATE_SENSOR_LOCATION = 3,
BLE_RSCC_SC_CONTROL_POINT_OP_CODE_REQUEST_SUPPORTED_SENSOR_LOCATIONS = 4,
BLE_RSCC_SC_CONTROL_POINT_OP_CODE_RESPONSE_CODE = 16
} |
| SC Control Point Op Code enumeration. More...
|
|
enum | e_ble_rscc_sc_control_point_response_value_t {
BLE_RSCC_SC_CONTROL_POINT_RESPONSE_VALUE_RESERVED_FOR_FUTURE_USE__RESPONSE_PARAMETER__N_A_ = 0,
BLE_RSCC_SC_CONTROL_POINT_RESPONSE_VALUE_SUCCESS__RESPONSE_PARAMETER__NONE_EXCEPT_FOR_OP_CODE_0X04_SEE_NOTE_BELOW_ = 1,
BLE_RSCC_SC_CONTROL_POINT_RESPONSE_VALUE_OP_CODE_NOT_SUPPORTED__RESPONSE_PARAMETER__N_A_ = 2,
BLE_RSCC_SC_CONTROL_POINT_RESPONSE_VALUE_INVALID_PARAMETER__RESPONSE_PARAMETER__NONE_ = 3,
BLE_RSCC_SC_CONTROL_POINT_RESPONSE_VALUE_OPERATION_FAILED__RESPONSE_PARAMETER__NONE_ = 4
} |
| SC Control Point Response Value enumeration. More...
|
|
enum | e_ble_rscc_char_idx_t {
BLE_RSCC_RSC_MEASUREMENT_IDX,
BLE_RSCC_RSC_MEASUREMENT_CLI_CNFG_IDX,
BLE_RSCC_RSC_FEATURE_IDX,
BLE_RSCC_SENSOR_LOCATION_IDX,
BLE_RSCC_SC_CONTROL_POINT_IDX,
BLE_RSCC_SC_CONTROL_POINT_CLI_CNFG_IDX
} |
| Running Speed and Cadence Service characteristic ID. More...
|
|
enum | e_ble_rscc_event_t {
BLE_RSCC_EVENT_RSC_MEASUREMENT_HDL_VAL_NTF = BLE_SERVC_ATTR_EVENT(BLE_RSCC_RSC_MEASUREMENT_IDX, BLE_SERVC_HDL_VAL_NTF),
BLE_RSCC_EVENT_RSC_MEASUREMENT_CLI_CNFG_READ_RSP = BLE_SERVC_ATTR_EVENT(BLE_RSCC_RSC_MEASUREMENT_CLI_CNFG_IDX, BLE_SERVC_READ_RSP),
BLE_RSCC_EVENT_RSC_MEASUREMENT_CLI_CNFG_WRITE_RSP = BLE_SERVC_ATTR_EVENT(BLE_RSCC_RSC_MEASUREMENT_CLI_CNFG_IDX, BLE_SERVC_WRITE_RSP),
BLE_RSCC_EVENT_RSC_FEATURE_READ_RSP = BLE_SERVC_ATTR_EVENT(BLE_RSCC_RSC_FEATURE_IDX, BLE_SERVC_READ_RSP),
BLE_RSCC_EVENT_SENSOR_LOCATION_READ_RSP = BLE_SERVC_ATTR_EVENT(BLE_RSCC_SENSOR_LOCATION_IDX, BLE_SERVC_READ_RSP),
BLE_RSCC_EVENT_SC_CONTROL_POINT_WRITE_RSP = BLE_SERVC_ATTR_EVENT(BLE_RSCC_SC_CONTROL_POINT_IDX, BLE_SERVC_WRITE_RSP),
BLE_RSCC_EVENT_SC_CONTROL_POINT_HDL_VAL_IND = BLE_SERVC_ATTR_EVENT(BLE_RSCC_SC_CONTROL_POINT_IDX, BLE_SERVC_HDL_VAL_IND),
BLE_RSCC_EVENT_SC_CONTROL_POINT_CLI_CNFG_READ_RSP = BLE_SERVC_ATTR_EVENT(BLE_RSCC_SC_CONTROL_POINT_CLI_CNFG_IDX, BLE_SERVC_READ_RSP),
BLE_RSCC_EVENT_SC_CONTROL_POINT_CLI_CNFG_WRITE_RSP = BLE_SERVC_ATTR_EVENT(BLE_RSCC_SC_CONTROL_POINT_CLI_CNFG_IDX, BLE_SERVC_WRITE_RSP)
} |
| Running Speed and Cadence Service client event type. More...
|
|
|
ble_status_t | R_BLE_RSCC_WriteRscMeasCliCnfg (uint16_t conn_hdl, const uint16_t *p_value) |
| Write RSC Measurement characteristic Client Characteristic Configuration descriptor value to remote GATT database. More...
|
|
ble_status_t | R_BLE_RSCC_ReadRscMeasCliCnfg (uint16_t conn_hdl) |
| Read RSC Measurement characteristic Client Characteristic Configuration descriptor value from the remote GATT database. More...
|
|
static ble_status_t | decode_st_ble_rscc_rsc_meas_t (st_ble_rscc_rsc_measurement_t *p_app_value, const st_ble_gatt_value_t *p_gatt_value) |
|
static ble_status_t | encode_st_ble_rscc_rsc_meas_t (const st_ble_rscc_rsc_measurement_t *p_app_value, st_ble_gatt_value_t *p_gatt_value) |
|
void | R_BLE_RSCC_GetRscMeasAttrHdl (const st_ble_dev_addr_t *p_addr, st_ble_rscc_rsc_measurement_attr_hdl_t *p_hdl) |
| Get RSC Measurement attribute handles. More...
|
|
static ble_status_t | decode_st_ble_rscc_rsc_feat_t (st_ble_rscc_rsc_feature_t *p_app_value, const st_ble_gatt_value_t *p_gatt_value) |
|
static ble_status_t | encode_st_ble_rscc_rsc_feat_t (const st_ble_rscc_rsc_feature_t *p_app_value, st_ble_gatt_value_t *p_gatt_value) |
|
ble_status_t | R_BLE_RSCC_ReadRscFeat (uint16_t conn_hdl) |
| Read RSC Feature characteristic value from the remote GATT database. More...
|
|
void | R_BLE_RSCC_GetRscFeatAttrHdl (const st_ble_dev_addr_t *p_addr, st_ble_rscc_rsc_feature_attr_hdl_t *p_hdl) |
| Get RSC Feature attribute handles. More...
|
|
ble_status_t | R_BLE_RSCC_ReadSenLoc (uint16_t conn_hdl) |
| Read Sensor Location characteristic value from the remote GATT database. More...
|
|
void | R_BLE_RSCC_GetSenLocAttrHdl (const st_ble_dev_addr_t *p_addr, st_ble_rscc_sensor_location_attr_hdl_t *p_hdl) |
| Get Sensor Location attribute handles. More...
|
|
ble_status_t | R_BLE_RSCC_WriteScCPCliCnfg (uint16_t conn_hdl, const uint16_t *p_value) |
| Write SC Control Point characteristic Client Characteristic Configuration descriptor value to remote GATT database. More...
|
|
ble_status_t | R_BLE_RSCC_ReadScCPCliCnfg (uint16_t conn_hdl) |
| Read SC Control Point characteristic Client Characteristic Configuration descriptor value from the remote GATT database. More...
|
|
static ble_status_t | decode_st_ble_rscc_sc_cp_t (st_ble_rscc_sc_control_point_t *p_app_value, const st_ble_gatt_value_t *p_gatt_value) |
|
static ble_status_t | encode_st_ble_rscc_sc_cp_t (const st_ble_rscc_sc_control_point_t *p_app_value, st_ble_gatt_value_t *p_gatt_value) |
|
ble_status_t | R_BLE_RSCC_WriteScCP (uint16_t conn_hdl, const st_ble_rscc_sc_control_point_t *p_value) |
| Write SC Control Point characteristic value to remote GATT database. More...
|
|
void | R_BLE_RSCC_GetScCPAttrHdl (const st_ble_dev_addr_t *p_addr, st_ble_rscc_sc_control_point_attr_hdl_t *p_hdl) |
| Get SC Control Point attribute handles. More...
|
|
ble_status_t | R_BLE_RSCC_Init (ble_servc_app_cb_t cb) |
| Initialize Running Speed and Cadence Service client. More...
|
|
void | R_BLE_RSCC_ServDiscCb (uint16_t conn_hdl, uint8_t serv_idx, uint16_t type, void *p_param) |
| Running Speed and Cadence Service client discovery callback. More...
|
|
void | R_BLE_RSCC_GetServAttrHdl (const st_ble_dev_addr_t *p_addr, st_ble_gatt_hdl_range_t *p_hdl) |
| Get Running Speed and Cadence Service client attribute handle. More...
|
|