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

34 lines
803 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.

/*
* ISerialCommunication.h
*
* Created on: 3 дек. 2018 г.
* Author: titov
*/
#ifndef SOURCE_DRIVER_ISLIPCOMMUNICATION_H_
#define SOURCE_DRIVER_ISLIPCOMMUNICATION_H_
#include "IDataLink.hh"
#include <utility>
namespace driver {
struct ISlipCommunication : public driver::IDataLink {
virtual std::pair<bool, unsigned short> isPacketAvailable() const = 0;
virtual std::size_t packetSize() const = 0;
virtual bool sendHead( unsigned short id, unsigned short size ) noexcept = 0;
virtual bool sendEnd() noexcept = 0;
virtual bool isPacketSent() const = 0;
virtual void recieveReset() = 0;
virtual std::size_t transmitBuffCapacity() const = 0;
virtual std::size_t receiveBuffCapacity() const = 0;
};
}
#endif /* SOURCE_DRIVER_ISLIPCOMMUNICATION_H_ */