31#include "../utility/rs232.h"
32#include "../utility/PError.h"
35#if defined (PEBL_LINUX)
52PComPort::PComPort(
unsigned int port,
84 std::cerr <<
"Initiating comport ["<< mPortName<<
"] Return value :["<<out<<
"]\n";
99void PComPort::SetPort(
unsigned int portnum,
unsigned int baud)
104 int bauds[23] ={50,75,110,134,150,200,300,600,1200,1800,2400,4800,9600,19200,38400,57600,115200,230400,
105 460800,500000,576000,921600,1000000};
111 else if(portnum < 22)
122 int bauds[19] ={0,0,110,0,0,0,300,600,1200,0,2400,4800,9600,19200,38400,57600,115200,128000,256000};
135void PComPort::PSendByte(
unsigned char byte)
143int PComPort::GetByte(
unsigned char& out)
153unsigned char PComPort::GetByte()
170Variant PComPort::GetBytes(
int n)
175 out =
new unsigned char[n];
198void PComPort::Close()
207ostream & PComPort::SendToStream(ostream & out)
const
209 out <<
"<Generic Com Port Object>" << flush;
void SignalFatalError(const std::string &message)
void RS232_CloseComport(int)
int RS232_OpenComport(int, int, const char *, int)
int RS232_PollComport(int, unsigned char *, int)
int RS232_SendByte(int, unsigned char)