⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classwin__qextserialport.html

📁 linux qt环境下的串口多线程功能的实现
💻 HTML
📖 第 1 页 / 共 3 页
字号:
  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Sets DTR line to the requested state (high by default). This function will have no effect if  the port associated with the class is not currently open. <p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a14" doxytag="Win_QextSerialPort::setFlowControl"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void Win_QextSerialPort::setFlowControl </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">FlowType&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>flow</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the flow control used by the port. Possible values of flow are: <div class="fragment"><pre>    FLOW_OFF            No flow control    FLOW_HARDWARE       Hardware (RTS/CTS) flow control    FLOW_XONXOFF        Software (XON/XOFF) flow control</pre></div> <p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a15" doxytag="Win_QextSerialPort::setParity"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void Win_QextSerialPort::setParity </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">ParityType&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>parity</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the parity associated with the serial port. The possible values of parity are: <div class="fragment"><pre>    PAR_SPACE       Space Parity    PAR_MARK        Mark Parity    PAR_NONE        No Parity    PAR_EVEN        Even Parity    PAR_ODD         Odd Parity</pre></div> <p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a20" doxytag="Win_QextSerialPort::setRts"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void Win_QextSerialPort::setRts </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">bool&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>set</em> = true          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Sets RTS line to the requested state (high by default). This function will have no effect if  the port associated with the class is not currently open. <p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a17" doxytag="Win_QextSerialPort::setStopBits"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void Win_QextSerialPort::setStopBits </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">StopBitsType&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>stopBits</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the number of stop bits used by the serial port. Possible values of stopBits are: <div class="fragment"><pre>    STOP_1      1 stop bit    STOP_1_5    1.5 stop bits    STOP_2      2 stop bits</pre></div><p><dl compact><dt><b>Note: </b><dd>This function is subject to the following restrictions: <p> 2 stop bits cannot be used with 5 data bits. <p> 1.5 stop bits cannot be used with 6 or more data bits. <p> POSIX does not support 1.5 stop bits. </dl><p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a24" doxytag="Win_QextSerialPort::setTimeout"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void Win_QextSerialPort::setTimeout </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">unsigned long&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>sec</em> = 0, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>unsigned long&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>millisec</em> = 0</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the read and write timeouts for the port to sec seconds and millisec milliseconds. <p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a10" doxytag="Win_QextSerialPort::size"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> Offset Win_QextSerialPort::size </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This function will return the number of bytes waiting in the receive queue of the serial port. It is included primarily to provide a complete QIODevice interface, and will not record errors in the lastErr member (because it is const). This function is also not thread-safe - in  multithreading situations, use <a class="el" href="classWin__QextSerialPort.html#a22">Win_QextSerialPort::bytesWaiting</a>() instead. <p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a23" doxytag="Win_QextSerialPort::translateError"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void Win_QextSerialPort::translateError </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">unsigned long&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>error</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Translates a system-specific error code to a <a class="el" href="classQextSerialPort.html">QextSerialPort</a> error code. Used internally. <p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a13" doxytag="Win_QextSerialPort::ungetch"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int Win_QextSerialPort::ungetch </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>This function is included to implement the full QIODevice interface, and currently has no  purpose within this class. This function is meaningless on an unbuffered device and currently only prints a warning message to that effect. <p>Reimplemented from <a class="el" href="classQextSerialBase.html#a14">QextSerialBase</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li>win_qextserialport.cpp<li><a class="el" href="win__qextserialport_8h-source.html">win_qextserialport.h</a></ul><hr><address><small>Generated on Sat Jun 15 15:43:04 2002 for QextSerialPort by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.13.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, &copy;&nbsp;1997-2001</small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -