Fixed some transmit type issues (for 254 255) with null event and/or inhibit time
<!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: include/sync.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Data 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 List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul></div>
<div class="nav">
<a class="el" href="dir_bb27f6e70a4a8ab6966321815f15a33d.html">include</a></div>
<h1>sync.h File Reference</h1>
<p>
This graph shows which files directly or indirectly include this file:<p><center><img src="sync_8h__dep__incl.png" border="0" usemap="#include/sync.hdep_map" alt=""></center>
<map name="include/sync.hdep_map">
<area href="sync_8c.html" shape="rect" coords="635,57,709,84" alt="">
<area href="data_8h.html" shape="rect" coords="152,513,248,540" alt="">
<area href="lifegrd_8c.html" shape="rect" coords="629,311,715,337" alt="">
<area href="unix_8c.html" shape="rect" coords="611,235,733,261" alt="">
<area href="objdict_8h.html" shape="rect" coords="309,361,549,388" alt="">
<area href="TestMasterSlave_2TestMaster_8h.html" shape="rect" coords="311,412,548,439" alt="">
<area href="TestSlave_8h.html" shape="rect" coords="315,463,544,489" alt="">
<area href="TestMasterMicroMod_2TestMaster_8h.html" shape="rect" coords="296,513,563,540" alt="">
<area href="win32test_8h.html" shape="rect" coords="333,564,525,591" alt="">
<area href="objacces_8h.html" shape="rect" coords="369,615,489,641" alt="">
<area href="lifegrd_8h.html" shape="rect" coords="375,311,484,337" alt="">
<area href="nmtMaster_8h.html" shape="rect" coords="364,716,495,743" alt="">
<area href="nmtSlave_8h.html" shape="rect" coords="368,767,491,793" alt="">
<area href="timer_8h.html" shape="rect" coords="379,892,480,919" alt="">
<area href="sdo_8h.html" shape="rect" coords="625,829,719,856" alt="">
<area href="pdo_8h.html" shape="rect" coords="383,943,476,969" alt="">
<area href="states_8h.html" shape="rect" coords="377,108,481,135" alt="">
<area href="unix_2canfestival_8h.html" shape="rect" coords="349,159,509,185" alt="">
<area href="win32_2canfestival_8h.html" shape="rect" coords="345,260,513,287" alt="">
</map>
<p>
<a href="sync_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*) </td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#d1f283a688067376cc96b22f2d106a2e">post_sync_t</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(*) </td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#7b223c31d7930e0d899991b613251155">post_TPDO_t</a> (void)</td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#4a5d93c6c2b82b6449519b1143437ee9">startSYNC</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#3b95ed533faac10bd1f2eabc649e92f4">stopSYNC</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#2e43afff70fd6c17e53b1fc9a7c39b88">_post_sync</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#af70e681622716f01f0b459eaa7e4d16">_post_TPDO</a> (void)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#9d242846e77a0792d2db7a455c4b955e">sendSYNC</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 cob_id)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="sync_8h.html#89ae8cfbfc53c26248d5d91f689c7197">proceedSYNC</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="structMessage.html">Message</a> *m)</td></tr>
</table>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="d1f283a688067376cc96b22f2d106a2e"></a><!-- doxytag: member="sync.h::post_sync_t" ref="d1f283a688067376cc96b22f2d106a2e" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(*) <a class="el" href="sync_8h.html#d1f283a688067376cc96b22f2d106a2e">post_sync_t</a>(void) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="sync_8h-source.html#l00030">30</a> of file <a class="el" href="sync_8h-source.html">sync.h</a>.
</div>
</div><p>
<a class="anchor" name="7b223c31d7930e0d899991b613251155"></a><!-- doxytag: member="sync.h::post_TPDO_t" ref="7b223c31d7930e0d899991b613251155" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(*) <a class="el" href="sync_8h.html#7b223c31d7930e0d899991b613251155">post_TPDO_t</a>(void) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="sync_8h-source.html#l00033">33</a> of file <a class="el" href="sync_8h-source.html">sync.h</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="2e43afff70fd6c17e53b1fc9a7c39b88"></a><!-- doxytag: member="sync.h::_post_sync" ref="2e43afff70fd6c17e53b1fc9a7c39b88" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _post_sync </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="sync_8c-source.html#l00164">164</a> of file <a class="el" href="sync_8c-source.html">sync.c</a>.
</div>
</div><p>
<a class="anchor" name="af70e681622716f01f0b459eaa7e4d16"></a><!-- doxytag: member="sync.h::_post_TPDO" ref="af70e681622716f01f0b459eaa7e4d16" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void _post_TPDO </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="sync_8c-source.html#l00165">165</a> of file <a class="el" href="sync_8c-source.html">sync.c</a>.
</div>
</div><p>
<a class="anchor" name="89ae8cfbfc53c26248d5d91f689c7197"></a><!-- doxytag: member="sync.h::proceedSYNC" ref="89ae8cfbfc53c26248d5d91f689c7197" args="(CO_Data *d, Message *m)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">UNS8 proceedSYNC </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td>
<td class="paramname"> <em>d</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structMessage.html">Message</a> * </td>
<td class="paramname"> <em>m</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>m</em> </td><td></td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>
<p>
Definition at line <a class="el" href="sync_8c-source.html#l00141">141</a> of file <a class="el" href="sync_8c-source.html">sync.c</a>.
<p>
References <a class="el" href="pdo_8c-source.html#l00442">_sendPDOevent()</a>, <a class="el" href="states_8h-source.html#l00055">s_state_communication::csPDO</a>, <a class="el" href="data_8h-source.html#l00062">struct_CO_Data::CurrentCommunicationState</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="data_8h-source.html#l00082">struct_CO_Data::post_sync</a>, <a class="el" href="data_8h-source.html#l00083">struct_CO_Data::post_TPDO</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>.
<p>
Referenced by <a class="el" href="states_8c-source.html#l00065">canDispatch()</a>, and <a class="el" href="sync_8c-source.html#l00118">sendSYNC()</a>.
<p>
Here is the call graph for this function:<p><center><img src="sync_8h_89ae8cfbfc53c26248d5d91f689c7197_cgraph.png" border="0" usemap="#sync_8h_89ae8cfbfc53c26248d5d91f689c7197_cgraph_map" alt=""></center>
<map name="sync_8h_89ae8cfbfc53c26248d5d91f689c7197_cgraph_map">
<area href="pdo_8c.html#fbf33713253ccf33f9277e31c78a6cb5" shape="rect" coords="153,208,260,235" alt="">
<area href="pdo_8c.html#06b1b812ca18d3167243fb2b2acb6414" shape="rect" coords="348,56,423,83" alt="">
<area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="352,107,419,133" alt="">
<area href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6" shape="rect" coords="348,157,423,184" alt="">
<area href="pdo_8c.html#1e6f0540474e95f2928151efec83ccb6" shape="rect" coords="313,208,457,235" alt="">
<area href="pdo_8c.html#adf6445208b9af9b11f66f66a5d1f1f9" shape="rect" coords="311,259,460,285" alt="">
<area href="timer_8c.html#956b22f24089db4c367f40199f838a20" shape="rect" coords="349,309,421,336" alt="">
<area href="pdo_8c.html#ad755ad656fe0f661ca6bd17acb1245a" shape="rect" coords="529,5,601,32" alt="">
<area href="objacces_8c.html#cad0c118b1e06230c9cceb8e3985822b" shape="rect" coords="524,56,607,83" alt="">
<area href="objacces_8c.html#6a3eb5cb9f79f3bee030bfbb6fdd7711" shape="rect" coords="669,56,760,83" alt="">
<area href="objacces_8c.html#8577ef029b11faa6cfd1102f6bb10f59" shape="rect" coords="809,56,948,83" alt="">
<area href="canOpenDriver_8c.html#cd855997446329e6b6338fe8644edf11" shape="rect" coords="509,107,621,133" alt="">
</map>
</div>
</div><p>
<a class="anchor" name="9d242846e77a0792d2db7a455c4b955e"></a><!-- doxytag: member="sync.h::sendSYNC" ref="9d242846e77a0792d2db7a455c4b955e" args="(CO_Data *d, UNS32 cob_id)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">UNS8 sendSYNC </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td>
<td class="paramname"> <em>d</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">UNS32 </td>
<td class="paramname"> <em>cob_id</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>cob_id</em> </td><td></td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl>
<p>
Definition at line <a class="el" href="sync_8c-source.html#l00118">118</a> of file <a class="el" href="sync_8c-source.html">sync.c</a>.
<p>
References <a class="el" href="data_8h-source.html#l00087">struct_CO_Data::canHandle</a>, <a class="el" href="canOpenDriver_8c-source.html#l00505">canSend()</a>, <a class="el" href="can_8h-source.html#l00042">Message::cob_id</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="def_8h-source.html#l00055">NOT_A_REQUEST</a>, <a class="el" href="sync_8c-source.html#l00141">proceedSYNC()</a>, <a class="el" href="can_8h-source.html#l00043">Message::rtr</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>, and <a class="el" href="can_8h-source.html#l00036">SHORT_CAN::w</a>.
<p>
Referenced by <a class="el" href="sync_8c-source.html#l00055">SyncAlarm()</a>.
<p>
Here is the call graph for this function:<p><center><img src="sync_8h_9d242846e77a0792d2db7a455c4b955e_cgraph.png" border="0" usemap="#sync_8h_9d242846e77a0792d2db7a455c4b955e_cgraph_map" alt=""></center>
<map name="sync_8h_9d242846e77a0792d2db7a455c4b955e_cgraph_map">
<area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="483,5,549,32" alt="">
<area href="sync_8c.html#89ae8cfbfc53c26248d5d91f689c7197" shape="rect" coords="136,107,235,133" alt="">
<area href="canOpenDriver_8c.html#cd855997446329e6b6338fe8644edf11" shape="rect" coords="640,5,752,32" alt="">
<area href="pdo_8c.html#fbf33713253ccf33f9277e31c78a6cb5" shape="rect" coords="284,157,391,184" alt="">
<area href="pdo_8c.html#06b1b812ca18d3167243fb2b2acb6414" shape="rect" coords="479,56,553,83" alt="">
<area href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6" shape="rect" coords="479,107,553,133" alt="">
<area href="pdo_8c.html#1e6f0540474e95f2928151efec83ccb6" shape="rect" coords="444,157,588,184" alt="">
<area href="pdo_8c.html#adf6445208b9af9b11f66f66a5d1f1f9" shape="rect" coords="441,208,591,235" alt="">
<area href="timer_8c.html#956b22f24089db4c367f40199f838a20" shape="rect" coords="480,259,552,285" alt="">
<area href="pdo_8c.html#ad755ad656fe0f661ca6bd17acb1245a" shape="rect" coords="660,56,732,83" alt="">
<area href="objacces_8c.html#cad0c118b1e06230c9cceb8e3985822b" shape="rect" coords="655,107,737,133" alt="">
<area href="objacces_8c.html#6a3eb5cb9f79f3bee030bfbb6fdd7711" shape="rect" coords="800,107,891,133" alt="">
</map>
</div>
</div><p>
<a class="anchor" name="4a5d93c6c2b82b6449519b1143437ee9"></a><!-- doxytag: member="sync.h::startSYNC" ref="4a5d93c6c2b82b6449519b1143437ee9" args="(CO_Data *d)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void startSYNC </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td>
<td class="paramname"> <em>d</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="sync_8c-source.html#l00080">80</a> of file <a class="el" href="sync_8c-source.html">sync.c</a>.
<p>
References <a class="el" href="data_8h-source.html#l00079">struct_CO_Data::COB_ID_Sync</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="sync_8c-source.html#l00069">OnCOB_ID_SyncUpdate()</a>, <a class="el" href="objacces_8c-source.html#l00419">RegisterSetODentryCallBack()</a>, <a class="el" href="timer_8c-source.html#l00057">SetAlarm()</a>, <a class="el" href="sync_8c-source.html#l00105">stopSYNC()</a>, <a class="el" href="data_8h-source.html#l00080">struct_CO_Data::Sync_Cycle_Period</a>, <a class="el" href="sync_8c-source.html#l00055">SyncAlarm()</a>, <a class="el" href="data_8h-source.html#l00078">struct_CO_Data::syncTimer</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00157">US_TO_TIMEVAL</a>.
<p>
Referenced by <a class="el" href="sync_8c-source.html#l00069">OnCOB_ID_SyncUpdate()</a>, and <a class="el" href="states_8c-source.html#l00120">switchCommunicationState()</a>.
<p>
Here is the call graph for this function:<p><center><img src="sync_8h_4a5d93c6c2b82b6449519b1143437ee9_cgraph.png" border="0" usemap="#sync_8h_4a5d93c6c2b82b6449519b1143437ee9_cgraph_map" alt=""></center>
<map name="sync_8h_4a5d93c6c2b82b6449519b1143437ee9_cgraph_map">
<area href="sync_8c.html#9bcb477ec78154d3d0d0c9bb60392224" shape="rect" coords="133,100,291,127" alt="">
<area href="objacces_8c.html#9a512a966532e40f35d3a4201bf54ead" shape="rect" coords="467,5,645,32" alt="">
<area href="timer_8c.html#956b22f24089db4c367f40199f838a20" shape="rect" coords="520,68,592,95" alt="">
<area href="sync_8c.html#3b95ed533faac10bd1f2eabc649e92f4" shape="rect" coords="517,144,595,171" alt="">
<area href="sync_8c.html#4f6067ef03a5c85e07ddd817dd8d948f" shape="rect" coords="515,195,597,221" alt="">
<area href="sync_8c.html#4a5d93c6c2b82b6449519b1143437ee9" shape="rect" coords="339,100,419,127" alt="">
<area href="objacces_8c.html#b2839d53051e322c12605c1d7f3dc4e5" shape="rect" coords="695,5,788,32" alt="">
<area href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6" shape="rect" coords="704,144,779,171" alt="">
<area href="sync_8c.html#9d242846e77a0792d2db7a455c4b955e" shape="rect" coords="701,195,781,221" alt="">
<area href="canOpenDriver_8c.html#fab789b9b2ee0ab6c6f27e67d6c03661" shape="rect" coords="853,169,920,196" alt="">
<area href="sync_8c.html#89ae8cfbfc53c26248d5d91f689c7197" shape="rect" coords="837,220,936,247" alt="">
</map>
</div>
</div><p>
<a class="anchor" name="3b95ed533faac10bd1f2eabc649e92f4"></a><!-- doxytag: member="sync.h::stopSYNC" ref="3b95ed533faac10bd1f2eabc649e92f4" args="(CO_Data *d)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void stopSYNC </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td>
<td class="paramname"> <em>d</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>d</em> </td><td></td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="sync_8c-source.html#l00105">105</a> of file <a class="el" href="sync_8c-source.html">sync.c</a>.
<p>
References <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="timer_8c-source.html#l00112">DelAlarm()</a>, and <a class="el" href="data_8h-source.html#l00078">struct_CO_Data::syncTimer</a>.
<p>
Referenced by <a class="el" href="sync_8c-source.html#l00080">startSYNC()</a>, and <a class="el" href="states_8c-source.html#l00120">switchCommunicationState()</a>.
<p>
Here is the call graph for this function:<p><center><img src="sync_8h_3b95ed533faac10bd1f2eabc649e92f4_cgraph.png" border="0" usemap="#sync_8h_3b95ed533faac10bd1f2eabc649e92f4_cgraph_map" alt=""></center>
<map name="sync_8h_3b95ed533faac10bd1f2eabc649e92f4_cgraph_map">
<area href="timer_8c.html#12fe6467e1df03cc40dd6f76123c99f6" shape="rect" coords="133,5,208,32" alt="">
</map>
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Mon Jul 2 19:10:34 2007 for CanFestival by
<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>
</html>