Modules | Macros
Defines
BLE Services » Cycling Speed and Cadence Service (CSCS)

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

## Macros
#define | CSCS_CONNECTION_MAX
#define | CSCS_MEAS_VAL_LEN_MAX 20
#define | CSCS_FEAT_VAL_LEN_MAX 2
#define | CSCS_SENSOR_LOC_VAL_LEN_MAX 1
#define | CSCS_CTRL_PT_RSP_LEN_MIN 3
#define | CSCS_CTRL_PT_VAL_LEN_MAX (CSCS_CTRL_PT_RSP_LEN_MIN + CSCS_SENSOR_LOC_SUP_NB)
#define | CSCS_ERROR_PROC_IN_PROGRESS 0x80
#define | CSCS_ERROR_CCCD_INVALID 0x81

## Detailed Description

## Macro Definition Documentation

## ◆ CSCS_CONNECTION_MAX

#define CSCS_CONNECTION_MAX

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

Maximum number of CSCS connections.

## ◆ CSCS_CTRL_PT_RSP_LEN_MIN

#define CSCS_CTRL_PT_RSP_LEN_MIN 3

Mimimum length of SC Control Point response value.

## ◆ CSCS_CTRL_PT_VAL_LEN_MAX

#define CSCS_CTRL_PT_VAL_LEN_MAX (CSCS_CTRL_PT_RSP_LEN_MIN + CSCS_SENSOR_LOC_SUP_NB)

Maximum length of SC Control Point value.

## ◆ CSCS_ERROR_CCCD_INVALID

#define CSCS_ERROR_CCCD_INVALID 0x81

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

## ◆ CSCS_ERROR_PROC_IN_PROGRESS

#define CSCS_ERROR_PROC_IN_PROGRESS 0x80

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

## ◆ CSCS_FEAT_VAL_LEN_MAX

#define CSCS_FEAT_VAL_LEN_MAX 2

Maximum length of CSC Feature value.

## ◆ CSCS_MEAS_VAL_LEN_MAX

#define CSCS_MEAS_VAL_LEN_MAX 20

Maximum length of CSC Measurment value.

## ◆ CSCS_SENSOR_LOC_VAL_LEN_MAX

#define CSCS_SENSOR_LOC_VAL_LEN_MAX 1

Maximum length of Sensor Location value.