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

📄 timers_8h.html

📁 Freescale mcu OpenTCP-1.0.4.doc.html.zip 文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
  </tr></table><a name="a4" doxytag="timers.h::init_timer"></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 init_timer </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">UINT8&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>nbr</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>UINT32&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>tout</em></td>        </tr>        <tr>          <td></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><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>18.07.2001 </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>nbr</em>&nbsp;</td><td>handle of timer who's value we're setting </td></tr><tr><td valign=top><em>tout</em>&nbsp;</td><td>time-out value to set for this timer</td></tr></table></dl>Invoke this function to set timeout value for a timer with a given handle.<p><a class="el" href="timers_8h.html#a1">TIMERTIC</a> defines how quickly the timers' values are decremented so is it to initialize timers to correct timeouts. <p>Definition at line <a class="el" href="timers_8c-source.html#l00194">194</a> of file <a class="el" href="timers_8c-source.html">timers.c</a>.<p>References <a class="el" href="timers_8h-source.html#l00077">NUMTIMERS</a>, <a class="el" href="system_8h-source.html#l00176">OS_EnterCritical</a>, <a class="el" href="system_8h-source.html#l00189">OS_ExitCritical</a>, <a class="el" href="timers_8c.html#a2">timer_pool</a>, and <a class="el" href="system_8h-source.html#l00078">TRUE</a>.<p>Referenced by <a class="el" href="arp_8c-source.html#l00910">arp_init()</a>, <a class="el" href="arp_8c-source.html#l00785">arp_manage()</a>, <a class="el" href="bootp_8c-source.html#l00183">bootpc_run()</a>, <a class="el" href="dhcpc_8c-source.html#l00158">dhcpc_init()</a>, <a class="el" href="dhcpc_8c-source.html#l00201">dhcpc_run()</a>, <a class="el" href="dns_8c-source.html#l00142">dns_retransmit()</a>, <a class="el" href="dns_8c-source.html#l00445">get_host_by_name()</a>, <a class="el" href="tcp_8c-source.html#l01154">tcp_init()</a>, <a class="el" href="tcp_8c-source.html#l02455">tcp_newstate()</a>, and <a class="el" href="tcp_8c-source.html#l00808">tcp_poll()</a>.    </td>  </tr></table><a name="a6" doxytag="timers.h::check_timer"></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"> UINT32 check_timer </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">UINT8&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>nbr</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>18.07.2001 </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>nbr</em>&nbsp;</td><td>timer handle who's value is to be returned </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>timer value </dl><dl compact><dt><b>Warning: </b></dt><dd> <ul><li> Interrupts are not disabled when fetching the value, therefore returned value possibly has an error component +/- <a class="el" href="timers_8h.html#a1">TIMERTIC</a>.</ul></dl>Function simply returns timer value of a given timer. No checks are made in order to make the function as fast as possible. <p>Definition at line <a class="el" href="timers_8c-source.html#l00233">233</a> of file <a class="el" href="timers_8c-source.html">timers.c</a>.<p>References <a class="el" href="timers_8c.html#a2">timer_pool</a>.<p>Referenced by <a class="el" href="arp_8c-source.html#l00785">arp_manage()</a>, <a class="el" href="bootp_8c-source.html#l00183">bootpc_run()</a>, <a class="el" href="dhcpc_8c-source.html#l00201">dhcpc_run()</a>, <a class="el" href="dns_8c-source.html#l00168">dns_run()</a>, and <a class="el" href="tcp_8c-source.html#l00808">tcp_poll()</a>.    </td>  </tr></table><a name="a7" doxytag="timers.h::decrement_timers"></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 decrement_timers </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></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Vladan Jovanovic (<a href="mailto:vladan.jovanovic@violasystems.com">vladan.jovanovic@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>18.07.2001</dl>Invoke this function from timer interrupt to decrement timer counter values <p>Definition at line <a class="el" href="timers_8c-source.html#l00248">248</a> of file <a class="el" href="timers_8c-source.html">timers.c</a>.<p>References <a class="el" href="system_8h-source.html#l00079">FALSE</a>, <a class="el" href="timers_8h-source.html#l00077">NUMTIMERS</a>, and <a class="el" href="timers_8c.html#a2">timer_pool</a>.    </td>  </tr></table><hr><address style="align: right;"><small>Generated on Sun Aug 3 20:33:00 2003 for OpenTCP by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

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