doc/doxygen/html/timer_8c.html
author etisserant
Fri, 29 Jun 2007 19:48:22 +0200
changeset 234 5a17bcb520ef
parent 215 f49e5a6b7804
child 240 34654679f262
permissions -rw-r--r--
cleanup
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
     3
<title>CanFestival: src/timer.c File Reference</title>
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     4
<link href="doxygen.css" rel="stylesheet" type="text/css">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     5
<link href="tabs.css" rel="stylesheet" type="text/css">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     6
</head><body>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     7
<!-- Generated by Doxygen 1.5.1 -->
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     8
<div class="tabs">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
     9
  <ul>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    10
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    11
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    12
    <li id="current"><a href="files.html"><span>Files</span></a></li>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    13
    <li><a href="dirs.html"><span>Directories</span></a></li>
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    14
  </ul></div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    15
<div class="tabs">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    16
  <ul>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    17
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    18
    <li><a href="globals.html"><span>Globals</span></a></li>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    19
  </ul></div>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    20
<div class="nav">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    21
<a class="el" href="dir_c0a169d39c08973f879fd54f07b9e9f7.html">src</a></div>
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    22
<h1>timer.c File Reference</h1><code>#include &lt;<a class="el" href="win32_2applicfg_8h-source.html">applicfg.h</a>&gt;</code><br>
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    23
<code>#include &quot;<a class="el" href="timer_8h-source.html">timer.h</a>&quot;</code><br>
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    24
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    25
<p>
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    26
Include dependency graph for timer.c:<p><center><img src="timer_8c__incl.png" border="0" usemap="#src/timer.c_map" alt=""></center>
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    27
<map name="src/timer.c_map">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    28
<area href="win32_2applicfg_8h.html" shape="rect" coords="567,349,655,373" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    29
<area href="timer_8h.html" shape="rect" coords="147,301,216,325" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    30
<area href="win32_2timerscfg_8h.html" shape="rect" coords="264,56,363,80" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    31
<area href="data_8h.html" shape="rect" coords="282,301,346,325" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    32
<area href="def_8h.html" shape="rect" coords="583,155,639,179" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    33
<area href="can_8h.html" shape="rect" coords="435,301,494,325" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    34
<area href="objdictdef_8h.html" shape="rect" coords="414,445,515,469" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    35
<area href="objacces_8h.html" shape="rect" coords="418,349,511,373" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    36
<area href="sdo_8h.html" shape="rect" coords="435,56,494,80" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    37
<area href="pdo_8h.html" shape="rect" coords="435,203,494,227" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    38
<area href="states_8h.html" shape="rect" coords="427,397,502,421" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    39
<area href="lifegrd_8h.html" shape="rect" coords="426,541,503,565" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    40
<area href="sync_8h.html" shape="rect" coords="431,493,498,517" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    41
<area href="nmtMaster_8h.html" shape="rect" coords="411,155,518,179" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    42
<area href="config_8h.html" shape="rect" coords="714,155,788,179" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    43
</map>
210
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
    44
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
    45
<p>
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    46
<a href="timer_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    47
<tr><td></td></tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    48
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    49
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#8536312cebeeea3a23dc0027800122c9">min_val</a>(a, b)&nbsp;&nbsp;&nbsp;((a&lt;b)?a:b)</td></tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    50
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    51
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    52
<tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#11c2616d78f06ed9144ef662f757b128">SetAlarm</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id, <a class="el" href="timer_8h.html#f7d102e060339d3730ceae5fea03691b">TimerCallback_t</a> callback, TIMEVAL value, TIMEVAL period)</td></tr>
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    53
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    54
<tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21">DelAlarm</a> (TIMER_HANDLE handle)</td></tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    55
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    56
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#fa75192a3238525618f8cb83004930cc">TimeDispatch</a> ()</td></tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    57
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    58
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
    59
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structstruct__s__timer__entry.html">s_timer_entry</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#a74e2cf2504bfd18b12f112c7aaad845">timers</a> [MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},}</td></tr>
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    60
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    61
<tr><td class="memItemLeft" nowrap align="right" valign="top">TIMEVAL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#5e9651eed13d70bcce9bdf3489a72a3d">total_sleep_time</a> = TIMEVAL_MAX</td></tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    62
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    63
<tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#1dab7b9a29bdee8b1931f8ea90685c6f">last_timer_raw</a> = -1</td></tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    64
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    65
</table>
210
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
    66
<hr><a name="_details"></a><h2>Detailed Description</h2>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
    67
<dl class="author" compact><dt><b>Author:</b></dt><dd>Edouard TISSERANT and Francis DUPIN </dd></dl>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
    68
<dl class="date" compact><dt><b>Date:</b></dt><dd>Tue Jun 5 09:32:32 2007 </dd></dl>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
    69
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
    70
<p>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
    71
Definition in file <a class="el" href="timer_8c-source.html">timer.c</a>.<hr><h2>Define Documentation</h2>
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    72
<a class="anchor" name="8536312cebeeea3a23dc0027800122c9"></a><!-- doxytag: member="timer.c::min_val" ref="8536312cebeeea3a23dc0027800122c9" args="(a, b)" -->
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    73
<div class="memitem">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    74
<div class="memproto">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    75
      <table class="memname">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    76
        <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    77
          <td class="memname">#define min_val          </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    78
          <td>(</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    79
          <td class="paramtype">a,         <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    80
          <td class="paramkey"></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    81
          <td></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    82
          <td class="paramtype">b&nbsp;</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    83
          <td class="paramname">          </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    84
          <td>&nbsp;)&nbsp;</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    85
          <td width="100%">&nbsp;&nbsp;&nbsp;((a&lt;b)?a:b)</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    86
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    87
      </table>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    88
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    89
<div class="memdoc">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    90
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    91
<p>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    92
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    93
<p>
210
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
    94
Definition at line <a class="el" href="timer_8c-source.html#l00044">44</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>.
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
    95
<p>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
    96
Referenced by <a class="el" href="timer_8c-source.html#l00131">TimeDispatch()</a>.
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    97
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    98
</div><p>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
    99
<hr><h2>Function Documentation</h2>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   100
<a class="anchor" name="991b3cfaac2f201b14d5530f75985c21"></a><!-- doxytag: member="timer.c::DelAlarm" ref="991b3cfaac2f201b14d5530f75985c21" args="(TIMER_HANDLE handle)" -->
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   101
<div class="memitem">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   102
<div class="memproto">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   103
      <table class="memname">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   104
        <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   105
          <td class="memname">TIMER_HANDLE DelAlarm           </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   106
          <td>(</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   107
          <td class="paramtype">TIMER_HANDLE&nbsp;</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   108
          <td class="paramname"> <em>handle</em>          </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   109
          <td>&nbsp;)&nbsp;</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   110
          <td width="100%"></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   111
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   112
      </table>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   113
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   114
<div class="memdoc">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   115
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   116
<p>
210
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   117
----- Use this to remove an alarm ----<p>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   118
<dl compact><dt><b>Parameters:</b></dt><dd>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   119
  <table border="0" cellspacing="2" cellpadding="0">
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   120
    <tr><td valign="top"></td><td valign="top"><em>handle</em>&nbsp;</td><td></td></tr>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   121
  </table>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   122
</dl>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   123
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   124
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   125
<p>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   126
Definition at line <a class="el" href="timer_8c-source.html#l00112">112</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>.
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   127
<p>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   128
References <a class="el" href="timer_8c-source.html#l00042">last_timer_raw</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="timer_8h-source.html#l00044">struct_s_timer_entry::state</a>, and <a class="el" href="timer_8c-source.html#l00039">timers</a>.
210
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   129
<p>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   130
Referenced by <a class="el" href="lifegrd_8c-source.html#l00236">heartbeatStop()</a>, <a class="el" href="lifegrd_8c-source.html#l00081">proceedNODE_GUARD()</a>, <a class="el" href="lifegrd_8c-source.html#l00161">ProducerHearbeatAlarm()</a>, and <a class="el" href="sync_8c-source.html#l00105">stopSYNC()</a>.
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   131
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   132
</div><p>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   133
<a class="anchor" name="11c2616d78f06ed9144ef662f757b128"></a><!-- doxytag: member="timer.c::SetAlarm" ref="11c2616d78f06ed9144ef662f757b128" args="(CO_Data *d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period)" -->
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   134
<div class="memitem">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   135
<div class="memproto">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   136
      <table class="memname">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   137
        <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   138
          <td class="memname">TIMER_HANDLE SetAlarm           </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   139
          <td>(</td>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   140
          <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   141
          <td class="paramname"> <em>d</em>, </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   142
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   143
        <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   144
          <td class="paramkey"></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   145
          <td></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   146
          <td class="paramtype">UNS32&nbsp;</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   147
          <td class="paramname"> <em>id</em>, </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   148
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   149
        <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   150
          <td class="paramkey"></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   151
          <td></td>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   152
          <td class="paramtype"><a class="el" href="timer_8h.html#f7d102e060339d3730ceae5fea03691b">TimerCallback_t</a>&nbsp;</td>
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   153
          <td class="paramname"> <em>callback</em>, </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   154
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   155
        <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   156
          <td class="paramkey"></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   157
          <td></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   158
          <td class="paramtype">TIMEVAL&nbsp;</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   159
          <td class="paramname"> <em>value</em>, </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   160
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   161
        <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   162
          <td class="paramkey"></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   163
          <td></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   164
          <td class="paramtype">TIMEVAL&nbsp;</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   165
          <td class="paramname"> <em>period</em></td><td>&nbsp;</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   166
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   167
        <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   168
          <td></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   169
          <td>)</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   170
          <td></td><td></td><td width="100%"></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   171
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   172
      </table>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   173
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   174
<div class="memdoc">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   175
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   176
<p>
210
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   177
------- Use this to declare a new alarm ------<p>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   178
<dl compact><dt><b>Parameters:</b></dt><dd>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   179
  <table border="0" cellspacing="2" cellpadding="0">
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   180
    <tr><td valign="top"></td><td valign="top"><em>d</em>&nbsp;</td><td></td></tr>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   181
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td></td></tr>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   182
    <tr><td valign="top"></td><td valign="top"><em>callback</em>&nbsp;</td><td></td></tr>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   183
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td></td></tr>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   184
    <tr><td valign="top"></td><td valign="top"><em>period</em>&nbsp;</td><td></td></tr>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   185
  </table>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   186
</dl>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   187
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   188
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   189
<p>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   190
Definition at line <a class="el" href="timer_8c-source.html#l00057">57</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>.
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   191
<p>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   192
References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="timer_8c-source.html#l00042">last_timer_raw</a>, <a class="el" href="config_8h-source.html#l00032">MAX_NB_TIMER</a>, <a class="el" href="timer_8h-source.html#l00029">TIMER_HANDLE</a>, and <a class="el" href="timer_8c-source.html#l00039">timers</a>.
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   193
<p>
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   194
Referenced by <a class="el" href="lifegrd_8c-source.html#l00206">heartbeatInit()</a>, <a class="el" href="lifegrd_8c-source.html#l00081">proceedNODE_GUARD()</a>, <a class="el" href="sync_8c-source.html#l00080">startSYNC()</a>, and <a class="el" href="timers__unix_8c-source.html#l00062">StartTimerLoop()</a>.
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   195
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   196
</div><p>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   197
<a class="anchor" name="fa75192a3238525618f8cb83004930cc"></a><!-- doxytag: member="timer.c::TimeDispatch" ref="fa75192a3238525618f8cb83004930cc" args="()" -->
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   198
<div class="memitem">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   199
<div class="memproto">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   200
      <table class="memname">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   201
        <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   202
          <td class="memname">void TimeDispatch           </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   203
          <td>(</td>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   204
          <td class="paramtype">void&nbsp;</td>
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   205
          <td class="paramname">          </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   206
          <td>&nbsp;)&nbsp;</td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   207
          <td width="100%"></td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   208
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   209
      </table>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   210
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   211
<div class="memdoc">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   212
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   213
<p>
210
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   214
------ TimeDispatch is called on each timer expiration ---- 
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   215
<p>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   216
Definition at line <a class="el" href="timer_8c-source.html#l00131">131</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>.
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   217
<p>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   218
References <a class="el" href="canOpenDriver_8c-source.html#l00066">getElapsedTime()</a>, <a class="el" href="timer_8c-source.html#l00042">last_timer_raw</a>, <a class="el" href="timer_8c-source.html#l00044">min_val</a>, <a class="el" href="timer_8h-source.html#l00029">TIMER_HANDLE</a>, <a class="el" href="timer_8c-source.html#l00039">timers</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00150">TIMEVAL</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00153">TIMEVAL_MAX</a>, and <a class="el" href="timer_8c-source.html#l00041">total_sleep_time</a>.
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   219
<p>
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   220
Referenced by <a class="el" href="timers__win32_8cpp-source.html#l00151">class_timers::timer_loop_thread_proc()</a>, <a class="el" href="timers__unix_8c-source.html#l00030">timer_notify()</a>, and <a class="el" href="timers__xeno_8c-source.html#l00045">timerloop_task_proc()</a>.
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   221
<p>
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   222
Here is the call graph for this function:<p><center><img src="timer_8c_fa75192a3238525618f8cb83004930cc_cgraph.png" border="0" usemap="#timer_8c_fa75192a3238525618f8cb83004930cc_cgraph_map" alt=""></center>
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   223
<map name="timer_8c_fa75192a3238525618f8cb83004930cc_cgraph_map">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   224
<area href="canOpenDriver_8c.html#24dbe63e88d184388542037d16a8208d" shape="rect" coords="171,6,302,30" alt="">
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   225
</map>
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   226
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   227
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   228
</div><p>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   229
<hr><h2>Variable Documentation</h2>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   230
<a class="anchor" name="1dab7b9a29bdee8b1931f8ea90685c6f"></a><!-- doxytag: member="timer.c::last_timer_raw" ref="1dab7b9a29bdee8b1931f8ea90685c6f" args="" -->
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   231
<div class="memitem">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   232
<div class="memproto">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   233
      <table class="memname">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   234
        <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   235
          <td class="memname">TIMER_HANDLE <a class="el" href="timer_8c.html#1dab7b9a29bdee8b1931f8ea90685c6f">last_timer_raw</a> = -1          </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   236
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   237
      </table>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   238
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   239
<div class="memdoc">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   240
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   241
<p>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   242
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   243
<p>
210
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   244
Definition at line <a class="el" href="timer_8c-source.html#l00042">42</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>.
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   245
<p>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   246
Referenced by <a class="el" href="timer_8c-source.html#l00112">DelAlarm()</a>, <a class="el" href="timer_8c-source.html#l00057">SetAlarm()</a>, and <a class="el" href="timer_8c-source.html#l00131">TimeDispatch()</a>.
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   247
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   248
</div><p>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   249
<a class="anchor" name="a74e2cf2504bfd18b12f112c7aaad845"></a><!-- doxytag: member="timer.c::timers" ref="a74e2cf2504bfd18b12f112c7aaad845" args="[MAX_NB_TIMER]" -->
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   250
<div class="memitem">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   251
<div class="memproto">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   252
      <table class="memname">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   253
        <tr>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   254
          <td class="memname"><a class="el" href="structstruct__s__timer__entry.html">s_timer_entry</a> <a class="el" href="timer_8c.html#a74e2cf2504bfd18b12f112c7aaad845">timers</a>[MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},}          </td>
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   255
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   256
      </table>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   257
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   258
<div class="memdoc">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   259
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   260
<p>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   261
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   262
<p>
210
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   263
Definition at line <a class="el" href="timer_8c-source.html#l00039">39</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>.
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   264
<p>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   265
Referenced by <a class="el" href="timer_8c-source.html#l00112">DelAlarm()</a>, <a class="el" href="timer_8c-source.html#l00057">SetAlarm()</a>, and <a class="el" href="timer_8c-source.html#l00131">TimeDispatch()</a>.
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   266
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   267
</div><p>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   268
<a class="anchor" name="5e9651eed13d70bcce9bdf3489a72a3d"></a><!-- doxytag: member="timer.c::total_sleep_time" ref="5e9651eed13d70bcce9bdf3489a72a3d" args="" -->
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   269
<div class="memitem">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   270
<div class="memproto">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   271
      <table class="memname">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   272
        <tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   273
          <td class="memname">TIMEVAL <a class="el" href="timer_8c.html#5e9651eed13d70bcce9bdf3489a72a3d">total_sleep_time</a> = TIMEVAL_MAX          </td>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   274
        </tr>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   275
      </table>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   276
</div>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   277
<div class="memdoc">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   278
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   279
<p>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   280
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   281
<p>
210
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   282
Definition at line <a class="el" href="timer_8c-source.html#l00041">41</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>.
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   283
<p>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   284
Referenced by <a class="el" href="timer_8c-source.html#l00131">TimeDispatch()</a>.
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   285
</div>
6b5a4c21e061 Manual and Documentation finish
nico
parents: 207
diff changeset
   286
</div><p>
215
f49e5a6b7804 Manual and Documentation finish
nico
parents: 210
diff changeset
   287
<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:52:17 2007 for CanFestival by&nbsp;
207
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   288
<a href="http://www.doxygen.org/index.html">
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   289
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   290
</body>
b6572d0336c3 First doxygen implementation
nico
parents:
diff changeset
   291
</html>