/* 
 * File:   KnobEncoderCtrl.h
 * Author: JF
 *
 * Created on November 30, 2018, 7:33 PM
 */

#ifndef KNOBENCODERCTRL_H
#define	KNOBENCODERCTRL_H
#include "define.h"

#define KNOB_DEBOUNCE_TIMEOUT 5    //ms


void KnobDebounceCtrlSM();

enum KnobEncoderCtrlSMStates
{
    KEC_CHECK_BTN_STATE,
    KEC_DEBOUNCE_BTN_STATE,
    KEC_WAIT_FOR_BTN_RST_STATE,
    KEC_WAIT_FOR_TRIGGER_STATE,
    KEC_DEBOUNCE_STATE,
    KEC_WAIT_FOR_RESET_STATE,
    KEC_WAIT_A_LITTLE_MORE_STATE
};



#endif	/* KNOBENCODERCTRL_H */

