nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
rscs.h File Reference
#include <stdlib.h>
#include <zephyr/types.h>

Go to the source code of this file.

Data Structures

struct  bt_rsc_supported_loc
 Bitmask set of supported location. More...
 
struct  bt_rscs_features
 Bitmask set of supported features. More...
 
struct  bt_rscs_cp_cb
 SC Control Point callback structure. More...
 
struct  bt_rscs_init_params
 Running Speed and Cadence Service initialization parameters. More...
 
struct  bt_rscs_measurement
 Running Speed and Cadence Service measurement structure. More...
 

Typedefs

typedef void(* bt_rscs_evt_handler) (enum bt_rscs_evt evt)
 Running Speed and Cadence Service event handler type.
 

Enumerations

enum  bt_rscs_location {
  RSC_LOC_OTHER , RSC_LOC_TOP_OF_SHOE , RSC_LOC_IN_SHOE , RSC_LOC_HIP ,
  RSC_LOC_FRONT_WHEEL , RSC_LOC_LEFT_CRANK , RSC_LOC_RIGHT_CRANK , RSC_LOC_LEFT_PEDAL ,
  RSC_LOC_RIGHT_PEDAL , RSC_LOC_FRONT_HUB , RSC_LOC_REAR_DROPOUT , RSC_LOC_CHAINSTAY ,
  RSC_LOC_REAR_WHEEL , RSC_LOC_REAR_HUB , RSC_LOC_CHEST , RSC_LOC_SPIDER ,
  RSC_LOC_CHAIN_RING , RSC_LOC_AMT
}
 RSC Sensor Locations. More...
 
enum  bt_rscs_evt { RSCS_EVT_MEAS_NOTIFY_ENABLE , RSCS_EVT_MEAS_NOTIFY_DISABLE }
 

Functions

int bt_rscs_measurement_send (struct bt_conn *conn, const struct bt_rscs_measurement *measurement)
 Function for sending Running Speed and Cadence measurement.
 
int bt_rscs_init (const struct bt_rscs_init_params *init)
 Function for initializing the Running Speed and Cadence Service.