/**@brief Function for tracing common data. * * @param[in] p_common_data Pointer to the common data. */ static void page_16_data_log(ant_sdm_common_data_t const * p_common_data) { #ifdef TRACE_SDM_PAGE_16_ENABLE uint64_t distance = ANT_SDM_DISTANCE_RESCALE(p_common_data->distance); #endif // TRACE_SDM_PAGE_16_ENABLE LOG_PAGE16("Distance %u.%01u m\n\r", (unsigned int)(distance / ANT_SDM_DISTANCE_DISP_PRECISION), (unsigned int)(distance % ANT_SDM_DISTANCE_DISP_PRECISION)); LOG_PAGE16("Strides %u\n\r", (unsigned int)p_common_data->strides); }
static void page16_data_log(ant_bpwr_page16_data_t const * p_page_data) { LOG_PAGE16("event count: %u\n\r", p_page_data->update_event_count); if (p_page_data->pedal_power.byte != 0xFF) { LOG_PAGE16("pedal power: %u %%\n\r", p_page_data->pedal_power.items.distribution); } else { LOG_PAGE16("pedal power: --\n\r"); } LOG_PAGE16("accumulated power: %u W\n\r", p_page_data->accumulated_power); LOG_PAGE16("instantaneous power: %u W\n\r", p_page_data->instantaneous_power); }