/*!\file * \brief \todo Описание файла. */ /* * IUartPort.h * * Created on: 10 июн. 2019 г. * Author: titov */ #ifndef SOURCE_PERIPHERAL_IUARTPORT_H_ #define SOURCE_PERIPHERAL_IUARTPORT_H_ #include namespace peripheral { struct IUartPort { virtual bool send( const char *, std::size_t size ) = 0; virtual bool receive( char *, std::size_t size ) = 0; virtual bool isDataSent() const = 0; virtual bool isRecieptionError() const = 0; virtual void reset() = 0; virtual std::size_t transmitBuffCapacity() const = 0; virtual std::size_t receiveBuffCapacity() const = 0; //virtual ~IUartPort() = delete; }; } #endif /* SOURCE_PERIPHERAL_IUARTPORT_H_ */