doc/doxygen/html/timer_8c.html
changeset 215 f49e5a6b7804
parent 210 6b5a4c21e061
child 240 34654679f262
--- a/doc/doxygen/html/timer_8c.html	Fri Jun 08 09:02:43 2007 +0200
+++ b/doc/doxygen/html/timer_8c.html	Fri Jun 08 09:23:56 2007 +0200
@@ -1,6 +1,6 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
-<title>CanFestival: /home/epimerde/documents/tc11/CanFestival-3/src/timer.c File Reference</title>
+<title>CanFestival: src/timer.c File Reference</title>
 <link href="doxygen.css" rel="stylesheet" type="text/css">
 <link href="tabs.css" rel="stylesheet" type="text/css">
 </head><body>
@@ -8,18 +8,39 @@
 <div class="tabs">
   <ul>
     <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
+    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
     <li id="current"><a href="files.html"><span>Files</span></a></li>
+    <li><a href="dirs.html"><span>Directories</span></a></li>
   </ul></div>
 <div class="tabs">
   <ul>
     <li><a href="files.html"><span>File&nbsp;List</span></a></li>
     <li><a href="globals.html"><span>Globals</span></a></li>
   </ul></div>
-<h1>/home/epimerde/documents/tc11/CanFestival-3/src/timer.c File Reference</h1><code>#include &lt;applicfg.h&gt;</code><br>
-<code>#include &quot;timer.h&quot;</code><br>
-
-<p>
-Include dependency graph for timer.c:<p><center><img src="timer_8c__incl.png" border="0" usemap="#/home/epimerde/documents/tc11/CanFestival-3/src/timer.c_map" alt=""></center>
+<div class="nav">
+<a class="el" href="dir_c0a169d39c08973f879fd54f07b9e9f7.html">src</a></div>
+<h1>timer.c File Reference</h1><code>#include &lt;<a class="el" href="win32_2applicfg_8h-source.html">applicfg.h</a>&gt;</code><br>
+<code>#include &quot;<a class="el" href="timer_8h-source.html">timer.h</a>&quot;</code><br>
+
+<p>
+Include dependency graph for timer.c:<p><center><img src="timer_8c__incl.png" border="0" usemap="#src/timer.c_map" alt=""></center>
+<map name="src/timer.c_map">
+<area href="win32_2applicfg_8h.html" shape="rect" coords="567,349,655,373" alt="">
+<area href="timer_8h.html" shape="rect" coords="147,301,216,325" alt="">
+<area href="win32_2timerscfg_8h.html" shape="rect" coords="264,56,363,80" alt="">
+<area href="data_8h.html" shape="rect" coords="282,301,346,325" alt="">
+<area href="def_8h.html" shape="rect" coords="583,155,639,179" alt="">
+<area href="can_8h.html" shape="rect" coords="435,301,494,325" alt="">
+<area href="objdictdef_8h.html" shape="rect" coords="414,445,515,469" alt="">
+<area href="objacces_8h.html" shape="rect" coords="418,349,511,373" alt="">
+<area href="sdo_8h.html" shape="rect" coords="435,56,494,80" alt="">
+<area href="pdo_8h.html" shape="rect" coords="435,203,494,227" alt="">
+<area href="states_8h.html" shape="rect" coords="427,397,502,421" alt="">
+<area href="lifegrd_8h.html" shape="rect" coords="426,541,503,565" alt="">
+<area href="sync_8h.html" shape="rect" coords="431,493,498,517" alt="">
+<area href="nmtMaster_8h.html" shape="rect" coords="411,155,518,179" alt="">
+<area href="config_8h.html" shape="rect" coords="714,155,788,179" alt="">
+</map>
 
 <p>
 <a href="timer_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
@@ -28,14 +49,14 @@
 <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>
 
 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
-<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> (CO_Data *d, UNS32 id, TimerCallback_t callback, TIMEVAL value, TIMEVAL period)</td></tr>
+<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>
 
 <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>
 
 <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>
 
 <tr><td colspan="2"><br><h2>Variables</h2></td></tr>
-<tr><td class="memItemLeft" nowrap align="right" valign="top">s_timer_entry&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>
+<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>
 
 <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>
 
@@ -102,11 +123,9 @@
 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>
 
 <p>
-Quick and dirty. system timer will continue to be trigged, but no action will be preformed. 
-<p>
 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>.
 <p>
-References <a class="el" href="timer_8c-source.html#l00042">last_timer_raw</a>, and <a class="el" href="timer_8c-source.html#l00039">timers</a>.
+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>.
 <p>
 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>.
 </div>
@@ -118,7 +137,7 @@
         <tr>
           <td class="memname">TIMER_HANDLE SetAlarm           </td>
           <td>(</td>
-          <td class="paramtype">CO_Data *&nbsp;</td>
+          <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> *&nbsp;</td>
           <td class="paramname"> <em>d</em>, </td>
         </tr>
         <tr>
@@ -130,7 +149,7 @@
         <tr>
           <td class="paramkey"></td>
           <td></td>
-          <td class="paramtype">TimerCallback_t&nbsp;</td>
+          <td class="paramtype"><a class="el" href="timer_8h.html#f7d102e060339d3730ceae5fea03691b">TimerCallback_t</a>&nbsp;</td>
           <td class="paramname"> <em>callback</em>, </td>
         </tr>
         <tr>
@@ -168,20 +187,11 @@
 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>
 
 <p>
-in order to decide new timer setting we have to run over all timer rows<p>
-if something to store<p>
-and empty row<p>
-just store<p>
-if successfull<p>
-set next wakeup alarm if new entry is sooner than others, or if it is alone<p>
-printf("elapsed_time=%d real_timer_value=%d total_sleep_time=%d\n", elapsed_time, real_timer_value, total_sleep_time);<p>
-printf("SetAlarm() return %d\n", row_number); 
-<p>
 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>.
 <p>
-References <a class="el" href="timer_8c-source.html#l00042">last_timer_raw</a>, and <a class="el" href="timer_8c-source.html#l00039">timers</a>.
-<p>
-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>, and <a class="el" href="sync_8c-source.html#l00080">startSYNC()</a>.
+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>.
+<p>
+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>.
 </div>
 </div><p>
 <a class="anchor" name="fa75192a3238525618f8cb83004930cc"></a><!-- doxytag: member="timer.c::TimeDispatch" ref="fa75192a3238525618f8cb83004930cc" args="()" -->
@@ -191,6 +201,7 @@
         <tr>
           <td class="memname">void TimeDispatch           </td>
           <td>(</td>
+          <td class="paramtype">void&nbsp;</td>
           <td class="paramname">          </td>
           <td>&nbsp;)&nbsp;</td>
           <td width="100%"></td>
@@ -202,27 +213,17 @@
 <p>
 ------ TimeDispatch is called on each timer expiration ---- 
 <p>
-used to compute when should normaly occur next wakeup<p>
-First run : change timer state depending on time<p>
-Get time since timer signal<p>
-if row is active<p>
-to be trigged<p>
-if simply outdated<p>
-ask for trig<p>
-or period have expired<p>
-set val as interval, with overrun correction<p>
-Check if this new timer value is the soonest<p>
-Each armed timer value in decremented.<p>
-Check if this new timer value is the soonest<p>
-Remember how much time we should sleep.<p>
-Set timer to soonest occurence<p>
-Then trig them or not.<p>
-reset trig state (will be free if not periodic)<p>
-trig ! 
-<p>
 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>.
 <p>
-References <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_8c-source.html#l00039">timers</a>, and <a class="el" href="timer_8c-source.html#l00041">total_sleep_time</a>.
+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>.
+<p>
+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>.
+<p>
+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>
+<map name="timer_8c_fa75192a3238525618f8cb83004930cc_cgraph_map">
+<area href="canOpenDriver_8c.html#24dbe63e88d184388542037d16a8208d" shape="rect" coords="171,6,302,30" alt="">
+</map>
+
 </div>
 </div><p>
 <hr><h2>Variable Documentation</h2>
@@ -250,7 +251,7 @@
 <div class="memproto">
       <table class="memname">
         <tr>
-          <td class="memname">s_timer_entry <a class="el" href="timer_8c.html#a74e2cf2504bfd18b12f112c7aaad845">timers</a>[MAX_NB_TIMER] = {{TIMER_FREE, NULL, NULL, 0, 0, 0},}          </td>
+          <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>
         </tr>
       </table>
 </div>
@@ -283,7 +284,7 @@
 Referenced by <a class="el" href="timer_8c-source.html#l00131">TimeDispatch()</a>.
 </div>
 </div><p>
-<hr size="1"><address style="align: right;"><small>Generated on Tue Jun 5 18:32:11 2007 for CanFestival by&nbsp;
+<hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:52:17 2007 for CanFestival by&nbsp;
 <a href="http://www.doxygen.org/index.html">
 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
 </body>