You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
static void ant_hrm_evt_handler(ant_hrm_profile_t * p_profile, ant_hrm_evt_t event)
{
nrf_pwr_mgmt_feed();
switch (event)
{
case ANT_HRM_PAGE_0_UPDATED:
/* fall through */
case ANT_HRM_PAGE_1_UPDATED:
/* fall through */
case ANT_HRM_PAGE_2_UPDATED:
/* fall through */
case ANT_HRM_PAGE_3_UPDATED:
/* fall through */
case ANT_HRM_PAGE_4_UPDATED:
NRF_LOG_INFO("Page was updated");
break;
default:
break;
}
}
NRF_LOG_INFO("Heart beat count: %u", (unsigned int)p_page_data->beat_count);
NRF_LOG_INFO("Computed heart rate: %u",
(unsigned int) p_page_data->computed_heart_rate);
NRF_LOG_INFO("Heart beat event time: %u.us\r\n\n",
(unsigned int) ANT_HRM_BEAT_TIME_SEC(p_page_data->beat_time),
(unsigned int) ANT_HRM_BEAT_TIME_MSEC(p_page_data->beat_time));