Definition at line 315 of file qmousepc_qws.cpp.
◆ QWSPcMouseSubHandler_serial()
QWSPcMouseSubHandler_serial::QWSPcMouseSubHandler_serial |
( |
int |
f | ) |
|
|
inline |
◆ initSerial()
void QWSPcMouseSubHandler_serial::initSerial |
( |
| ) |
|
|
inlineprivate |
Definition at line 348 of file qmousepc_qws.cpp.
350 int speed[4] = { B9600, B4800, B2400, B1200 };
352 for (
int n = 0; n < 4; n++) {
◆ setflags()
void QWSPcMouseSubHandler_serial::setflags |
( |
int |
f | ) |
|
|
inlineprotected |
Definition at line 323 of file qmousepc_qws.cpp.
326 if (tcgetattr(
fd, &tty) == -1) {
327 #ifdef QWS_MOUSE_DEBUG 328 perror(
"QWSPcMouseSubHandler_serial: tcgetattr");
331 tty.c_iflag = IGNBRK | IGNPAR;
334 tty.c_cflag = f | CREAD | CLOCAL | HUPCL;
340 if (tcsetattr(
fd, TCSANOW, &tty) == -1) {
341 #ifdef QWS_MOUSE_DEBUG 342 perror(
"QWSPcMouseSubHandler_serial: tcgetattr");
The documentation for this class was generated from the following file: