Cordio Stack and Cordio Profiles  r2p3-02rel0

Functions

void SvcHrsAddGroup (void)
 Add the services to the attribute server. More...
 
void SvcHrsRemoveGroup (void)
 Remove the services from the attribute server. More...
 
void SvcHrsCbackRegister (attsReadCback_t readCback, attsWriteCback_t writeCback)
 Register callbacks for the service. More...
 

Heart Rate Error Codes

#define HRS_ERR_CP_NOT_SUP   0x80
 Control Point value not supported.
 

Heart Rate Service Handles

enum  {
  HRS_SVC_HDL = HRS_START_HDL,
  HRS_HRM_CH_HDL,
  HRS_HRM_HDL,
  HRS_HRM_CH_CCC_HDL,
  HRS_SL_CH_HDL,
  HRS_SL_HDL,
  HRS_CP_CH_HDL,
  HRS_CP_HDL,
  HRS_MAX_HDL
}
 Heart Rate Service Handles. More...
 
#define HRS_START_HDL   0x20
 Start handle.
 
#define HRS_END_HDL   (HRS_MAX_HDL - 1)
 End handle.
 

Description

Enumeration Type Documentation

anonymous enum

Heart Rate Service Handles.

Enumerator
HRS_SVC_HDL 

Heart rate service declaration.

HRS_HRM_CH_HDL 

Heart rate measurement characteristic.

HRS_HRM_HDL 

Heart rate measurement.

HRS_HRM_CH_CCC_HDL 

Heart rate measurement client characteristic configuration.

HRS_SL_CH_HDL 

Body sensor location characteristic.

HRS_SL_HDL 

Body sensor location.

HRS_CP_CH_HDL 

Heart rate control point characteristic.

HRS_CP_HDL 

Heart rate control point.

HRS_MAX_HDL 

Maximum handle.

Definition at line 57 of file svc_hrs.h.

58 {
59  HRS_SVC_HDL = HRS_START_HDL, /*!< \brief Heart rate service declaration */
60  HRS_HRM_CH_HDL, /*!< \brief Heart rate measurement characteristic */
61  HRS_HRM_HDL, /*!< \brief Heart rate measurement */
62  HRS_HRM_CH_CCC_HDL, /*!< \brief Heart rate measurement client characteristic configuration */
63  HRS_SL_CH_HDL, /*!< \brief Body sensor location characteristic */
64  HRS_SL_HDL, /*!< \brief Body sensor location */
65  HRS_CP_CH_HDL, /*!< \brief Heart rate control point characteristic */
66  HRS_CP_HDL, /*!< \brief Heart rate control point */
67  HRS_MAX_HDL /*!< \brief Maximum handle. */
68 };
Body sensor location characteristic.
Definition: svc_hrs.h:63
Maximum handle.
Definition: svc_hrs.h:67
Heart rate control point characteristic.
Definition: svc_hrs.h:65
Heart rate measurement.
Definition: svc_hrs.h:61
Heart rate control point.
Definition: svc_hrs.h:66
Body sensor location.
Definition: svc_hrs.h:64
Heart rate measurement client characteristic configuration.
Definition: svc_hrs.h:62
Heart rate measurement characteristic.
Definition: svc_hrs.h:60
Heart rate service declaration.
Definition: svc_hrs.h:59
#define HRS_START_HDL
Start handle.
Definition: svc_hrs.h:49

Function Documentation

void SvcHrsAddGroup ( void  )

Add the services to the attribute server.

Returns
None.
void SvcHrsRemoveGroup ( void  )

Remove the services from the attribute server.

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

Register callbacks for the service.

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