doc/doxygen/html/timer_8c.html
author lbessard
Thu, 18 Oct 2007 10:23:45 +0200
changeset 310 1975e546178b
parent 240 34654679f262
permissions -rw-r--r--
Bugs on EDS import fixed
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">
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    21
<a class="el" href="dir_0aa10e4f705947227e11e7ccb081fbe4.html">src</a></div>
215
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">
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    28
<area href="win32_2applicfg_8h.html" shape="rect" coords="608,296,683,323" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    29
<area href="timer_8h.html" shape="rect" coords="132,296,191,323" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    30
<area href="win32_2timerscfg_8h.html" shape="rect" coords="241,587,321,613" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    31
<area href="data_8h.html" shape="rect" coords="255,296,308,323" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    32
<area href="def_8h.html" shape="rect" coords="511,549,559,576" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    33
<area href="can_8h.html" shape="rect" coords="511,448,559,475" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    34
<area href="objdictdef_8h.html" shape="rect" coords="373,397,459,424" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    35
<area href="objacces_8h.html" shape="rect" coords="377,93,455,120" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    36
<area href="sdo_8h.html" shape="rect" coords="392,600,440,627" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    37
<area href="pdo_8h.html" shape="rect" coords="391,499,441,525" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    38
<area href="states_8h.html" shape="rect" coords="385,245,447,272" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    39
<area href="lifegrd_8h.html" shape="rect" coords="383,296,449,323" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    40
<area href="sync_8h.html" shape="rect" coords="388,144,444,171" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    41
<area href="nmtMaster_8h.html" shape="rect" coords="372,195,460,221" alt="">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    42
<area href="config_8h.html" shape="rect" coords="613,549,677,576" alt="">
215
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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
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#d2d95744d6e355721e7bbc2c07d934a4">min_val</a>(a, b)&nbsp;&nbsp;&nbsp;((a&lt;b)?a:b)</td></tr>
207
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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
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#956b22f24089db4c367f40199f838a20">SetAlarm</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 id, <a class="el" href="timer_8h.html#c8436e7543fa1329b00e570246071313">TimerCallback_t</a> callback, TIMEVAL value, TIMEVAL period)</td></tr>
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    53
34654679f262 Udpated doxygen
etisserant
parents: 215
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#12fe6467e1df03cc40dd6f76123c99f6">DelAlarm</a> (TIMER_HANDLE handle)</td></tr>
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    55
34654679f262 Udpated doxygen
etisserant
parents: 215
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#7a5a515821c2e4fb2f66bac72389da00">TimeDispatch</a> ()</td></tr>
207
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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
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#adb4c8d5876b377463d33bdeda56b575">timers</a> [MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},}</td></tr>
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    60
34654679f262 Udpated doxygen
etisserant
parents: 215
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#242986a224c5a02d6341dd5bfdf71008">total_sleep_time</a> = TIMEVAL_MAX</td></tr>
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    62
34654679f262 Udpated doxygen
etisserant
parents: 215
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#4afd63ff2f23fe7cd60f0d82e78c4426">last_timer_raw</a> = -1</td></tr>
207
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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
    72
<a class="anchor" name="d2d95744d6e355721e7bbc2c07d934a4"></a><!-- doxytag: member="timer.c::min_val" ref="d2d95744d6e355721e7bbc2c07d934a4" args="(a, b)" -->
207
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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   100
<a class="anchor" name="12fe6467e1df03cc40dd6f76123c99f6"></a><!-- doxytag: member="timer.c::DelAlarm" ref="12fe6467e1df03cc40dd6f76123c99f6" args="(TIMER_HANDLE handle)" -->
207
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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   130
Referenced by <a class="el" href="pdo_8c-source.html#l00442">_sendPDOevent()</a>, <a class="el" href="lifegrd_8c-source.html#l00236">heartbeatStop()</a>, <a class="el" href="pdo_8c-source.html#l00632">PDOStop()</a>, <a class="el" href="lifegrd_8c-source.html#l00081">proceedNODE_GUARD()</a>, <a class="el" href="pdo_8c-source.html#l00141">proceedPDO()</a>, <a class="el" href="lifegrd_8c-source.html#l00161">ProducerHearbeatAlarm()</a>, <a class="el" href="sync_8c-source.html#l00105">stopSYNC()</a>, and <a class="el" href="pdo_8c-source.html#l00573">TPDO_Communication_Parameter_Callback()</a>.
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   131
</div>
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   132
</div><p>
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   133
<a class="anchor" name="956b22f24089db4c367f40199f838a20"></a><!-- doxytag: member="timer.c::SetAlarm" ref="956b22f24089db4c367f40199f838a20" args="(CO_Data *d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period)" -->
207
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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   152
          <td class="paramtype"><a class="el" href="timer_8h.html#c8436e7543fa1329b00e570246071313">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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   194
Referenced by <a class="el" href="pdo_8c-source.html#l00442">_sendPDOevent()</a>, <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>.
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   195
</div>
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   196
</div><p>
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   197
<a class="anchor" name="7a5a515821c2e4fb2f66bac72389da00"></a><!-- doxytag: member="timer.c::TimeDispatch" ref="7a5a515821c2e4fb2f66bac72389da00" args="()" -->
207
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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   222
Here is the call graph for this function:<p><center><img src="timer_8c_7a5a515821c2e4fb2f66bac72389da00_cgraph.png" border="0" usemap="#timer_8c_7a5a515821c2e4fb2f66bac72389da00_cgraph_map" alt=""></center>
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   223
<map name="timer_8c_7a5a515821c2e4fb2f66bac72389da00_cgraph_map">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   224
<area href="canOpenDriver_8c.html#38b23a8ee3748bca3415967b90df1e15" shape="rect" coords="153,5,260,32" alt="">
215
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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   230
<a class="anchor" name="4afd63ff2f23fe7cd60f0d82e78c4426"></a><!-- doxytag: member="timer.c::last_timer_raw" ref="4afd63ff2f23fe7cd60f0d82e78c4426" args="" -->
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   231
<div class="memitem">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   232
<div class="memproto">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   233
      <table class="memname">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   234
        <tr>
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   235
          <td class="memname">TIMER_HANDLE <a class="el" href="timer_8c.html#4afd63ff2f23fe7cd60f0d82e78c4426">last_timer_raw</a> = -1          </td>
207
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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   249
<a class="anchor" name="adb4c8d5876b377463d33bdeda56b575"></a><!-- doxytag: member="timer.c::timers" ref="adb4c8d5876b377463d33bdeda56b575" args="[MAX_NB_TIMER]" -->
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   250
<div class="memitem">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   251
<div class="memproto">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   252
      <table class="memname">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   253
        <tr>
34654679f262 Udpated doxygen
etisserant
parents: 215
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#adb4c8d5876b377463d33bdeda56b575">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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   268
<a class="anchor" name="242986a224c5a02d6341dd5bfdf71008"></a><!-- doxytag: member="timer.c::total_sleep_time" ref="242986a224c5a02d6341dd5bfdf71008" args="" -->
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   269
<div class="memitem">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   270
<div class="memproto">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   271
      <table class="memname">
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   272
        <tr>
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   273
          <td class="memname">TIMEVAL <a class="el" href="timer_8c.html#242986a224c5a02d6341dd5bfdf71008">total_sleep_time</a> = TIMEVAL_MAX          </td>
207
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>
240
34654679f262 Udpated doxygen
etisserant
parents: 215
diff changeset
   287
<hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:42 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>