OSTC Companion  3.0
Companion sofftware for H&W dive computers
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Serial Class Reference

#include <Serial.h>

Inheritance diagram for Serial:
Inheritance graph
[legend]

Public Member Functions

 Serial ()
 
virtual ~Serial ()
 
virtual void open (const QString &port, const QString &type)
 
virtual void close ()
 
virtual void writeByte (unsigned char byte) const
 
virtual unsigned char readByte () const
 
virtual void writeBlock (const unsigned char *ptr, unsigned int size) const
 
virtual unsigned int readBlock (unsigned char *ptr, unsigned int size) const
 
virtual void purge ()
 
virtual void flush () const
 
void writeShort (unsigned short word) const
 
unsigned short readShort () const
 
void writeInt24 (unsigned int int24) const
 
unsigned int readInt24 () const
 
void sleep (int msec) const
 
bool isOpen () const
 

Constructor & Destructor Documentation

Serial::Serial ( )
inline
Serial::~Serial ( )
virtual

Member Function Documentation

void Serial::close ( )
virtual

Reimplemented in SerialTest.

void Serial::flush ( ) const
virtual

Reimplemented in SerialTest.

bool Serial::isOpen ( ) const
inline
void Serial::open ( const QString &  port,
const QString &  type 
)
virtual

Reimplemented in SerialTest.

void Serial::purge ( )
virtual

Reimplemented in SerialTest.

unsigned int Serial::readBlock ( unsigned char *  ptr,
unsigned int  size 
) const
virtual

Reimplemented in SerialTest.

unsigned char Serial::readByte ( ) const
virtual

Reimplemented in SerialTest.

unsigned int Serial::readInt24 ( ) const
unsigned short Serial::readShort ( ) const
void Serial::sleep ( int  msec) const
void Serial::writeBlock ( const unsigned char *  ptr,
unsigned int  size 
) const
virtual

Reimplemented in SerialTest.

void Serial::writeByte ( unsigned char  byte) const
virtual

Reimplemented in SerialTest.

void Serial::writeInt24 ( unsigned int  int24) const
void Serial::writeShort ( unsigned short  word) const

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