Открытые типы |
enum | Speed {
ComSpeed0 = B0,
ComSpeed50 = B50,
ComSpeed75 = B75,
ComSpeed110 = B110,
ComSpeed134 = B134,
ComSpeed150 = B150,
ComSpeed200 = B200,
ComSpeed300 = B300,
ComSpeed600 = B600,
ComSpeed1200 = B1200,
ComSpeed1800 = B1800,
ComSpeed2400 = B2400,
ComSpeed4800 = B4800,
ComSpeed9600 = B9600,
ComSpeed19200 = B19200,
ComSpeed38400 = B38400,
ComSpeed57600 = B57600,
ComSpeed115200 = B115200,
ComSpeed230400 = B230400,
ComSpeed460800 = B460800,
ComSpeed500000 = B500000,
ComSpeed576000 = B576000,
ComSpeed921600 = B921600,
ComSpeed1000000 = B1000000,
ComSpeed1152000 = B1152000,
ComSpeed1500000 = B1500000,
ComSpeed2000000 = B2000000,
ComSpeed2500000 = B2500000,
ComSpeed3000000 = B3000000,
ComSpeed3500000 = B3500000,
ComSpeed4000000 = B4000000
} |
enum | Parity {
Odd,
Even,
Space,
Mark,
NoParity
} |
enum | CharacterSize { CSize5 = CS5,
CSize6 = CS6,
CSize7 = CS7,
CSize8 = CS8
} |
enum | StopBits { OneBit = 1,
OneAndHalfBits = 2,
TwoBits = 3
} |
Открытые члены |
| ComPort (const std::string comDevice, bool nocreate=false) |
void | setSpeed (Speed s) |
void | setSpeed (std::string speed) |
Speed | getSpeed () |
void | setParity (Parity) |
void | setCharacterSize (CharacterSize) |
void | setStopBits (StopBits sBit) |
virtual void | setTimeout (int timeout) |
void | setWaiting (bool waiting) |
int | getTimeout () |
virtual unsigned char | receiveByte () |
virtual void | sendByte (unsigned char x) |
virtual int | receiveBlock (unsigned char *msg, int len) |
virtual int | sendBlock (unsigned char *msg, int len) |
void | setBlocking (bool blocking) |
virtual void | cleanupChannel () |
virtual void | reopen () |
Открытые статические члены |
static Speed | getSpeed (const std::string s) |
static std::string | getSpeed (Speed s) |
Защищенные члены |
void | openPort () |
virtual unsigned char | m_receiveByte (bool wait) |
Защищенные данные |
unsigned char | buf [BufSize] |
int | curSym |
int | bufLength |
int | fd |
int | uTimeout |
bool | waiting |
Speed | speed |
std::string | dev |
Статические защищенные данные |
static const int | BufSize = 8192 |