16 <ul> |
16 <ul> |
17 <li><a href="files.html"><span>File List</span></a></li> |
17 <li><a href="files.html"><span>File List</span></a></li> |
18 <li><a href="globals.html"><span>Globals</span></a></li> |
18 <li><a href="globals.html"><span>Globals</span></a></li> |
19 </ul></div> |
19 </ul></div> |
20 <div class="nav"> |
20 <div class="nav"> |
21 <a class="el" href="dir_c0a169d39c08973f879fd54f07b9e9f7.html">src</a></div> |
21 <a class="el" href="dir_0aa10e4f705947227e11e7ccb081fbe4.html">src</a></div> |
22 <h1>timer.c File Reference</h1><code>#include <<a class="el" href="win32_2applicfg_8h-source.html">applicfg.h</a>></code><br> |
22 <h1>timer.c File Reference</h1><code>#include <<a class="el" href="win32_2applicfg_8h-source.html">applicfg.h</a>></code><br> |
23 <code>#include "<a class="el" href="timer_8h-source.html">timer.h</a>"</code><br> |
23 <code>#include "<a class="el" href="timer_8h-source.html">timer.h</a>"</code><br> |
24 |
24 |
25 <p> |
25 <p> |
26 Include dependency graph for timer.c:<p><center><img src="timer_8c__incl.png" border="0" usemap="#src/timer.c_map" alt=""></center> |
26 Include dependency graph for timer.c:<p><center><img src="timer_8c__incl.png" border="0" usemap="#src/timer.c_map" alt=""></center> |
27 <map name="src/timer.c_map"> |
27 <map name="src/timer.c_map"> |
28 <area href="win32_2applicfg_8h.html" shape="rect" coords="567,349,655,373" alt=""> |
28 <area href="win32_2applicfg_8h.html" shape="rect" coords="608,296,683,323" alt=""> |
29 <area href="timer_8h.html" shape="rect" coords="147,301,216,325" alt=""> |
29 <area href="timer_8h.html" shape="rect" coords="132,296,191,323" alt=""> |
30 <area href="win32_2timerscfg_8h.html" shape="rect" coords="264,56,363,80" alt=""> |
30 <area href="win32_2timerscfg_8h.html" shape="rect" coords="241,587,321,613" alt=""> |
31 <area href="data_8h.html" shape="rect" coords="282,301,346,325" alt=""> |
31 <area href="data_8h.html" shape="rect" coords="255,296,308,323" alt=""> |
32 <area href="def_8h.html" shape="rect" coords="583,155,639,179" alt=""> |
32 <area href="def_8h.html" shape="rect" coords="511,549,559,576" alt=""> |
33 <area href="can_8h.html" shape="rect" coords="435,301,494,325" alt=""> |
33 <area href="can_8h.html" shape="rect" coords="511,448,559,475" alt=""> |
34 <area href="objdictdef_8h.html" shape="rect" coords="414,445,515,469" alt=""> |
34 <area href="objdictdef_8h.html" shape="rect" coords="373,397,459,424" alt=""> |
35 <area href="objacces_8h.html" shape="rect" coords="418,349,511,373" alt=""> |
35 <area href="objacces_8h.html" shape="rect" coords="377,93,455,120" alt=""> |
36 <area href="sdo_8h.html" shape="rect" coords="435,56,494,80" alt=""> |
36 <area href="sdo_8h.html" shape="rect" coords="392,600,440,627" alt=""> |
37 <area href="pdo_8h.html" shape="rect" coords="435,203,494,227" alt=""> |
37 <area href="pdo_8h.html" shape="rect" coords="391,499,441,525" alt=""> |
38 <area href="states_8h.html" shape="rect" coords="427,397,502,421" alt=""> |
38 <area href="states_8h.html" shape="rect" coords="385,245,447,272" alt=""> |
39 <area href="lifegrd_8h.html" shape="rect" coords="426,541,503,565" alt=""> |
39 <area href="lifegrd_8h.html" shape="rect" coords="383,296,449,323" alt=""> |
40 <area href="sync_8h.html" shape="rect" coords="431,493,498,517" alt=""> |
40 <area href="sync_8h.html" shape="rect" coords="388,144,444,171" alt=""> |
41 <area href="nmtMaster_8h.html" shape="rect" coords="411,155,518,179" alt=""> |
41 <area href="nmtMaster_8h.html" shape="rect" coords="372,195,460,221" alt=""> |
42 <area href="config_8h.html" shape="rect" coords="714,155,788,179" alt=""> |
42 <area href="config_8h.html" shape="rect" coords="613,549,677,576" alt=""> |
43 </map> |
43 </map> |
44 |
44 |
45 <p> |
45 <p> |
46 <a href="timer_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
46 <a href="timer_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
47 <tr><td></td></tr> |
47 <tr><td></td></tr> |
48 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
48 <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
49 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#8536312cebeeea3a23dc0027800122c9">min_val</a>(a, b) ((a<b)?a:b)</td></tr> |
49 <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#d2d95744d6e355721e7bbc2c07d934a4">min_val</a>(a, b) ((a<b)?a:b)</td></tr> |
50 |
50 |
51 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
51 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE </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> |
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE </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> |
53 |
53 |
54 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#991b3cfaac2f201b14d5530f75985c21">DelAlarm</a> (TIMER_HANDLE handle)</td></tr> |
54 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6">DelAlarm</a> (TIMER_HANDLE handle)</td></tr> |
55 |
55 |
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#fa75192a3238525618f8cb83004930cc">TimeDispatch</a> ()</td></tr> |
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#7a5a515821c2e4fb2f66bac72389da00">TimeDispatch</a> ()</td></tr> |
57 |
57 |
58 <tr><td colspan="2"><br><h2>Variables</h2></td></tr> |
58 <tr><td colspan="2"><br><h2>Variables</h2></td></tr> |
59 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structstruct__s__timer__entry.html">s_timer_entry</a> </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> |
59 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structstruct__s__timer__entry.html">s_timer_entry</a> </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> |
60 |
60 |
61 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMEVAL </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#5e9651eed13d70bcce9bdf3489a72a3d">total_sleep_time</a> = TIMEVAL_MAX</td></tr> |
61 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMEVAL </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#242986a224c5a02d6341dd5bfdf71008">total_sleep_time</a> = TIMEVAL_MAX</td></tr> |
62 |
62 |
63 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#1dab7b9a29bdee8b1931f8ea90685c6f">last_timer_raw</a> = -1</td></tr> |
63 <tr><td class="memItemLeft" nowrap align="right" valign="top">TIMER_HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#4afd63ff2f23fe7cd60f0d82e78c4426">last_timer_raw</a> = -1</td></tr> |
64 |
64 |
65 </table> |
65 </table> |
66 <hr><a name="_details"></a><h2>Detailed Description</h2> |
66 <hr><a name="_details"></a><h2>Detailed Description</h2> |
67 <dl class="author" compact><dt><b>Author:</b></dt><dd>Edouard TISSERANT and Francis DUPIN </dd></dl> |
67 <dl class="author" compact><dt><b>Author:</b></dt><dd>Edouard TISSERANT and Francis DUPIN </dd></dl> |
68 <dl class="date" compact><dt><b>Date:</b></dt><dd>Tue Jun 5 09:32:32 2007 </dd></dl> |
68 <dl class="date" compact><dt><b>Date:</b></dt><dd>Tue Jun 5 09:32:32 2007 </dd></dl> |
69 |
69 |
70 <p> |
70 <p> |
71 Definition in file <a class="el" href="timer_8c-source.html">timer.c</a>.<hr><h2>Define Documentation</h2> |
71 Definition in file <a class="el" href="timer_8c-source.html">timer.c</a>.<hr><h2>Define Documentation</h2> |
72 <a class="anchor" name="8536312cebeeea3a23dc0027800122c9"></a><!-- doxytag: member="timer.c::min_val" ref="8536312cebeeea3a23dc0027800122c9" args="(a, b)" --> |
72 <a class="anchor" name="d2d95744d6e355721e7bbc2c07d934a4"></a><!-- doxytag: member="timer.c::min_val" ref="d2d95744d6e355721e7bbc2c07d934a4" args="(a, b)" --> |
73 <div class="memitem"> |
73 <div class="memitem"> |
74 <div class="memproto"> |
74 <div class="memproto"> |
75 <table class="memname"> |
75 <table class="memname"> |
76 <tr> |
76 <tr> |
77 <td class="memname">#define min_val </td> |
77 <td class="memname">#define min_val </td> |
125 <p> |
125 <p> |
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>. |
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>. |
127 <p> |
127 <p> |
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>. |
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>. |
129 <p> |
129 <p> |
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>. |
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>. |
131 </div> |
131 </div> |
132 </div><p> |
132 </div><p> |
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)" --> |
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)" --> |
134 <div class="memitem"> |
134 <div class="memitem"> |
135 <div class="memproto"> |
135 <div class="memproto"> |
136 <table class="memname"> |
136 <table class="memname"> |
137 <tr> |
137 <tr> |
138 <td class="memname">TIMER_HANDLE SetAlarm </td> |
138 <td class="memname">TIMER_HANDLE SetAlarm </td> |
217 <p> |
217 <p> |
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>. |
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>. |
219 <p> |
219 <p> |
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>. |
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>. |
221 <p> |
221 <p> |
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> |
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> |
223 <map name="timer_8c_fa75192a3238525618f8cb83004930cc_cgraph_map"> |
223 <map name="timer_8c_7a5a515821c2e4fb2f66bac72389da00_cgraph_map"> |
224 <area href="canOpenDriver_8c.html#24dbe63e88d184388542037d16a8208d" shape="rect" coords="171,6,302,30" alt=""> |
224 <area href="canOpenDriver_8c.html#38b23a8ee3748bca3415967b90df1e15" shape="rect" coords="153,5,260,32" alt=""> |
225 </map> |
225 </map> |
226 |
226 |
227 </div> |
227 </div> |
228 </div><p> |
228 </div><p> |
229 <hr><h2>Variable Documentation</h2> |
229 <hr><h2>Variable Documentation</h2> |
230 <a class="anchor" name="1dab7b9a29bdee8b1931f8ea90685c6f"></a><!-- doxytag: member="timer.c::last_timer_raw" ref="1dab7b9a29bdee8b1931f8ea90685c6f" args="" --> |
230 <a class="anchor" name="4afd63ff2f23fe7cd60f0d82e78c4426"></a><!-- doxytag: member="timer.c::last_timer_raw" ref="4afd63ff2f23fe7cd60f0d82e78c4426" args="" --> |
231 <div class="memitem"> |
231 <div class="memitem"> |
232 <div class="memproto"> |
232 <div class="memproto"> |
233 <table class="memname"> |
233 <table class="memname"> |
234 <tr> |
234 <tr> |
235 <td class="memname">TIMER_HANDLE <a class="el" href="timer_8c.html#1dab7b9a29bdee8b1931f8ea90685c6f">last_timer_raw</a> = -1 </td> |
235 <td class="memname">TIMER_HANDLE <a class="el" href="timer_8c.html#4afd63ff2f23fe7cd60f0d82e78c4426">last_timer_raw</a> = -1 </td> |
236 </tr> |
236 </tr> |
237 </table> |
237 </table> |
238 </div> |
238 </div> |
239 <div class="memdoc"> |
239 <div class="memdoc"> |
240 |
240 |