📄 classqextserialbase.html
字号:
<a name="l00097"></a>00097 <span class="preprocessor">#endif</span><a name="l00098"></a>00098 <span class="preprocessor"></span><a name="l00099"></a>00099 <a class="codeRef" doxygen="qiodevice.tag:http://doc.trolltech.com/" href="http://doc.trolltech.com/qiodevice.html#setOpenMode">setOpenMode</a>(QIODevice::NotOpen);<a name="l00100"></a>00100 }</pre></div><p></div></div><p><a class="anchor" name="6836465ea5deaa1280e0e777e9c8651e"></a><!-- doxytag: member="QextSerialBase::dataBits" ref="6836465ea5deaa1280e0e777e9c8651e" args="() const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="qextserialbase_8h.html#189ef78c2c1b7537ab114d576f6214fa">DataBitsType</a> QextSerialBase::dataBits </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Returns the number of data bits used by the port. For a list of possible values returned by this function, see the definition of the enum DataBitsType. <div class="fragment"><pre class="fragment"><a name="l00136"></a>00136 {<a name="l00137"></a>00137 <span class="keywordflow">return</span> <a class="code" href="classQextSerialBase.html#2d796e3080f78ff63e821f528439db57">Settings</a>.<a class="code" href="structPortSettings.html#9ec9d5a304b2ac8d3a100d07bce7c0b6">DataBits</a>;<a name="l00138"></a>00138 }</pre></div><p></div></div><p><a class="anchor" name="ad41090da77578cfae4b24510fe8c9b7"></a><!-- doxytag: member="QextSerialBase::flowControl" ref="ad41090da77578cfae4b24510fe8c9b7" args="() const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="qextserialbase_8h.html#02ad1c7cf791a069dd54e409f8db4790">FlowType</a> QextSerialBase::flowControl </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Returns the type of flow control used by the port. For a list of possible values returned by this function, see the definition of the enum FlowType. <div class="fragment"><pre class="fragment"><a name="l00166"></a>00166 {<a name="l00167"></a>00167 <span class="keywordflow">return</span> <a class="code" href="classQextSerialBase.html#2d796e3080f78ff63e821f528439db57">Settings</a>.<a class="code" href="structPortSettings.html#10720f6217b8d8b90c326ea030c43e30">FlowControl</a>;<a name="l00168"></a>00168 }</pre></div><p></div></div><p><a class="anchor" name="58df9d786aa70dfe9f547d4118103f39"></a><!-- doxytag: member="QextSerialBase::flush" ref="58df9d786aa70dfe9f547d4118103f39" args="()=0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void QextSerialBase::flush </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [pure virtual]</code></td> </tr> </table></div><div class="memdoc"><p><p>Implemented in <a class="el" href="classPosix__QextSerialPort.html#5f12a1a6c1c6a163fe146272e9a7d275">Posix_QextSerialPort</a>, and <a class="el" href="classWin__QextSerialPort.html#c72e737e24bda9c14a9388eac8ef2622">Win_QextSerialPort</a>.</div></div><p><a class="anchor" name="099fb47548a3566ed32d4d878fa57f4c"></a><!-- doxytag: member="QextSerialBase::isSequential" ref="099fb47548a3566ed32d4d878fa57f4c" args="() const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">bool QextSerialBase::isSequential </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><p>Returns true if device is sequential, otherwise returns false. Serial port is sequential device so this function always returns true. Check <a class="elRef" doxygen="qiodevice.tag:http://doc.trolltech.com/" href="http://doc.trolltech.com/qiodevice.html#isSequential">QIODevice::isSequential()</a> documentation for more information. <div class="fragment"><pre class="fragment"><a name="l00177"></a>00177 {<a name="l00178"></a>00178 <span class="keywordflow">return</span> <span class="keyword">true</span>;<a name="l00179"></a>00179 }</pre></div><p></div></div><p><a class="anchor" name="e4029cb49127422b7e76586930366b05"></a><!-- doxytag: member="QextSerialBase::lastError" ref="e4029cb49127422b7e76586930366b05" args="() const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">ulong QextSerialBase::lastError </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><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 class="fragment">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> <div class="fragment"><pre class="fragment"><a name="l00248"></a>00248 {<a name="l00249"></a>00249 <span class="keywordflow">return</span> <a class="code" href="classQextSerialBase.html#31816951ba89902fa1dfdb6f18b80f41">lastErr</a>;<a name="l00250"></a>00250 }</pre></div><p></div></div><p><a class="anchor" name="28b87dd41160a61e2953dca38aa332d6"></a><!-- doxytag: member="QextSerialBase::lineStatus" ref="28b87dd41160a61e2953dca38aa332d6" args="()=0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual ulong QextSerialBase::lineStatus </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"><code> [pure virtual]</code></td> </tr> </table></div><div class="memdoc"><p><p>Implemented in <a class="el" href="classPosix__QextSerialPort.html#b419544e866cab58b8a3ce6341f6a7e9">Posix_QextSerialPort</a>, and <a class="el" href="classWin__QextSerialPort.html#5aecf6de25391bb59ad4d18f3562eef3">Win_QextSerialPort</a>.</div></div><p><a class="anchor" name="e7fadc74c97f903f6b499e6155236b3e"></a><!-- doxytag: member="QextSerialBase::open" ref="e7fadc74c97f903f6b499e6155236b3e" args="(OpenMode mode=0)=0" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool QextSerialBase::open </td> <td>(</td> <td class="paramtype">OpenMode </td> <td class="paramname"> <em>mode</em> = <code>0</code> </td> <td> ) </td> <td width="100%"><code> [pure virtual]</code></td> </tr> </table></div><div class="memdoc"><p><p>Reimplemented from <a class="elRef" doxygen="qiodevice.tag:http://doc.trolltech.com/" href="http://doc.trolltech.com/qiodevice.html#open">QIODevice</a>.<p>Implemented in <a class="el" href="classPosix__QextSerialPort.html#5585e9e5a60f2d134e2c03e7a8cadeb9">Posix_QextSerialPort</a>, and <a class="el" href="classWin__QextSerialPort.html#48e6b76953155180647f0b1a1ace8c2a">Win_QextSerialPort</a>.</div></div><p><a class="anchor" name="d1ea7aa9d42563f6473b5c6dc9643e31"></a><!-- doxytag: member="QextSerialBase::parity" ref="d1ea7aa9d42563f6473b5c6dc9643e31" args="() const " --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="qextserialbase_8h.html#ee22d32d87c815090354bf9b8e957ace">ParityType</a> QextSerialBase::parity </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const<code> [virtual]</code></td> </tr> </table></div><div class="memdoc"><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. <div class="fragment"><pre class="fragment"><a name="l00146"></a>00146 {<a name="l00147"></a>00147 <span class="keywordflow">return</span> <a class="code" href="classQextSerialBase.html#2d796e3080f78ff63e821f528439db57">Settings</a>.<a class="code" href="structPortSettings.html#8d0bfbdcb40e9e3919e3f9829ae72582">Parity</a>;<a name="l00148"></a>00148 }</pre></div><p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -