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

📄 modem_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>modem.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>modem.h</h1><a href="modem_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * modem.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * AT command set modem on asynchonous port class.</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 1993-2002 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: modem.h,v $</span>00027 <span class="comment"> * Revision 1.14  2002/11/06 22:47:24  robertj</span>00028 <span class="comment"> * Fixed header comment (copyright etc)</span>00029 <span class="comment"> *</span>00030 <span class="comment"> * Revision 1.13  2002/09/16 01:08:59  robertj</span>00031 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00032 <span class="comment"> *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00033 <span class="comment"> *</span>00034 <span class="comment"> * Revision 1.12  1999/03/09 08:01:46  robertj</span>00035 <span class="comment"> * Changed comments for doc++ support (more to come).</span>00036 <span class="comment"> *</span>00037 <span class="comment"> * Revision 1.11  1999/02/16 08:07:10  robertj</span>00038 <span class="comment"> * MSVC 6.0 compatibility changes.</span>00039 <span class="comment"> *</span>00040 <span class="comment"> * Revision 1.10  1998/12/02 03:51:39  robertj</span>00041 <span class="comment"> * Unix compatibility changes</span>00042 <span class="comment"> *</span>00043 <span class="comment"> * Revision 1.9  1998/09/23 06:20:53  robertj</span>00044 <span class="comment"> * Added open source copyright license.</span>00045 <span class="comment"> *</span>00046 <span class="comment"> * Revision 1.8  1995/06/17 11:12:46  robertj</span>00047 <span class="comment"> * Documentation update.</span>00048 <span class="comment"> *</span>00049 <span class="comment"> * Revision 1.7  1995/03/14 12:41:51  robertj</span>00050 <span class="comment"> * Updated documentation to use HTML codes.</span>00051 <span class="comment"> *</span>00052 <span class="comment"> * Revision 1.6  1995/01/06  10:31:02  robertj</span>00053 <span class="comment"> * Documentation.</span>00054 <span class="comment"> *</span>00055 <span class="comment"> * Revision 1.5  1994/08/23  11:32:52  robertj</span>00056 <span class="comment"> * Oops</span>00057 <span class="comment"> *</span>00058 <span class="comment"> * Revision 1.4  1994/08/22  00:46:48  robertj</span>00059 <span class="comment"> * Added pragma fro GNU C++ compiler.</span>00060 <span class="comment"> *</span>00061 <span class="comment"> * Revision 1.3  1994/08/21  23:43:02  robertj</span>00062 <span class="comment"> * Moved meta-string transmitter from PModem to PChannel.</span>00063 <span class="comment"> *</span>00064 <span class="comment"> * Revision 1.2  1994/07/25  03:32:29  robertj</span>00065 <span class="comment"> * Fixed bug in GCC with enums.</span>00066 <span class="comment"> *</span>00067 <span class="comment"> * Revision 1.1  1994/06/25  11:55:15  robertj</span>00068 <span class="comment"> * Initial revision</span>00069 <span class="comment"> *</span>00070 <span class="comment"> */</span>00071 00072 <a name="l00073"></a><a class="code" href="modem_8h.html#a0">00073</a> <span class="preprocessor">#define _PMODEM</span>00074 <span class="preprocessor"></span>00075 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00076 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00077 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00078 <span class="preprocessor"></span>00079 <span class="preprocessor">#ifndef _PSERIALCHANNEL</span>00080 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="serchan_8h.html">ptlib/serchan.h</a>&gt;</span>00081 <span class="preprocessor">#endif</span>00082 <span class="preprocessor"></span>00083 <a name="l00102"></a><a class="code" href="classPModem.html">00102</a> <span class="keyword">class </span><a class="code" href="classPModem.html">PModem</a> : <span class="keyword">public</span> <a class="code" href="classPSerialChannel.html">PSerialChannel</a>00103 {00104   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPModem.html">PModem</a>, <a class="code" href="classPSerialChannel.html">PSerialChannel</a>)00105 00106   <span class="keyword">public</span>:00113     <a class="code" href="classPModem.html#a0">PModem</a>();00114     <a class="code" href="classPModem.html#a0">PModem</a>(00115       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; port,   <span class="comment">// Serial port name to open.</span>00116       DWORD speed = 0,        <span class="comment">// Speed of serial port.</span>00117       BYTE data = 0,          <span class="comment">// Number of data bits for serial port.</span>00118       <a class="code" href="classPSerialChannel.html#z349_0">Parity</a> parity = <a class="code" href="classPSerialChannel.html#z349_0s0">DefaultParity</a>,  <span class="comment">// Parity for serial port.</span>00119       BYTE stop = 0,          <span class="comment">// Number of stop bits for serial port.</span>00120       <a class="code" href="classPSerialChannel.html#z349_1">FlowControl</a> inputFlow = <a class="code" href="classPSerialChannel.html#z349_1s6">DefaultFlowControl</a>,   <span class="comment">// Input flow control.</span>00121       <a class="code" href="classPSerialChannel.html#z349_1">FlowControl</a> outputFlow = <a class="code" href="classPSerialChannel.html#z349_1s6">DefaultFlowControl</a>   <span class="comment">// Output flow control.</span>00122     );00123 00128     <a class="code" href="classPModem.html#a0">PModem</a>(00129       <a class="code" href="classPConfig.html">PConfig</a> &amp; cfg   <span class="comment">// Configuration file to read parameters from.</span>00130     );00131 00132 00133   <span class="comment">// Overrides from class PChannel</span>00134     <span class="keyword">virtual</span> BOOL <a class="code" href="classPModem.html#a3">Close</a>();00135     <span class="comment">// Close the modem serial port channel.</span>00136 00137 00138   <span class="comment">// Overrides from class PSerialChannel</span>00147 <span class="comment"></span>    <span class="keyword">virtual</span> BOOL <a class="code" href="classPModem.html#a4">Open</a>(00148       <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; port,   <span class="comment">// Serial port name to open.</span>00149       DWORD speed = 0,        <span class="comment">// Speed of serial port.</span>00150       BYTE data = 0,          <span class="comment">// Number of data bits for serial port.</span>00151       <a class="code" href="classPSerialChannel.html#z349_0">Parity</a> parity = <a class="code" href="classPSerialChannel.html#z349_0s0">DefaultParity</a>,  <span class="comment">// Parity for serial port.</span>00152       BYTE stop = 0,          <span class="comment">// Number of stop bits for serial port.</span>00153       <a class="code" href="classPSerialChannel.html#z349_1">FlowControl</a> inputFlow = <a class="code" href="classPSerialChannel.html#z349_1s6">DefaultFlowControl</a>,   <span class="comment">// Input flow control.</span>00154       <a class="code" href="classPSerialChannel.html#z349_1">FlowControl</a> outputFlow = <a class="code" href="classPSerialChannel.html#z349_1s6">DefaultFlowControl</a>   <span class="comment">// Output flow control.</span>00155     );00156 00164     <span class="keyword">virtual</span> BOOL <a class="code" href="classPModem.html#a4">Open</a>(

⌨️ 快捷键说明

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