#include <serial_communication.h>

Public Member Functions | |
| int | close_port (struct termios *oldtio) |
| Method to return the original config to the serial port and close it. | |
| int | open_port (struct termios *oldtio) |
| Method to open and configure the serial port. | |
| int | send_character (unsigned char *str) |
| Method that send characters by the serial port for the at89c2051. | |
| SerialCommunication () | |
| Empty constructor. | |
| void | set_serial_device (std::string serial_device) |
| Method to set the serial device name. | |
| ~SerialCommunication () | |
| Destructor. | |
Private Attributes | |
| int | _file_descriptor |
| struct termios | _oldtio |
| std::string | _serial_device |
Definition at line 36 of file serial_communication.h.
Empty constructor.
Definition at line 30 of file serial_communication.cpp.
Destructor.
Definition at line 37 of file serial_communication.cpp.
| int SerialCommunication::close_port | ( | struct termios * | oldtio | ) | [virtual] |
Method to return the original config to the serial port and close it.
| oldtio,structure | to configure the serial port. |
Implements SerialCommunicationInterface.
Definition at line 94 of file serial_communication.cpp.
| int SerialCommunication::open_port | ( | struct termios * | oldtio | ) | [virtual] |
Method to open and configure the serial port.
| oldtio,structure | to configure the serial port. |
Implements SerialCommunicationInterface.
Definition at line 50 of file serial_communication.cpp.
| int SerialCommunication::send_character | ( | unsigned char * | str | ) | [virtual] |
Method that send characters by the serial port for the at89c2051.
| str,string | to send by the serial port. |
Implements SerialCommunicationInterface.
Definition at line 110 of file serial_communication.cpp.
| void SerialCommunication::set_serial_device | ( | std::string | serial_device | ) | [virtual] |
Method to set the serial device name.
| serial_device,the | serial device name. |
Implements SerialCommunicationInterface.
Definition at line 43 of file serial_communication.cpp.
int SerialCommunication::_file_descriptor [private] |
Definition at line 80 of file serial_communication.h.
struct termios SerialCommunication::_oldtio [private] |
Definition at line 79 of file serial_communication.h.
std::string SerialCommunication::_serial_device [private] |
Definition at line 77 of file serial_communication.h.