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

36 lines
728 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.

/*!\file
* \brief \todo Описание файла.
*/
/*
* IUartPort.h
*
* Created on: 10 июн. 2019 г.
* Author: titov
*/
#ifndef SOURCE_PERIPHERAL_IUARTPORT_H_
#define SOURCE_PERIPHERAL_IUARTPORT_H_
#include <cstddef>
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_ */