HiveMind
ICommInterface.h
Go to the documentation of this file.
1 #ifndef __ICOMMINTERFACE_H_
2 #define __ICOMMINTERFACE_H_
3 
4 #include <pheromones/IProtobufStream.h>
5 
6 enum class ConnectionType { Ethernet, USB, SPI };
7 
9  public:
10  virtual ~ICommInterface() = default;
11 
15  virtual bool isConnected() const = 0;
16 
19  virtual ConnectionType getType() const = 0;
20 };
21 
22 #endif // __ICOMMINTERFACE_H_
ConnectionType
ConnectionType
Definition: ICommInterface.h:6
ICommInterface::isConnected
virtual bool isConnected() const =0
Tells if interface is connected and functionning.
IProtobufStream
ConnectionState::USB
@ USB
ICommInterface::getType
virtual ConnectionType getType() const =0
Tells the type of the connection interface.
ICommInterface::~ICommInterface
virtual ~ICommInterface()=default
ConnectionType::SPI
@ SPI
ICommInterface
Definition: ICommInterface.h:8
ConnectionState::Ethernet
@ Ethernet