MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/peripheral/ICounter.hh
2024-06-07 11:12:56 +03:00

31 lines
875 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* ICounter.h
*
* Created on: 22 янв. 2020 г.
* Author: user
*/
#ifndef SOURCE_PERIPHERAL_ICOUNTER_HH_
#define SOURCE_PERIPHERAL_ICOUNTER_HH_
#include <stdint.h>
namespace peripheral {
//!Интерфейс взаимодействия с модулями аппаратного счета.
struct ICounter {
//!Функция возвращает количество отсчетов между двумя вызовами.
virtual int32_t getDeltaCounter() = 0;
//!Функция возвращает состояние флага ошибки модуля квадратурного энкодера.
virtual bool isError() const = 0;
//!Функция сбрасывает флаг ошибки квадратурного энкодера.
virtual void resetError() = 0;
};
}
#endif /* SOURCE_PERIPHERAL_ICOUNTER_HH_ */