📄 webport_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head> <meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Ethernut WebPort</title> <link href="doxygen.css" rel="stylesheet" type="text/css"></head><body bgcolor="#ffffff"><!-- Generated by Doxygen 1.4.1 --><div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div><div class="nav"><a class="el" href="dir_000000.html">webport</a></div><h1>webport.h</h1><a href="webport_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="preprocessor">#ifndef _APP_WEBPORT_H_</span>00002 <span class="preprocessor"></span><span class="preprocessor">#define _APP_WEBPORT_H_</span>00003 <span class="preprocessor"></span>00004 <span class="comment">/*</span>00005 <span class="comment"> * Copyright (C) 2002-2005 by egnite Software GmbH. All rights reserved.</span>00006 <span class="comment"> *</span>00007 <span class="comment"> * Redistribution and use in source and binary forms, with or without</span>00008 <span class="comment"> * modification, are permitted provided that the following conditions</span>00009 <span class="comment"> * are met:</span>00010 <span class="comment"> *</span>00011 <span class="comment"> * 1. Redistributions of source code must retain the above copyright</span>00012 <span class="comment"> * notice, this list of conditions and the following disclaimer.</span>00013 <span class="comment"> * 2. Redistributions in binary form must reproduce the above copyright</span>00014 <span class="comment"> * notice, this list of conditions and the following disclaimer in the</span>00015 <span class="comment"> * documentation and/or other materials provided with the distribution.</span>00016 <span class="comment"> * 3. Neither the name of the copyright holders nor the names of</span>00017 <span class="comment"> * contributors may be used to endorse or promote products derived</span>00018 <span class="comment"> * from this software without specific prior written permission.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * THIS SOFTWARE IS PROVIDED BY EGNITE SOFTWARE GMBH AND CONTRIBUTORS</span>00021 <span class="comment"> * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span>00022 <span class="comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS</span>00023 <span class="comment"> * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EGNITE</span>00024 <span class="comment"> * SOFTWARE GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,</span>00025 <span class="comment"> * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,</span>00026 <span class="comment"> * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS</span>00027 <span class="comment"> * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED</span>00028 <span class="comment"> * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,</span>00029 <span class="comment"> * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF</span>00030 <span class="comment"> * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF</span>00031 <span class="comment"> * SUCH DAMAGE.</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * For additional information see http://www.ethernut.de/</span>00034 <span class="comment"> *</span>00035 <span class="comment"> */</span>00036 00037 <span class="comment">/*</span>00038 <span class="comment"> * $Log$</span>00039 <span class="comment"> */</span>00040 <span class="comment"></span>00041 <span class="comment">/*!</span>00042 <span class="comment"> * \file webport.h</span>00043 <span class="comment"> * \brief Main header file.</span>00044 <span class="comment"> */</span>00045 <span class="comment"></span>00046 <span class="comment">/*!</span>00047 <span class="comment"> * \addtogroup xgWPDefs</span>00048 <span class="comment"> */</span><span class="comment"></span>00049 <span class="comment">/*@{*/</span>00050 <span class="comment"></span>00051 <span class="comment">/*!</span>00052 <span class="comment"> * \brief Device name for optional status messages.</span>00053 <span class="comment"> *</span>00054 <span class="comment"> * If defined, the RS232 port will display status messages.</span>00055 <span class="comment"> * Remove this definition if you intend to use the port</span>00056 <span class="comment"> * for other purposes.</span>00057 <span class="comment"> */</span><a name="l00058"></a><a class="code" href="group__xg_w_p_defs.html#ga3">00058</a> <span class="preprocessor">#define WP_STATUSOUT "uart0"</span>00059 <span class="preprocessor"></span><a name="l00060"></a><a class="code" href="group__xg_w_p_defs.html#ga4">00060</a> <span class="preprocessor">#define HTTP_PORT 80 </span><span class="comment">/*!< \brief TCP port number to listen to. */</span><a name="l00061"></a><a class="code" href="group__xg_w_p_defs.html#ga5">00061</a> <span class="preprocessor">#define LOW_MEM_MARK 4096 </span><span class="comment">/*!< \brief Delay responses if available memory falls below. */</span><a name="l00062"></a><a class="code" href="group__xg_w_p_defs.html#ga6">00062</a> <span class="preprocessor">#define NUM_HTTP_THREADS 6 </span><span class="comment">/*!< \brief Total number of concurrent HTTP server threads. */</span><a name="l00063"></a><a class="code" href="group__xg_w_p_defs.html#ga7">00063</a> <span class="preprocessor">#define HTTP_THREAD_STACK 640 </span><span class="comment">/*!< \brief Stack size given to each HTTP server thread. */</span>00064 <a name="l00065"></a><a class="code" href="group__xg_w_p_defs.html#ga8">00065</a> <span class="preprocessor">#define PORT_CONTROL_CGI "ccports.cgi" </span><span class="comment">/*!< \brief Name of the CGI to control CPU ports. */</span><a name="l00066"></a><a class="code" href="group__xg_w_p_defs.html#ga9">00066</a> <span class="preprocessor">#define PORT_STATUS_CGI "csports.cgi" </span><span class="comment">/*!< \brief Name of the CGI to display CPU ports. */</span><a name="l00067"></a><a class="code" href="group__xg_w_p_defs.html#ga10">00067</a> <span class="preprocessor">#define RELAY_CONTROL_CGI "relay.cgi" </span><span class="comment">/*!< \brief Name of the CGI to control shift register outputs. */</span><a name="l00068"></a><a class="code" href="group__xg_w_p_defs.html#ga11">00068</a> <span class="preprocessor">#define OPTO_STATUS_CGI "opto.cgi" </span><span class="comment">/*!< \brief Name of the CGI to display shift register inputs. */</span><a name="l00069"></a><a class="code" href="group__xg_w_p_defs.html#ga12">00069</a> <span class="preprocessor">#define CHARON_CONTROL_CGI "ch2led.cgi" </span><span class="comment">/*!< \brief Name of the CGI to control Charon II LEDs. */</span><a name="l00070"></a><a class="code" href="group__xg_w_p_defs.html#ga13">00070</a> <span class="preprocessor">#define CHARON_STATUS_CGI "ch2switch.cgi" </span><span class="comment">/*!< \brief Name of the CGI to display Charon II switch settings. */</span>00071 <span class="comment"></span>00072 <span class="comment">/*@}*/</span>00073 00074 <span class="comment">/*</span>00075 <span class="comment"> * CGI prototypes.</span>00076 <span class="comment"> */</span>00077 00078 __BEGIN_DECLS <span class="comment">/* Function prototypes */</span>00079 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="group__xg_c_g_i.html#ga10">CpuPortControl</a>(FILE * sostream, REQUEST * req);00080 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="group__xg_c_g_i.html#ga11">CpuPortStatus</a>(FILE * sostream, REQUEST * req);00081 00082 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="group__xg_c_g_i.html#ga12">SpiRelayControl</a>(FILE * sostream, REQUEST * req);00083 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="group__xg_c_g_i.html#ga13">SpiOptoStatus</a>(FILE * sostream, REQUEST * req);00084 00085 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="group__xg_c_g_i.html#ga14">CharonLedControl</a>(FILE * stream, REQUEST * req);00086 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="group__xg_c_g_i.html#ga15">CharonSwitchStatus</a>(FILE * stream, REQUEST * req);00087 00088 __END_DECLS00089 <span class="preprocessor">#endif</span></pre></div><hr><address> <small> © 2002-2004 by egnite Software GmbH - visit <a href="http://www.ethernut.de/">http://www.ethernut.de/</a> </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -