/* read CTC trim counter direction when reference sync pulse occurred  */
FlagStatus ctc_counter_direction_read(void)
/* read CTC trim counter direction when reference sync pulse occurred  */
FlagStatus ctc_counter_direction_read(void)
{
    if(RESET != (CTC_STAT & CTC_STAT_REFDIR)) {
        return SET;
    } else {
        return RESET;
    }
}