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

📄 classposix__qextserialport.html

📁 QT 串口开发开发库
💻 HTML
📖 第 1 页 / 共 3 页
字号:
    <td><p>Sets the number of data bits used by the serial port. Possible values of dataBits are: <div class="fragment"><pre>    DATA_5      5 data bits    DATA_6      6 data bits    DATA_7      7 data bits    DATA_8      8 data bits</pre></div><p><dl compact><dt><b>Note: </b><dd>This function is subject to the following restrictions: <p> 5 data bits cannot be used with 2 stop bits. <p> 8 data bits cannot be used with space parity on POSIX systems. </dl><p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a19" doxytag="Posix_QextSerialPort::setDtr"></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 Posix_QextSerialPort::setDtr </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 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="a15" doxytag="Posix_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 Posix_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><dl compact><dt><b>Note: </b><dd>This function is subject to the following limitations: <p>POSIX systems do not support mark parity. <p>POSIX systems support space parity only if tricked into doing so, and only with  fewer than 8 data bits. Use space parity very carefully with POSIX systems. </dl><p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a20" doxytag="Posix_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 Posix_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="Posix_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 Posix_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> <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> 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="Posix_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 Posix_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. Note that this is a per-character timeout, i.e. the port will wait this long for each  individual character, not for the whole read operation. This timeout also applies to the <a class="el" href="classPosix__QextSerialPort.html#a22">bytesWaiting</a>() function.<p><dl compact><dt><b>Note: </b><dd>POSIX does not support millisecond-level control for I/O timeout values. Any timeout set using this function will be set to the next lowest tenth of a second for  the purposes of detecting read or write timeouts. For example a timeout of 550 milliseconds  will be seen by the class as a timeout of 500 milliseconds for the purposes of reading and  writing the port. However millisecond-level control is allowed by the select() system call,  so for example a 550-millisecond timeout will be seen as 550 milliseconds on POSIX systems for  the purpose of detecting available bytes in the read buffer. </dl><p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a10" doxytag="Posix_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 Posix_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="classPosix__QextSerialPort.html#a22">Posix_QextSerialPort::bytesWaiting</a>() instead. <p>Reimplemented from <a class="el" href="classQextSerialBase.html">QextSerialBase</a>.    </td>  </tr></table><a name="a23" doxytag="Posix_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 Posix_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="Posix_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 Posix_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>posix_qextserialport.cpp<li><a class="el" href="posix__qextserialport_8h-source.html">posix_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 + -