Modules
Heart Rate Service (HRS)
BLE Services

Definitions and prototypes for the HRS interface. More...

Collaboration diagram for Heart Rate Service (HRS):

## Modules
| Defines
| Enumerations
| Structures
| Typedefs
| Functions

## Detailed Description

Definitions and prototypes for the HRS interface.

The Heart Rate Service exposes heart rate and other data from a Heart Rate Sensor intended for fitness applications. This module implements the Heart Rate Service with the Heart Rate Measurement, Body Sensor Location and Heart Rate Control Point characteristics.

After hrs_init_t variable is initialized, the application must call hrs_service_init() to add the Heart Rate Service and Heart Rate Measurement characteristic to the BLE Stack database. However the value of Heart Rate Measurement characteristic is stored in user space.

If a device supports Body Sensor Location, hrs_init_t::char_mask should be set with the mask HRS_CHAR_BODY_SENSOR_LOC_SUP to expose the Body Sensor Location characteristic. If Energy Expended Field is included in the Heart Rate Measurement characteristic, hrs_init_t::char_mask must be set with HRS_CHAR_ENGY_EXP_SUP.

If an event handler is provided by the application, the Heart Rate Service will pass Heart Rate Service events to the application.

If Notify is enabled, the notification of Heart Rate Measurement characteristic will be sent when hrs_heart_rate_measurement_send() is called.