Generic CAM 0.1-PreAlpha

SerialPort Class Reference

A serial port class for Linux and Windows. More...

#include <SerialPort.h>

List of all members.

Public Member Functions

 SerialPort ()
virtual ~SerialPort ()
bool Open (int nPort=2, int nBaud=19200)
bool Open (const char *Port, int nBaud=19200)
bool Close (void)
int ReadData (char *, unsigned int)
int SendData (char *, unsigned int)
int ReadDataWaiting (void)
void FlushData (void)
bool IsOpen (void)

Public Attributes

char Error [200]

Protected Attributes

bool Opened

Detailed Description

A serial port class for Linux and Windows.


Constructor & Destructor Documentation

SerialPort::SerialPort ( )
SerialPort::~SerialPort ( ) [virtual]

Member Function Documentation

bool SerialPort::Close ( void  )
void SerialPort::FlushData ( void  )
bool SerialPort::IsOpen ( void  ) [inline]
bool SerialPort::Open ( const char *  Port,
int  nBaud = 19200 
)
bool SerialPort::Open ( int  nPort = 2,
int  nBaud = 19200 
)
int SerialPort::ReadData ( char *  buffer,
unsigned int  limit 
)
int SerialPort::ReadDataWaiting ( void  )
int SerialPort::SendData ( char *  buffer,
unsigned int  size 
)

Member Data Documentation

char SerialPort::Error[200]
bool SerialPort::Opened [protected]

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