Logo Search packages:      
Sourcecode: qmk-groundstation version File versions  Download package

Posix_QextSerialPort Class Reference

Inheritance diagram for Posix_QextSerialPort:

QextSerialBase

List of all members.


Detailed Description

Version:
1.0.0
Author:
Stefan Sander
A cross-platform serial port class. This class encapsulates the POSIX portion of QextSerialPort. The user will be notified of errors and possible portability conflicts at run-time by default - this behavior can be turned off by defining _TTY_NOWARN_ (to turn off all warnings) or _TTY_NOWARN_PORT_ (to turn off portability warnings) in the project. Note that _TTY_NOWARN_ will also turn off portability warnings.

Definition at line 14 of file posix_qextserialport.h.


Public Member Functions

virtual bool atEnd () const
virtual BaudRateType baudRate () const
virtual qint64 bytesAvailable ()
virtual void close ()
virtual void construct ()
virtual DataBitsType dataBits () const
virtual FlowType flowControl () const
virtual void flush ()
virtual bool isSequential () const
virtual ulong lastError () const
virtual ulong lineStatus ()
virtual bool open (OpenMode mode=0)
Posix_QextSerialPortoperator= (const Posix_QextSerialPort &s)
virtual ParityType parity () const
virtual QString portName () const
 Posix_QextSerialPort (const QString &name, const PortSettings &settings)
 Posix_QextSerialPort (const PortSettings &settings)
 Posix_QextSerialPort (const QString &name)
 Posix_QextSerialPort (const Posix_QextSerialPort &s)
 Posix_QextSerialPort ()
virtual qint64 readLine (char *data, qint64 maxSize)
virtual void setBaudRate (BaudRateType)
virtual void setDataBits (DataBitsType)
virtual void setDtr (bool set=true)
virtual void setFlowControl (FlowType)
virtual void setParity (ParityType)
virtual void setPortName (const QString &name)
virtual void setRts (bool set=true)
virtual void setStopBits (StopBitsType)
virtual void setTimeout (ulong, ulong)
virtual qint64 size () const
virtual StopBitsType stopBits () const
virtual void translateError (ulong error)
virtual void ungetChar (char c)
virtual ~Posix_QextSerialPort ()

Protected Member Functions

virtual qint64 readData (char *data, qint64 maxSize)
virtual qint64 writeData (const char *data, qint64 maxSize)

Protected Attributes

ulong lastErr
QString port
struct termios Posix_CommConfig
struct timeval Posix_Copy_Timeout
QFile * Posix_File
struct timeval Posix_Timeout
PortSettings Settings

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

Generated by  Doxygen 1.6.0   Back to index