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

📄 group__xg_c_g_i.html

📁 针对AVR单片机开发的嵌入式操作系统
💻 HTML
📖 第 1 页 / 共 3 页
字号:
  </tr></table><a class="anchor" name="ga6" doxytag="cgi.c::HtmlSeparatorRow"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">static void HtmlSeparatorRow           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">FILE *&nbsp;</td>          <td class="mdname" nowrap> <em>stream</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>u_char&nbsp;</td>          <td class="mdname" nowrap> <em>width</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>u_char&nbsp;</td>          <td class="mdname" nowrap> <em>height</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Print HTML code for a separator row. <p>The resulting HTML code will present a black row.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>stream</em>&nbsp;</td><td>HTML code is printed to this stream device. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>width</em>&nbsp;</td><td>Separator width in columns. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>height</em>&nbsp;</td><td>Separator width in pixels. </td></tr>  </table></dl><p>Definition at line <a class="el" href="cgi_8c-source.html#l00170">170</a> of file <a class="el" href="cgi_8c-source.html">cgi.c</a>.<p>Referenced by <a class="el" href="cgi_8c-source.html#l00330">CpuPortControl()</a>.    </td>  </tr></table><a class="anchor" name="ga8" doxytag="cgi.c::ProcessCgiPortRequest"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">static void ProcessCgiPortRequest           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">REQUEST *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>req</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Process request parameters for CPU port control. <p>Parse the CGI query and perform the corresponding action:<p><ul><li>Dx=y will set bit y in the data direction register of port x.</li><li>Px=y will set bit y in the port output register of port x.</li></ul><p>All other bits are switched off.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>query</em>&nbsp;</td><td>CGI query string. </td></tr>  </table></dl><p>Definition at line <a class="el" href="cgi_8c-source.html#l00225">225</a> of file <a class="el" href="cgi_8c-source.html">cgi.c</a>.<p>Referenced by <a class="el" href="cgi_8c-source.html#l00330">CpuPortControl()</a>.    </td>  </tr></table><a class="anchor" name="ga9" doxytag="cgi.c::ProcessCgiRelayRequest"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">static void ProcessCgiRelayRequest           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>query</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Process request parameters for relay output control. <p>Parse the CGI query and switch the corresponding relays. 'S=y' will switch on relay y. All other relays are switched off.<p>Note, that before calling this function is called for the first time, the status of the relays is unknown.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>query</em>&nbsp;</td><td>CGI query string. </td></tr>  </table></dl><p>Definition at line <a class="el" href="cgi_8c-source.html#l00285">285</a> of file <a class="el" href="cgi_8c-source.html">cgi.c</a>.<p>References <a class="el" href="cgi_8c-source.html#l00057">relay_known</a>, <a class="el" href="cgi_8c-source.html#l00056">relay_status</a>, and <a class="el" href="cgi_8c-source.html#l00055">spi_no</a>.<p>Referenced by <a class="el" href="cgi_8c-source.html#l00470">SpiRelayControl()</a>.    </td>  </tr></table><a class="anchor" name="ga13" doxytag="cgi.c::SpiOptoStatus"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int SpiOptoStatus           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">FILE *&nbsp;</td>          <td class="mdname" nowrap> <em>stream</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>REQUEST *&nbsp;</td>          <td class="mdname" nowrap> <em>req</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>CGI callback function to query a shift register input board. <p>This function is called by the HTTP helper routines when a browser requests a CGI function, for which this routine has been registered via NutRegisterCgi().<p><div align="center"><img src="opto.gif" alt="opto.gif"></div><p>Creates HTML code to show the status of the optically isolated inputs of an attached input shift register board. The page will be automatically refreshed every 5 seconds.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>stream</em>&nbsp;</td><td>Stream device of the HTTP connection. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>req</em>&nbsp;</td><td>Pointer to the CGI REQUEST structure. Detailed information is available in the Nut/OS API documentation.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>0 on success or -1 in case of any failure. </dd></dl><p>Definition at line <a class="el" href="cgi_8c-source.html#l00547">547</a> of file <a class="el" href="cgi_8c-source.html">cgi.c</a>.<p>References <a class="el" href="cgi_8c-source.html#l00093">HtmlLedRow()</a>, <a class="el" href="webport_8h-source.html#l00068">OPTO_STATUS_CGI</a>, <a class="el" href="cgi_8c-source.html#l00054">spi_ni</a>, and <a class="el" href="cgi_8c-source.html#l00055">spi_no</a>.<p>Referenced by <a class="el" href="webport_8c-source.html#l00260">main()</a>.    </td>  </tr></table><a class="anchor" name="ga12" doxytag="cgi.c::SpiRelayControl"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int SpiRelayControl           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">FILE *&nbsp;</td>          <td class="mdname" nowrap> <em>stream</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>REQUEST *&nbsp;</td>          <td class="mdname" nowrap> <em>req</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>CGI callback function to control a shift register output board. <p>Creates HTML code to show the status of any attached shift register output board plus a HTML form to modify the current relay status via checkboxes.<p>The resulting HTML code is send back to the browser. If the submit button is clicked on this page, this function will be called again to process the checkboxes and display the updated status.<p><div align="center"><img src="relay.gif" alt="relay.gif"></div><p>This function is called by the HTTP module when a browser requests a CGI function, for which this routine has been registered via NutRegisterCgi().<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>stream</em>&nbsp;</td><td>Stream device of the HTTP connection. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>req</em>&nbsp;</td><td>Pointer to the CGI REQUEST structure. Detailed information is available in the Nut/OS API documentation.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>0 on success or -1 in case of any failure. </dd></dl><p>Definition at line <a class="el" href="cgi_8c-source.html#l00470">470</a> of file <a class="el" href="cgi_8c-source.html">cgi.c</a>.<p>References <a class="el" href="cgi_8c-source.html#l00140">HtmlCheckboxRow()</a>, <a class="el" href="cgi_8c-source.html#l00093">HtmlLedRow()</a>, <a class="el" href="cgi_8c-source.html#l00285">ProcessCgiRelayRequest()</a>, <a class="el" href="webport_8h-source.html#l00067">RELAY_CONTROL_CGI</a>, <a class="el" href="cgi_8c-source.html#l00057">relay_known</a>, <a class="el" href="cgi_8c-source.html#l00056">relay_status</a>, <a class="el" href="cgi_8c-source.html#l00054">spi_ni</a>, and <a class="el" href="cgi_8c-source.html#l00055">spi_no</a>.<p>Referenced by <a class="el" href="webport_8c-source.html#l00260">main()</a>.    </td>  </tr></table><hr><address>  <small>    &copy;&nbsp;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 + -