An interface to a hardware device, such as a serial connection. More...
#include <HardwareInterface.h>
Inherited by Serial.
Public Member Functions | |
virtual bool | Open (char *toOpen)=0 |
virtual bool | Close ()=0 |
virtual int | SendData (char *dataToSend)=0 |
An interface to a hardware device, such as a serial connection.
|
pure virtual |
Closes the open connection to the hardware device
Implemented in Serial.
|
pure virtual |
Opens a connection to the hardware device given by toOpen
toOpen | the handle to the hardware device |
Implemented in Serial.
|
pure virtual |
Sends the data given by dataToSend to the hardware device via the open connection
dataToSend | the data to be sent to the hardware device in a C string |
Implemented in Serial.