![]() |
nRF5 SDK
v14.2.0
|
Choose documentation: | nRF5 SDK | S112 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API |
This module implements the Heart Rate Monitor ANT+ device profile. The API for this module is available here: Heart Rate Monitor profile
During initialization, the module configures the selected channel and resets the profile data.
The module traces profile-specific information to UART using the logger.
The following configuration options are available at compile time to assist in the development phase of the HRM Receiver implementation:
The above macros must be defined on the project settings level.
The following code snippets show how to initialize the HRM Receiver:
After opening the profile instance channel, the module keeps the profile structure updated.
Three different message periods are supported:
The sample application that uses the Heart Rate Monitor Profile is available here: Receiver
The following code snippets show how to initialize the HRM Transmitter:
After opening the profile instance channel, the module broadcasts the data from the profile structure. The user application should keep this structure updated. Users can configure which main data page is used (page 0 or 4) and whether page 1 is present.
The sample application that uses the Heart Rate Monitor Profile is available here: Transmitter