/* Function for decoding messages received by Bicycle Power sensor message.  */
static void sens_message_decode(ant_bpwr_profile_t *p_profile, uint8_t *p_message_payload)
/* Function for decoding messages received by Bicycle Power sensor message.  */
static void sens_message_decode(ant_bpwr_profile_t *p_profile, uint8_t *p_message_payload)
{
    const ant_bpwr_message_layout_t * p_bpwr_message_payload =
        (ant_bpwr_message_layout_t *)p_message_payload;
    ant_bpwr_page1_data_t page1;
    switch (p_bpwr_message_payload->page_number)
    {
        case ANT_BPWR_PAGE_1:
            ant_bpwr_page_1_decode(p_bpwr_message_payload->page_payload, &page1);
            p_profile->_cb.p_sens_cb->calib_stat = BPWR_SENS_CALIB_REQUESTED;
            p_profile->_cb.p_sens_cb->calib_handler(p_profile, &page1);
            break;
        default:
            break;
    }
}