-
Notifications
You must be signed in to change notification settings - Fork 26
HeartRate Monitor Profile
The heart rate profile has the ability to enable and disable features that the end user may or may not want to implement. Below is a list of flags to enable various features such as specific datapages or sports modes. All "create" callbacks must be handled if not mentioned below.
- ANTPLUS_HEARTRATE_FLAGS_CUMULATIVEOPERATINGTIME_SUPPORTED
- ANTPLUS_HEARTRATE_FLAGS_PREVIOUSHEARTBEAT_SUPPORTED
- ANTPLUS_HEARTRATE_FLAGS_EXTENTED_FEATURES
- ANTPLUS_HEARTRATE_FLAGS_BATTERYSTATUS_SUPPORTED
This flag will enable datapage 1 (Cumulative Operating Time) in the background datapage rotation and therefore begin calling the createHeartRateCumulativeOperatingTimeMsg
callback.
This flag will enable datapage 4 (Previous Heart Beat) in the main datapage rotation and therefore begin calling the createHeartRatePreviousHeartBeatMsg
callback. This will replace datapage 0 as the main datapage in the datapage rotation (with the exceptio of swim mode, see below.)
This flag will activate the extended features (sports modes) of the profile. This allows the system to be configured for various activities. This enables support for datapage 6 (Capabilities) and requires the profile to be able to handle ModeSettings messages from the display (via the onModeSettings
callback.) The profile mode can be set via setSportsMode
from within the callback.
If swimming mode is supported then datapage 5 (Swim Interval Summary) must also be enabled via the createHeartRateSwimIntervalSummaryMsg
callback.
This flag will enable datapage 7 (Battery Status) in the background datapage rotation and therefore begin calling the createHeartRateBatteryStatusMsg
callback.