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

📄 classqextserialbase.html

📁 QT 串口开发开发库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
        <tr>          <td class="md" nowrap valign="top"> bool QextSerialBase::isOpen </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&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>Returns true if the port is currently open, false otherwise     </td>  </tr></table><a name="a26" doxytag="QextSerialBase::isOpen"></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"> bool QextSerialBase::isOpen </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&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>Returns true if the port associated with the class is currently open, or false if it is not.     </td>  </tr></table><a name="a27" doxytag="QextSerialBase::lastError"></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"> unsigned long QextSerialBase::lastError </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>Returns the code for the last error encountered by the port, or E_NO_ERROR if the last port  operation was successful. Possible error codes are:<p><div class="fragment"><pre>Error                           Explanation---------------------------     -------------------------------------------------------------E_NO_ERROR                      No Error has occuredE_INVALID_FD                    Invalid file descriptor (port was not opened correctly)E_NO_MEMORY                     Unable to allocate memory tables (POSIX)E_CAUGHT_NON_BLOCKED_SIGNAL     Caught a non-blocked signal (POSIX)E_PORT_TIMEOUT                  Operation timed out (POSIX)E_INVALID_DEVICE                The file opened by the port is not a character device (POSIX)E_BREAK_CONDITION               The port detected a break conditionE_FRAMING_ERROR                 The port detected a framing error                                 (usually caused by incorrect baud rate settings)E_IO_ERROR                      There was an I/O error while communicating with the portE_BUFFER_OVERRUN                Character buffer overrunE_RECEIVE_OVERFLOW              Receive buffer overflowE_RECEIVE_PARITY_ERROR          The port detected a parity error in the received dataE_TRANSMIT_OVERFLOW             Transmit buffer overflowE_READ_FAILED                   General read operation failureE_WRITE_FAILED                  General write operation failure</pre></div>     </td>  </tr></table><a name="a4" doxytag="QextSerialBase::name"></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"> const char * QextSerialBase::name </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>Returns a pointer to a string containing the name of the device associated with the object     </td>  </tr></table><a name="a7" doxytag="QextSerialBase::open"></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"> bool QextSerialBase::open </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>name</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>Opens a serial port by name. The string passed in the name parameter is associated with the  object and subsequent calls to <a class="el" href="classQextSerialBase.html#a7">open</a>() may use the no-parameter version. This function has no  effect if the port associated with the class is already open. The port is also configured to the  current settings, as stored in the Settings structure.     </td>  </tr></table><a name="a19" doxytag="QextSerialBase::parity"></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"> ParityType QextSerialBase::parity </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>Returns the type of parity used by the port. For a list of possible values returned by  this function, see the definition of the enum ParityType.     </td>  </tr></table><a name="a11" doxytag="QextSerialBase::readLine"></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 QextSerialBase::readLine </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>data</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>uint&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>maxlen</em></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>This function will read a line of buffered input from the port, stopping when either maxlen bytes have been read, the port has no more data available, or a newline is encountered. The value  returned is the length of the string that was read.<p>Thanks to Olivier Tubach for the original version of this function.     </td>  </tr></table><a name="a5" doxytag="QextSerialBase::setName"></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 QextSerialBase::setName </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>name</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 name of the device associated with the object, e.g. "COM1", or "/dev/ttyS0".     </td>  </tr></table><a name="a23" doxytag="QextSerialBase::stopBits"></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"> StopBitsType QextSerialBase::stopBits </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>Returns the number of stop bits used by the port. For a list of possible return values, see the definition of the enum StopBitsType.     </td>  </tr></table><a name="a14" doxytag="QextSerialBase::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 QextSerialBase::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 in <a class="el" href="classPosix__QextSerialPort.html#a13">Posix_QextSerialPort</a>, and <a class="el" href="classWin__QextSerialPort.html#a13">Win_QextSerialPort</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li>qextserialbase.cpp<li><a class="el" href="qextserialbase_8h-source.html">qextserialbase.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 + -