📄 classqextserialport.html
字号:
<tr><td class="memItemLeft" nowrap align="right" valign="top">COMMTIMEOUTS </td><td class="memItemRight" valign="bottom"><a class="el" href="classWin__QextSerialPort.html#a3909dbcf96493e43d79e075e626d68b">Win_CommTimeouts</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="classWin__QextSerialPort.html#f6dae6bb1c6b51e766e551bc11f1721d">Win_Handle</a></td></tr><tr><td colspan="2"><br><h2>Static Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static QMutex * </td><td class="memItemRight" valign="bottom"><a class="el" href="classQextSerialBase.html#f3d14f4614db4415c5f89746633cf197">mutex</a> = NULL</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static QMutex * </td><td class="memItemRight" valign="bottom"><a class="el" href="classQextSerialBase.html#f3d14f4614db4415c5f89746633cf197">mutex</a> = NULL</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static ulong </td><td class="memItemRight" valign="bottom"><a class="el" href="classQextSerialBase.html#e5df0cdbbf84781c17f02b8dbc99c93a">refCount</a> = 0</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static ulong </td><td class="memItemRight" valign="bottom"><a class="el" href="classQextSerialBase.html#e5df0cdbbf84781c17f02b8dbc99c93a">refCount</a> = 0</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2><dl compact><dt><b>Version:</b></dt><dd>1.0.0 </dd></dl><dl compact><dt><b>Author:</b></dt><dd>Stefan Sander</dd></dl>A cross-platform serial port class. This class encapsulates a serial port on both POSIX and Windows systems. The user will be notified of errors and possible portability conflicts at run-time by default - this behavior can be turned off by defining _TTY_NOWARN_ (to turn off all warnings) or _TTY_NOWARN_PORT_ (to turn off portability warnings) in the project.<p><dl compact><dt><b>Note:</b></dt><dd>On Windows NT/2000/XP this class uses Win32 serial port functions by default. The user may select POSIX behavior under NT, 2000, or XP ONLY by defining _TTY_POSIX_ in the project. I can make no guarantees as to the quality of POSIX support under NT/2000 however. </dd></dl><p><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="6aba59fc97222d64653f94c491747ffd"></a><!-- doxytag: member="QextSerialPort::QextSerialPort" ref="6aba59fc97222d64653f94c491747ffd" args="()" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">QextSerialPort::QextSerialPort </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Default constructor. Note that the naming convention used by a <a class="el" href="classQextSerialPort.html">QextSerialPort</a> constructed with this constructor will be determined by defined constants, or lack thereof - the default behavior is the same as _TTY_LINUX_. Possible naming conventions and their associated constants are:<p><div class="fragment"><pre class="fragment">Constant Used By Naming Convention---------- ------------- ------------------------_TTY_WIN_ Windows COM1, COM2_TTY_IRIX_ SGI/IRIX /dev/ttyf1, /dev/ttyf2_TTY_HPUX_ HP-UX /dev/tty1p0, /dev/tty2p0_TTY_SUN_ SunOS/Solaris /dev/ttya, /dev/ttyb_TTY_DIGITAL_ Digital UNIX /dev/tty01, /dev/tty02_TTY_FREEBSD_ FreeBSD /dev/ttyd0, /dev/ttyd1_TTY_LINUX_ Linux /dev/ttyS0, /dev/ttyS1<none> Linux /dev/ttyS0, /dev/ttyS1</pre></div><p>The object will be associated with the first port in the system, e.g. COM1 on Windows systems. See the other constructors if you need to use a port other than the first. <div class="fragment"><pre class="fragment"><a name="l00047"></a>00047 : <a class="code" href="classQextBaseType.html">QextBaseType</a>()<a name="l00048"></a>00048 {}</pre></div><p></div></div><p><a class="anchor" name="d134e1a6ec2d0ebc4c48660d057999e5"></a><!-- doxytag: member="QextSerialPort::QextSerialPort" ref="d134e1a6ec2d0ebc4c48660d057999e5" args="(const QString &name)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">QextSerialPort::QextSerialPort </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Constructs a serial port attached to the port specified by name. name is the name of the device, which is windowsystem-specific, e.g."COM1" or "/dev/ttyS0". <div class="fragment"><pre class="fragment"><a name="l00057"></a>00057 : <a class="code" href="classQextBaseType.html">QextBaseType</a>(name)<a name="l00058"></a>00058 {}</pre></div><p></div></div><p><a class="anchor" name="3227cce266f97fc6066239a301fdc251"></a><!-- doxytag: member="QextSerialPort::QextSerialPort" ref="3227cce266f97fc6066239a301fdc251" args="(PortSettings const &s)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">QextSerialPort::QextSerialPort </td> <td>(</td> <td class="paramtype"><a class="el" href="structPortSettings.html">PortSettings</a> const & </td> <td class="paramname"> <em>settings</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Constructs a port with default name and settings specified by the settings parameter. <div class="fragment"><pre class="fragment"><a name="l00065"></a>00065 : <a class="code" href="classQextBaseType.html">QextBaseType</a>(settings)<a name="l00066"></a>00066 {}</pre></div><p></div></div><p><a class="anchor" name="4b30a03285f32254076bf2ee6e579709"></a><!-- doxytag: member="QextSerialPort::QextSerialPort" ref="4b30a03285f32254076bf2ee6e579709" args="(const QString &name, PortSettings const &s)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">QextSerialPort::QextSerialPort </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structPortSettings.html">PortSettings</a> const & </td> <td class="paramname"> <em>settings</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table></div><div class="memdoc"><p>Constructs a port with the name and settings specified. <div class="fragment"><pre class="fragment"><a name="l00073"></a>00073 : <a class="code" href="classQextBaseType.html">QextBaseType</a>(name, settings)<a name="l00074"></a>00074 {}</pre></div><p></div></div><p><a class="anchor" name="207af0672a6a954e6621933e93b9923e"></a><!-- doxytag: member="QextSerialPort::QextSerialPort" ref="207af0672a6a954e6621933e93b9923e" args="(const QextSerialPort &s)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">QextSerialPort::QextSerialPort </td> <td>(</td> <td class="paramtype">const <a class="el" href="classQextSerialPort.html">QextSerialPort</a> & </td> <td class="paramname"> <em>s</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -