#include <serial_communication_interface.h>

Public Member Functions | |
| virtual int | close_port (struct termios *oldtio)=0 |
| Method to return the original config to the serial port and close it. | |
| virtual int | open_port (struct termios *oldtio)=0 |
| Method to open and configure the serial port. | |
| virtual int | send_character (unsigned char *str)=0 |
| Method that send characters by the serial port for the at89c2051. | |
| SerialCommunicationInterface () | |
| Constructor. | |
| virtual void | set_serial_device (std::string serial_device)=0 |
| Method to set the serial device name. | |
| virtual | ~SerialCommunicationInterface () |
| Abstract destructor. | |
Definition at line 27 of file serial_communication_interface.h.
Constructor.
Definition at line 32 of file serial_communication_interface.h.
| virtual SerialCommunicationInterface::~SerialCommunicationInterface | ( | ) | [inline, virtual] |
Abstract destructor.
Definition at line 39 of file serial_communication_interface.h.
| virtual int SerialCommunicationInterface::close_port | ( | struct termios * | oldtio | ) | [pure virtual] |
Method to return the original config to the serial port and close it.
| oldtio,structure | to configure the serial port. |
Implemented in SerialCommunication.
| virtual int SerialCommunicationInterface::open_port | ( | struct termios * | oldtio | ) | [pure virtual] |
Method to open and configure the serial port.
| oldtio,structure | to configure the serial port. |
Implemented in SerialCommunication.
| virtual int SerialCommunicationInterface::send_character | ( | unsigned char * | str | ) | [pure virtual] |
Method that send characters by the serial port for the at89c2051.
| str,string | to send by the serial port. |
Implemented in SerialCommunication.
| virtual void SerialCommunicationInterface::set_serial_device | ( | std::string | serial_device | ) | [pure virtual] |
Method to set the serial device name.
| serial_device,the | serial device name. |
Implemented in SerialCommunication.