34 lines
947 B
C++
34 lines
947 B
C++
/*
|
|
* 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_ */
|