/* read CTC counter capture value when reference sync pulse occurred  */
uint16_t ctc_counter_capture_value_read(void)
/* read CTC counter capture value when reference sync pulse occurred  */
uint16_t ctc_counter_capture_value_read(void)
{
    uint16_t capture_value = 0U;
    capture_value = (uint16_t)((CTC_STAT & CTC_STAT_REFCAP)>> CTC_REFCAP_OFFSET);
    return (capture_value);
}