From: Marc D. <ma...@us...> - 2005-02-14 20:58:15
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14845/include/pclasses/System Modified Files: SerialDevice.h Log Message: added set/get for CharSize Index: SerialDevice.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/System/SerialDevice.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SerialDevice.h 14 Feb 2005 20:25:59 -0000 1.1 +++ SerialDevice.h 14 Feb 2005 20:58:05 -0000 1.2 @@ -59,6 +59,47 @@ BaudRate230400 }; + enum CharSize { + CharSize5, + CharSize6, + CharSize7, + CharSize8, + DefaultCharSize + }; + + enum Parity { + ParityEven, + ParityOdd, + ParityNone + }; + + enum FlowControl { + FlowControlHard, + FlowControlSoft + }; + + enum InputMode { + IgnoreBreak, + IgnoreParityError + }; + + enum OutputMode { + CRtoNL, + IgnoreNL, + IgnoreCR + }; + + enum ControlMode { + EnableReceiver, + LocalLine, + HangupLine + }; + + enum LocalMode { + Echo, + NoFlush + }; + enum FlushMode { FlushInput, FlushOutput, @@ -78,6 +119,10 @@ BaudRate baudRate() throw(IO::IOError); + void setCharSize(CharSize csize) throw(IO::IOError); + + CharSize charSize() throw(IO::IOError); + void put(const UInt8& byte) throw(IO::IOError); UInt8 get() throw(IO::IOError); |