Generic CAM 0.1-PreAlpha
|
A serial port class for Linux and Windows. More...
#include <SerialPort.h>
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 |
A serial port class for Linux and Windows.
SerialPort::SerialPort | ( | ) |
SerialPort::~SerialPort | ( | ) | [virtual] |
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 | ||
) |
char SerialPort::Error[200] |
bool SerialPort::Opened [protected] |