Modules | Macros
Defines
BLE Services » Running Speed and Cadence Service (RSCS)

## Modules
| Characteristics Mask
| Bit masks for the initialization of rscs_init_t::char_mask.
| Measurement Flag Bits
| Running Speed and Cadence Measurement Flags.
| Feature Bits
| Running Speed and Cadence Service feature bits.

## Macros
#define | RSCS_CONNECTION_MAX
| Maximum number of Running Speed and Cadence Service connections. More...
#define | RSCS_MEAS_VAL_LEN_MAX 20
| Maximum length of RSC measurement value. More...
#define | RSCS_FEAT_VAL_LEN_MAX 2
| Maximum length of RSC Feature value. More...
#define | RSCS_SENSOR_LOC_VAL_LEN_MAX 1
| Maximum length of RSC Sensor Location value. More...
#define | RSCS_CTRL_PT_RSP_LEN_MIN 3
| Mimimum length of SC Control Point responce value. More...
#define | RSCS_CTRL_PT_VAL_LEN_MAX (RSCS_CTRL_PT_RSP_LEN_MIN + RSCS_SENSOR_LOC_SUP_NB)
| Maximum length of SC Control Point value. More...
#define | RSCS_ERROR_PROC_IN_PROGRESS 0x80
| Error code: A previously triggered SC Control Point operation is still in progress. More...
#define | RSCS_ERROR_CCCD_INVALID 0x81
| Error code: The Client Characteristic Configuration descriptor is not configured. More...

## Detailed Description

## Macro Definition Documentation

## ◆ RSCS_CONNECTION_MAX

#define RSCS_CONNECTION_MAX

Value:
(10 < CFG_MAX_CONNECTIONS ?\
10 : CFG_MAX_CONNECTIONS)

Maximum number of Running Speed and Cadence Service connections.

Definition at line 73 of file rscs.h.

## ◆ RSCS_CTRL_PT_RSP_LEN_MIN

#define RSCS_CTRL_PT_RSP_LEN_MIN 3

Mimimum length of SC Control Point responce value.

Definition at line 77 of file rscs.h.

## ◆ RSCS_CTRL_PT_VAL_LEN_MAX

#define RSCS_CTRL_PT_VAL_LEN_MAX (RSCS_CTRL_PT_RSP_LEN_MIN + RSCS_SENSOR_LOC_SUP_NB)

Maximum length of SC Control Point value.

Definition at line 78 of file rscs.h.

## ◆ RSCS_ERROR_CCCD_INVALID

#define RSCS_ERROR_CCCD_INVALID 0x81

Error code: The Client Characteristic Configuration descriptor is not configured.

Definition at line 81 of file rscs.h.

## ◆ RSCS_ERROR_PROC_IN_PROGRESS

#define RSCS_ERROR_PROC_IN_PROGRESS 0x80

Error code: A previously triggered SC Control Point operation is still in progress.

Definition at line 80 of file rscs.h.

## ◆ RSCS_FEAT_VAL_LEN_MAX

#define RSCS_FEAT_VAL_LEN_MAX 2

Maximum length of RSC Feature value.

Definition at line 75 of file rscs.h.

## ◆ RSCS_MEAS_VAL_LEN_MAX

#define RSCS_MEAS_VAL_LEN_MAX 20

Maximum length of RSC measurement value.

Definition at line 74 of file rscs.h.

## ◆ RSCS_SENSOR_LOC_VAL_LEN_MAX

#define RSCS_SENSOR_LOC_VAL_LEN_MAX 1

Maximum length of RSC Sensor Location value.

Definition at line 76 of file rscs.h.