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

34 lines
1.2 KiB
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.

/*
* IMcuState.h
*
* Created on: 5 дек. 2019 г.
* Author: titov
*/
#ifndef SOURCE_PERIPHERAL_IMCUSTATE_H_
#define SOURCE_PERIPHERAL_IMCUSTATE_H_
namespace peripheral {
struct IMcuState {
//!Тип идентификатора вывода.
typedef unsigned short Id;
//!Тип функции вывода.
typedef unsigned short PinFunction;
virtual bool getPinState( Id id ) const = 0; //!<Функция позволяет получить состояние аппаратного вывода по ид.
virtual bool getPinDirection( Id id ) const = 0; //!<Функция позволяет получить схему включения аппаратного вывода по ид.
virtual bool getPinMode( Id id ) const = 0; //!<Функция позволяет получить режим работы аппаратного вывода по ид.
virtual PinFunction getPinFunction( Id id ) const = 0; //!<Функция позволяет получить функцию периферии аппаратного вывода по ид.
virtual ~IMcuState() = default;
};
}
#endif /* SOURCE_PERIPHERAL_IMCUSTATE_H_ */