Cordio Stack and Cordio Profiles  r2p3-02rel0

Functions

void SvcCpsAddGroup (void)
 Add the services to the attribute server. More...
 
void SvcCpsRemoveGroup (void)
 Remove the services from the attribute server. More...
 
void SvcCpsCbackRegister (attsReadCback_t readCback, attsWriteCback_t writeCback)
 Register callbacks for the service. More...
 

Cycling Power Feature Bits

Cycle Power Feature Bits of the Feature Characteristic.

#define CPP_PPBS_FEATURE_BIT   (1<<0)
 Pedal Power Balance Supported Feature Mask Bit.
 
#define CPP_ATS_FEATURE_BIT   (1<<1)
 Accumulated Torque Supported Feature Mask Bit.
 
#define CPP_WRDS_FEATURE_BIT   (1<<2)
 Wheel Revolution Data Supported Feature Mask Bit.
 
#define CPP_CRDS_FEATURE_BIT   (1<<3)
 Crank Revolution Data Supported Feature Mask Bit.
 
#define CPP_EMS_FEATURE_BIT   (1<<4)
 Extreme Magnitudes Supported Feature Mask Bit.
 
#define CPP_EAS_FEATURE_BIT   (1<<5)
 Extreme Angles Supported Feature Mask Bit.
 
#define CPP_TABDSAS_FEATURE_BIT   (1<<6)
 Top and Bottom Dead Spot Angles Supported Feature Mask Bit.
 
#define CPP_AES_FEATURE_BIT   (1<<7)
 Accumulated Energy Supported Feature Mask Bit.
 
#define CPP_OCIS_FEATURE_BIT   (1<<8)
 Offset Compensation Indicator Supported Feature Mask Bit.
 
#define CPP_OCS_FEATURE_BIT   (1<<9)
 Offset Compensation Supported Feature Mask Bit.
 
#define CPP_CPMCCM_FEATURE_BIT   (1<<10)
 Cycling Power Measurement Characteristic Content Masking Supported Offset Compensation Supported Feature Mask Bit.
 
#define CPP_MSLS_FEATURE_BIT   (1<<11)
 Multiple Sensor Locations Supported Feature Mask Bit.
 
#define CPP_CLAS_FEATURE_BIT   (1<<12)
 Crank Length Adjustment Supported Feature Mask Bit.
 
#define CPP_CHLAS_FEATURE_BIT   (1<<13)
 Chain Length Adjustment Supported Feature Mask Bit.
 
#define CPP_CHWAS_FEATURE_BIT   (1<<14)
 Chain Weight Adjustment Supported Feature Mask Bit.
 
#define CPP_SLAS_FEATURE_BIT   (1<<15)
 Span Length Adjustment Supported Feature Mask Bit.
 
#define CPP_SMC_FEATURE_BIT   (1<<16)
 Sensor Measurement Contex (0: FORCE, 1: TORQUE)
 
#define CPP_IMDS_FEATURE_BIT   (1<<17)
 Instantaneous Measurement Direction Supported.
 
#define CPP_FCDS_FEATURE_BIT   (1<<18)
 Factory Calibration Date Supported Feature Mask Bit.
 
#define CPP_EOCS_FEATURE_BIT   (1<<19)
 Enhanced Offset Compensation Supported Feature Mask Bit.
 
#define CPP_DSS_FEATURE_BIT   (1<<20)
 Distribute System Support Feature Mask Bit.
 
#define CPP_ALL_FEATURES   (0xff)
 TODO: Set to all supported features. More...
 

Cycling Power Service Handles

enum  {
  CPS_SVC_HDL = CPS_START_HDL,
  CPS_CPF_CH_HDL,
  CPS_CPF_HDL,
  CPS_CPM_CH_HDL,
  CPS_CPM_HDL,
  CPS_CPM_CH_CCC_HDL,
  CPS_CPSL_CH_HDL,
  CPS_CPSL_HDL,
  CPS_MAX_HDL
}
 Cycling Power Service Handles. More...
 
#define CPS_START_HDL   0x0400
 Start handle.
 
#define CPS_END_HDL   (CPS_MAX_HDL - 1)
 End handle.
 

Description

Macro Definition Documentation

#define CPP_ALL_FEATURES   (0xff)

TODO: Set to all supported features.

All Supported Feature Mask

Definition at line 63 of file svc_cps.h.

Enumeration Type Documentation

anonymous enum

Cycling Power Service Handles.

Enumerator
CPS_SVC_HDL 

Cycling Power Server Service declaration.

CPS_CPF_CH_HDL 

Cycling Power Feature characteristic.

CPS_CPF_HDL 

Cycling Power Feature.

CPS_CPM_CH_HDL 

Cycling Power Measurement characteristic.

CPS_CPM_HDL 

Cycling Power Measurement.

CPS_CPM_CH_CCC_HDL 

Cycling Power Measurement Client Characteristic Configuration Descriptor.

CPS_CPSL_CH_HDL 

Cycling Power Sensor Location characteristic.

CPS_CPSL_HDL 

Cycling Power Sensor Location.

CPS_MAX_HDL 

Maximum handle.

Definition at line 82 of file svc_cps.h.

83 {
84  CPS_SVC_HDL = CPS_START_HDL, /*!< \brief Cycling Power Server Service declaration */
85  CPS_CPF_CH_HDL, /*!< \brief Cycling Power Feature characteristic */
86  CPS_CPF_HDL, /*!< \brief Cycling Power Feature */
87  CPS_CPM_CH_HDL, /*!< \brief Cycling Power Measurement characteristic */
88  CPS_CPM_HDL, /*!< \brief Cycling Power Measurement */
89  CPS_CPM_CH_CCC_HDL, /*!< \brief Cycling Power Measurement Client Characteristic Configuration Descriptor */
90  CPS_CPSL_CH_HDL, /*!< \brief Cycling Power Sensor Location characteristic */
91  CPS_CPSL_HDL, /*!< \brief Cycling Power Sensor Location */
92  CPS_MAX_HDL /*!< \brief Maximum handle. */
93 };
Cycling Power Feature.
Definition: svc_cps.h:86
#define CPS_START_HDL
Start handle.
Definition: svc_cps.h:74
Maximum handle.
Definition: svc_cps.h:92
Cycling Power Feature characteristic.
Definition: svc_cps.h:85
Cycling Power Sensor Location.
Definition: svc_cps.h:91
Cycling Power Sensor Location characteristic.
Definition: svc_cps.h:90
Cycling Power Server Service declaration.
Definition: svc_cps.h:84
Cycling Power Measurement characteristic.
Definition: svc_cps.h:87
Cycling Power Measurement Client Characteristic Configuration Descriptor.
Definition: svc_cps.h:89
Cycling Power Measurement.
Definition: svc_cps.h:88

Function Documentation

void SvcCpsAddGroup ( void  )

Add the services to the attribute server.

Returns
None.
void SvcCpsRemoveGroup ( void  )

Remove the services from the attribute server.

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

Register callbacks for the service.

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