diff options
author | Olli Savia <ops@iki.fi> | 2006-02-22 17:33:14 +0000 |
---|---|---|
committer | Olli Savia <ops@iki.fi> | 2006-02-22 17:33:14 +0000 |
commit | a434870eb25f64bd8e34cda24dbbed2cbc3eb28c (patch) | |
tree | 94999f7b5e665328e017fddb6f440b541254f637 /examples | |
parent | 7821706fabba5116f11158e2a0d6a00c177b56ee (diff) | |
download | ATCD-a434870eb25f64bd8e34cda24dbbed2cbc3eb28c.tar.gz |
ChangeLogTag: Wed Feb 22 17:26:01 UTC 2006 Olli Savia <ops@iki.fi>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/IPC_SAP/DEV_SAP/reader/reader.cpp | 18 | ||||
-rw-r--r-- | examples/IPC_SAP/DEV_SAP/writer/writer.cpp | 17 |
2 files changed, 26 insertions, 9 deletions
diff --git a/examples/IPC_SAP/DEV_SAP/reader/reader.cpp b/examples/IPC_SAP/DEV_SAP/reader/reader.cpp index a6f81429dc4..b0ecbc77c4d 100644 --- a/examples/IPC_SAP/DEV_SAP/reader/reader.cpp +++ b/examples/IPC_SAP/DEV_SAP/reader/reader.cpp @@ -2,7 +2,6 @@ #include "ace/DEV_Addr.h" #include "ace/DEV_Connector.h" -#include "ace/DEV_IO.h" #include "ace/TTY_IO.h" ACE_RCSID(reader, reader, "$Id$") @@ -27,13 +26,22 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) ACE_TTY_IO::Serial_Params myparams; myparams.baudrate = 9600; - myparams.parityenb = 1; + myparams.xonlim = 0; + myparams.xofflim = 0; + myparams.readmincharacters = 0; + myparams.readtimeoutmsec = 10000; + myparams.parityenb = true; myparams.paritymode = "EVEN"; + myparams.ctsenb = false; + myparams.rtsenb = false; + myparams.xinenb = false; + myparams.xoutenb = false; + myparams.modem = false; + myparams.rcvenb = true; + myparams.dsrenb = false; + myparams.dtrdisable = false; myparams.databits = 8; myparams.stopbits = 1; - myparams.readtimeoutmsec = 10000; - myparams.ctsenb = 0; - myparams.rcvenb = 1; if (read_dev.control (ACE_TTY_IO::SETPARAMS, &myparams) == -1) diff --git a/examples/IPC_SAP/DEV_SAP/writer/writer.cpp b/examples/IPC_SAP/DEV_SAP/writer/writer.cpp index b22b40dfe05..0071d709954 100644 --- a/examples/IPC_SAP/DEV_SAP/writer/writer.cpp +++ b/examples/IPC_SAP/DEV_SAP/writer/writer.cpp @@ -25,13 +25,22 @@ int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) ACE_TTY_IO::Serial_Params myparams; myparams.baudrate = 9600; - myparams.parityenb = 1; + myparams.xonlim = 0; + myparams.xofflim = 0; + myparams.readmincharacters = 0; + myparams.readtimeoutmsec = 10000; + myparams.parityenb = true; myparams.paritymode = "EVEN"; + myparams.ctsenb = false; + myparams.rtsenb = false; + myparams.xinenb = false; + myparams.xoutenb = false; + myparams.modem = false; + myparams.rcvenb = true; + myparams.dsrenb = false; + myparams.dtrdisable = false; myparams.databits = 8; myparams.stopbits = 1; - myparams.readtimeoutmsec = 200; - myparams.ctsenb = 0; - myparams.rcvenb = 1; if (write_dev.control (ACE_TTY_IO::SETPARAMS, &myparams) == -1) |