11#include <zephyr/types.h>
int bt_rscs_init(const struct bt_rscs_init_params *init)
Function for initializing the Running Speed and Cadence Service.
bt_rscs_evt
Definition: rscs.h:86
@ RSCS_EVT_MEAS_NOTIFY_DISABLE
Definition: rscs.h:91
@ RSCS_EVT_MEAS_NOTIFY_ENABLE
Definition: rscs.h:88
int bt_rscs_measurement_send(struct bt_conn *conn, const struct bt_rscs_measurement *measurement)
Function for sending Running Speed and Cadence measurement.
void(* bt_rscs_evt_handler)(enum bt_rscs_evt evt)
Running Speed and Cadence Service event handler type.
Definition: rscs.h:95
bt_rscs_location
RSC Sensor Locations.
Definition: rscs.h:24
@ RSC_LOC_TOP_OF_SHOE
Definition: rscs.h:26
@ RSC_LOC_FRONT_WHEEL
Definition: rscs.h:29
@ RSC_LOC_REAR_HUB
Definition: rscs.h:38
@ RSC_LOC_CHEST
Definition: rscs.h:39
@ RSC_LOC_FRONT_HUB
Definition: rscs.h:34
@ RSC_LOC_REAR_WHEEL
Definition: rscs.h:37
@ RSC_LOC_CHAIN_RING
Definition: rscs.h:41
@ RSC_LOC_OTHER
Definition: rscs.h:25
@ RSC_LOC_LEFT_PEDAL
Definition: rscs.h:32
@ RSC_LOC_HIP
Definition: rscs.h:28
@ RSC_LOC_REAR_DROPOUT
Definition: rscs.h:35
@ RSC_LOC_IN_SHOE
Definition: rscs.h:27
@ RSC_LOC_LEFT_CRANK
Definition: rscs.h:30
@ RSC_LOC_CHAINSTAY
Definition: rscs.h:36
@ RSC_LOC_AMT
Definition: rscs.h:43
@ RSC_LOC_RIGHT_PEDAL
Definition: rscs.h:33
@ RSC_LOC_RIGHT_CRANK
Definition: rscs.h:31
@ RSC_LOC_SPIDER
Definition: rscs.h:40
uint32_t rear_wheel
Definition: rscs.h:60
uint32_t front_hub
Definition: rscs.h:57
uint32_t front_wheel
Definition: rscs.h:52
uint32_t top_of_shoe
Definition: rscs.h:49
uint32_t left_crank
Definition: rscs.h:53
uint32_t right_crank
Definition: rscs.h:54
uint32_t chain_ring
Definition: rscs.h:64
uint32_t right_pedal
Definition: rscs.h:56
uint32_t in_shoe
Definition: rscs.h:50
uint32_t rear_dropout
Definition: rscs.h:58
uint32_t hip
Definition: rscs.h:51
uint32_t chest
Definition: rscs.h:62
uint32_t chainstay
Definition: rscs.h:59
uint32_t left_pedal
Definition: rscs.h:55
uint32_t other
Definition: rscs.h:48
uint32_t rear_hub
Definition: rscs.h:61
uint32_t spider
Definition: rscs.h:63
Bitmask set of supported location.
Definition: rscs.h:47
void(* update_loc)(uint8_t location)
Update Sensor Location Procedure.
Definition: rscs.h:119
int(* set_cumulative)(uint32_t total_distance)
Set Cumulative Value Procedure.
Definition: rscs.h:106
int(* calibration)(void)
Start Sensor Calibration Procedure.
Definition: rscs.h:113
SC Control Point callback structure.
Definition: rscs.h:98
uint8_t inst_stride_len
Definition: rscs.h:70
uint8_t total_distance
Definition: rscs.h:73
uint8_t walking_or_running
Definition: rscs.h:76
uint8_t multi_sensor_loc
Definition: rscs.h:82
uint8_t sensor_calib_proc
Definition: rscs.h:79
Bitmask set of supported features.
Definition: rscs.h:68
struct bt_rsc_supported_loc supported_locations
Definition: rscs.h:128
const struct bt_rscs_cp_cb * cp_cb
Definition: rscs.h:137
bt_rscs_evt_handler evt_handler
Definition: rscs.h:134
enum bt_rscs_location location
Definition: rscs.h:131
struct bt_rscs_features features
Definition: rscs.h:125
Running Speed and Cadence Service initialization parameters.
Definition: rscs.h:123
bool is_total_distance
Definition: rscs.h:146
uint16_t inst_stride_length
Definition: rscs.h:158
bool is_inst_stride_len
Definition: rscs.h:143
uint8_t inst_cadence
Definition: rscs.h:155
uint32_t total_distance
Definition: rscs.h:161
bool is_running
Definition: rscs.h:149
uint16_t inst_speed
Definition: rscs.h:152
Running Speed and Cadence Service measurement structure.
Definition: rscs.h:141