semf
communicationhardware.h
Go to the documentation of this file.
1
10#ifndef SEMF_COMMUNICATION_COMMUNICATIONHARDWARE_H_
11#define SEMF_COMMUNICATION_COMMUNICATIONHARDWARE_H_
12
15
16namespace semf
17{
23{
24public:
26 enum class Type
27 {
28 SynchronousMaster = 1,
29 SynchronousSlave,
30 Asynchronous,
31 };
33 enum class Frame : uint8_t
34 {
35 First = 0x01,
36 Next = 0x08,
37 Last = 0x10,
38 FirstAndLast = 0x11
39 };
40
41 virtual ~CommunicationHardware() = default;
42
44 virtual void init() = 0;
46 virtual void deinit() = 0;
51 virtual Type type() const = 0;
56 virtual void setFrame(Frame frame) = 0;
57};
58} /* namespace semf*/
59#endif /* SEMF_COMMUNICATION_COMMUNICATIONHARDWARE_H_ */
This interface standardized the read and write interface between the communication hardware like CAN,...
virtual ~CommunicationHardware()=default
virtual Type type() const =0
Returns the hardware type.
virtual void setFrame(Frame frame)=0
Sets the selected usage of start and stop condition.
This interface standardized the read and write interface for communication hardware like CAN,...
Definition: communication.h:25