nRF5 SDK v13.0.0
Macros
Heart Rate Monitor profile utilities

This module implements utilities for the Heart Rate Monitor profile. More...

Macros

#define ANT_HRM_OPERATING_TIME_UNIT   2u
 Unit for HRM operating time. More...
 
#define ANT_HRM_OPERATING_SECONDS(OPERATING_TIME)   (((OPERATING_TIME) * ANT_HRM_OPERATING_TIME_UNIT) % 60)
 This macro should be used to get the seconds part of the operating time.
 
#define ANT_HRM_OPERATING_MINUTES(OPERATING_TIME)   ((((OPERATING_TIME) * ANT_HRM_OPERATING_TIME_UNIT) / 60) % 60)
 This macro should be used to get the minutes part of the operating time.
 
#define ANT_HRM_OPERATING_HOURS(OPERATING_TIME)   ((((OPERATING_TIME) * ANT_HRM_OPERATING_TIME_UNIT) / (60 * 60)) % 24)
 This macro should be used to get the hours part of the operating time.
 
#define ANT_HRM_OPERATING_DAYS(OPERATING_TIME)   ((((OPERATING_TIME) * ANT_HRM_OPERATING_TIME_UNIT) / (60 * 60)) / 24)
 This macro should be used to get the days part of the operating time.
 
#define ANT_HRM_BEAT_TIME_COUNTS_PER_SEC   1024u
 Number of HRM beat time counts per second. More...
 
#define ANT_HRM_BEAT_TIME_PRECISION   1000u
 Beat time display required precision. More...
 
#define ANT_HRM_BEAT_TIME_SEC(BEAT_TIME)   ((BEAT_TIME) / ANT_HRM_BEAT_TIME_COUNTS_PER_SEC)
 This macro should be used to get the seconds part of the HRM beat time.
 
#define ANT_HRM_BEAT_TIME_MSEC(BEAT_TIME)
 This macro should be used to get the milliseconds part of the HRM beat time. More...
 

Detailed Description

This module implements utilities for the Heart Rate Monitor profile.

Macro Definition Documentation

#define ANT_HRM_BEAT_TIME_COUNTS_PER_SEC   1024u

Number of HRM beat time counts per second.

According to the ANT HRM specification, the beat time unit is 1/1024 of a second.

#define ANT_HRM_BEAT_TIME_MSEC (   BEAT_TIME)
Value:

This macro should be used to get the milliseconds part of the HRM beat time.

#define ANT_HRM_BEAT_TIME_PRECISION   1000u

Beat time display required precision.

This value is used to decode the number of milliseconds.

#define ANT_HRM_OPERATING_TIME_UNIT   2u

Unit for HRM operating time.

According to the ANT HRM specification, the operating time unit is 2 seconds.


Documentation feedback | Developer Zone | Subscribe | Updated