Cordio Stack and Cordio Profiles  r2p3-02rel0
Cycling Speed And Cadence Service

Functions

void SvcCscsAddGroup (void)
 Add the services to the attribute server. More...
 
void SvcCscsRemoveGroup (void)
 Remove the services from the attribute server. More...
 
void SvcCscsCbackRegister (attsReadCback_t readCback, attsWriteCback_t writeCback)
 Register callbacks for the service. More...
 

CSC Feature Bits

Cycle Speed and Cadence Feature Bits of the Feature Characteristic.

#define CSCS_WRDS_FEATURE_BIT   (1<<0)
 Wheel Revolution Data Supported Feature Mask Bit.
 
#define CSCS_CRDS_FEATURE_BIT   (1<<1)
 Crank Revolution Data Supported Feature Mask Bit.
 
#define CSCS_MSLS_FEATURE_BIT   (1<<2)
 Multiple Sensor Locations Supporte Feature Mask Bit.
 
#define CSCS_ALL_FEATURES   (0x3)
 TODO: Set to all supported features. More...
 

Cycling Speed and Cadence Service Handles

enum  {
  CSCS_SVC_HDL = CSCS_START_HDL,
  CSCS_CSF_CH_HDL,
  CSCS_CSF_HDL,
  CSCS_CSM_CH_HDL,
  CSCS_CSM_HDL,
  CSCS_CSM_CH_CCC_HDL,
  CSCS_SL_CH_HDL,
  CSCS_SL_HDL,
  CSCS_MAX_HDL
}
 Cycling Speed Service Handles. More...
 
#define CSCS_START_HDL   0x0450
 Start handle.
 
#define CSCS_END_HDL   (CSCS_MAX_HDL - 1)
 End handle.
 

Description

Macro Definition Documentation

#define CSCS_ALL_FEATURES   (0x3)

TODO: Set to all supported features.

All Supported Feature Mask

Definition at line 46 of file svc_cscs.h.

Enumeration Type Documentation

anonymous enum

Cycling Speed Service Handles.

Enumerator
CSCS_SVC_HDL 

Cycling Speed Server Service declaration.

CSCS_CSF_CH_HDL 

Cycling Speed Feature characteristic.

CSCS_CSF_HDL 

Cycling Speed Feature.

CSCS_CSM_CH_HDL 

Cycling Speed Measurement characteristic.

CSCS_CSM_HDL 

Cycling Speed Measurement.

CSCS_CSM_CH_CCC_HDL 

Cycling Speed Measurement Client Characteristic Configuration Descriptor.

CSCS_SL_CH_HDL 

Cycling Speed Sensor Location characteristic.

CSCS_SL_HDL 

Cycling Speed Sensor Location.

CSCS_MAX_HDL 

Maximum handle.

Definition at line 65 of file svc_cscs.h.

66 {
67  CSCS_SVC_HDL = CSCS_START_HDL, /*!< \brief Cycling Speed Server Service declaration */
68  CSCS_CSF_CH_HDL, /*!< \brief Cycling Speed Feature characteristic */
69  CSCS_CSF_HDL, /*!< \brief Cycling Speed Feature */
70  CSCS_CSM_CH_HDL, /*!< \brief Cycling Speed Measurement characteristic */
71  CSCS_CSM_HDL, /*!< \brief Cycling Speed Measurement */
72  CSCS_CSM_CH_CCC_HDL, /*!< \brief Cycling Speed Measurement Client Characteristic Configuration Descriptor */
73  CSCS_SL_CH_HDL, /*!< \brief Cycling Speed Sensor Location characteristic */
74  CSCS_SL_HDL, /*!< \brief Cycling Speed Sensor Location */
75  CSCS_MAX_HDL /*!< \brief Maximum handle. */
76 };
Cycling Speed Feature.
Definition: svc_cscs.h:69
Maximum handle.
Definition: svc_cscs.h:75
Cycling Speed Sensor Location characteristic.
Definition: svc_cscs.h:73
Cycling Speed Server Service declaration.
Definition: svc_cscs.h:67
Cycling Speed Measurement characteristic.
Definition: svc_cscs.h:70
#define CSCS_START_HDL
Start handle.
Definition: svc_cscs.h:57
Cycling Speed Feature characteristic.
Definition: svc_cscs.h:68
Cycling Speed Measurement Client Characteristic Configuration Descriptor.
Definition: svc_cscs.h:72
Cycling Speed Measurement.
Definition: svc_cscs.h:71
Cycling Speed Sensor Location.
Definition: svc_cscs.h:74

Function Documentation

void SvcCscsAddGroup ( void  )

Add the services to the attribute server.

Returns
None.
void SvcCscsRemoveGroup ( void  )

Remove the services from the attribute server.

Returns
None.
void SvcCscsCbackRegister ( attsReadCback_t  readCback,
attsWriteCback_t  writeCback 
)

Register callbacks for the service.

Parameters
readCbackRead callback function.
writeCbackWrite callback function.
Returns
None.