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

Functions

void SvcRscsAddGroup (void)
 Add the services to the attribute server. More...
 
void SvcRscsRemoveGroup (void)
 Remove the services from the attribute server. More...
 
void SvcRscsCbackRegister (attsReadCback_t readCback, attsWriteCback_t writeCback)
 Register callbacks for the service. More...
 

RSC Feature Bits

Running Speed and Cadence Feature Bits of the Feature Characteristic

#define RSCS_ISLMS_FEATURE_BIT   (1<<0)
 Instantaneous Stride Length Measurement Supported Feature Mask Bit.
 
#define RSCS_TDMS_FEATURE_BIT   (1<<1)
 Total Distance Measurement Supported Feature Mask Bit.
 
#define RSCS_WRSS_FEATURE_BIT   (1<<2)
 Walking or Running Status Supported Feature Mask Bit.
 
#define RSCS_CPS_FEATURE_BIT   (1<<3)
 Calibration Procedure Supported Feature Mask Bit.
 
#define RSCS_MSLS_FEATURE_BIT   (1<<4)
 Multiple Sensor Locations Supporte Feature Mask Bit.
 
#define RSCS_ALL_FEATURES   (0x7)
 TODO: Set to all supported features. More...
 

Running Speed and Cadence Service Handles

enum  {
  RSCS_SVC_HDL = RSCS_START_HDL,
  RSCS_RSF_CH_HDL,
  RSCS_RSF_HDL,
  RSCS_RSM_CH_HDL,
  RSCS_RSM_HDL,
  RSCS_RSM_CH_CCC_HDL,
  RSCS_SL_CH_HDL,
  RSCS_SL_HDL,
  RSCS_MAX_HDL
}
 Running Speed Service Handles. More...
 
#define RSCS_START_HDL   0x04A0
 Start handle.
 
#define RSCS_END_HDL   (RSCS_MAX_HDL - 1)
 End handle.
 

Description

Macro Definition Documentation

#define RSCS_ALL_FEATURES   (0x7)

TODO: Set to all supported features.

All Supported Feature Mask

Definition at line 47 of file svc_rscs.h.

Enumeration Type Documentation

anonymous enum

Running Speed Service Handles.

Enumerator
RSCS_SVC_HDL 

Running Speed Server Service declaration.

RSCS_RSF_CH_HDL 

Running Speed Feature characteristic.

RSCS_RSF_HDL 

Running Speed Feature.

RSCS_RSM_CH_HDL 

Running Speed Measurement characteristic.

RSCS_RSM_HDL 

Running Speed Measurement.

RSCS_RSM_CH_CCC_HDL 

Running Speed Measurement Client Characteristic Configuration Descriptor.

RSCS_SL_CH_HDL 

Running Speed Sensor Location characteristic.

RSCS_SL_HDL 

Running Speed Sensor Location.

RSCS_MAX_HDL 

Maximum handle.

Definition at line 66 of file svc_rscs.h.

67 {
68  RSCS_SVC_HDL = RSCS_START_HDL, /*!< \brief Running Speed Server Service declaration */
69  RSCS_RSF_CH_HDL, /*!< \brief Running Speed Feature characteristic */
70  RSCS_RSF_HDL, /*!< \brief Running Speed Feature */
71  RSCS_RSM_CH_HDL, /*!< \brief Running Speed Measurement characteristic */
72  RSCS_RSM_HDL, /*!< \brief Running Speed Measurement */
73  RSCS_RSM_CH_CCC_HDL, /*!< \brief Running Speed Measurement Client Characteristic Configuration Descriptor */
74  RSCS_SL_CH_HDL, /*!< \brief Running Speed Sensor Location characteristic */
75  RSCS_SL_HDL, /*!< \brief Running Speed Sensor Location */
76  RSCS_MAX_HDL /*!< \brief Maximum handle. */
77 };
#define RSCS_START_HDL
Start handle.
Definition: svc_rscs.h:58
Running Speed Feature characteristic.
Definition: svc_rscs.h:69
Running Speed Sensor Location.
Definition: svc_rscs.h:75
Running Speed Measurement characteristic.
Definition: svc_rscs.h:71
Running Speed Measurement.
Definition: svc_rscs.h:72
Running Speed Server Service declaration.
Definition: svc_rscs.h:68
Running Speed Sensor Location characteristic.
Definition: svc_rscs.h:74
Running Speed Measurement Client Characteristic Configuration Descriptor.
Definition: svc_rscs.h:73
Maximum handle.
Definition: svc_rscs.h:76
Running Speed Feature.
Definition: svc_rscs.h:70

Function Documentation

void SvcRscsAddGroup ( void  )

Add the services to the attribute server.

Returns
None.
void SvcRscsRemoveGroup ( void  )

Remove the services from the attribute server.

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

Register callbacks for the service.

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