Public Member Functions
SerialCommunicationInterface Class Reference

#include <serial_communication_interface.h>

Inheritance diagram for SerialCommunicationInterface:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

Definition at line 27 of file serial_communication_interface.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 32 of file serial_communication_interface.h.

Abstract destructor.

Definition at line 39 of file serial_communication_interface.h.


Member Function Documentation

virtual int SerialCommunicationInterface::close_port ( struct termios *  oldtio) [pure virtual]

Method to return the original config to the serial port and close it.

Parameters:
oldtio,structureto configure the serial port.
Returns:
error: -1 or successful: 0.

Implemented in SerialCommunication.

virtual int SerialCommunicationInterface::open_port ( struct termios *  oldtio) [pure virtual]

Method to open and configure the serial port.

Parameters:
oldtio,structureto configure the serial port.
Returns:
error: -1 or successful: 0.

Implemented in SerialCommunication.

virtual int SerialCommunicationInterface::send_character ( unsigned char *  str) [pure virtual]

Method that send characters by the serial port for the at89c2051.

Parameters:
str,stringto send by the serial port.
Returns:
error: -1 or successful: 0.

Implemented in SerialCommunication.

virtual void SerialCommunicationInterface::set_serial_device ( std::string  serial_device) [pure virtual]

Method to set the serial device name.

Parameters:
serial_device,theserial device name.
Returns:

Implemented in SerialCommunication.


The documentation for this class was generated from the following file:


maggie_serial_comm_drivers
Author(s): Raul Perula-Martinez
autogenerated on Mon Sep 14 2015 03:06:42