1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
3 <title>CanFestival: /home/epimerde/documents/tc11/CanFestival-3/src/pdo.c File Reference</title> |
3 <title>CanFestival: src/pdo.c File Reference</title> |
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
5 <link href="tabs.css" rel="stylesheet" type="text/css"> |
5 <link href="tabs.css" rel="stylesheet" type="text/css"> |
6 </head><body> |
6 </head><body> |
7 <!-- Generated by Doxygen 1.5.1 --> |
7 <!-- Generated by Doxygen 1.5.1 --> |
8 <div class="tabs"> |
8 <div class="tabs"> |
9 <ul> |
9 <ul> |
10 <li><a href="main.html"><span>Main Page</span></a></li> |
10 <li><a href="main.html"><span>Main Page</span></a></li> |
|
11 <li><a href="annotated.html"><span>Data Structures</span></a></li> |
11 <li id="current"><a href="files.html"><span>Files</span></a></li> |
12 <li id="current"><a href="files.html"><span>Files</span></a></li> |
|
13 <li><a href="dirs.html"><span>Directories</span></a></li> |
12 </ul></div> |
14 </ul></div> |
13 <div class="tabs"> |
15 <div class="tabs"> |
14 <ul> |
16 <ul> |
15 <li><a href="files.html"><span>File List</span></a></li> |
17 <li><a href="files.html"><span>File List</span></a></li> |
16 <li><a href="globals.html"><span>Globals</span></a></li> |
18 <li><a href="globals.html"><span>Globals</span></a></li> |
17 </ul></div> |
19 </ul></div> |
18 <h1>/home/epimerde/documents/tc11/CanFestival-3/src/pdo.c File Reference</h1><code>#include "pdo.h"</code><br> |
20 <div class="nav"> |
19 <code>#include "objacces.h"</code><br> |
21 <a class="el" href="dir_c0a169d39c08973f879fd54f07b9e9f7.html">src</a></div> |
20 <code>#include "canfestival.h"</code><br> |
22 <h1>pdo.c File Reference</h1><code>#include "<a class="el" href="pdo_8h-source.html">pdo.h</a>"</code><br> |
21 |
23 <code>#include "<a class="el" href="objacces_8h-source.html">objacces.h</a>"</code><br> |
22 <p> |
24 <code>#include "<a class="el" href="win32_2canfestival_8h-source.html">canfestival.h</a>"</code><br> |
23 Include dependency graph for pdo.c:<p><center><img src="pdo_8c__incl.png" border="0" usemap="#/home/epimerde/documents/tc11/CanFestival-3/src/pdo.c_map" alt=""></center> |
25 |
|
26 <p> |
|
27 Include dependency graph for pdo.c:<p><center><img src="pdo_8c__incl.png" border="0" usemap="#src/pdo.c_map" alt=""></center> |
|
28 <map name="src/pdo.c_map"> |
|
29 <area href="pdo_8h.html" shape="rect" coords="162,325,220,349" alt=""> |
|
30 <area href="objacces_8h.html" shape="rect" coords="452,496,546,520" alt=""> |
|
31 <area href="win32_2canfestival_8h.html" shape="rect" coords="138,569,244,593" alt=""> |
|
32 <area href="win32_2applicfg_8h.html" shape="rect" coords="731,443,819,467" alt=""> |
|
33 <area href="def_8h.html" shape="rect" coords="471,7,527,31" alt=""> |
|
34 <area href="data_8h.html" shape="rect" coords="314,325,378,349" alt=""> |
|
35 <area href="config_8h.html" shape="rect" coords="602,7,676,31" alt=""> |
|
36 <area href="can_8h.html" shape="rect" coords="470,544,528,568" alt=""> |
|
37 <area href="objdictdef_8h.html" shape="rect" coords="448,205,550,229" alt=""> |
|
38 <area href="sdo_8h.html" shape="rect" coords="470,448,528,472" alt=""> |
|
39 <area href="states_8h.html" shape="rect" coords="462,349,536,373" alt=""> |
|
40 <area href="lifegrd_8h.html" shape="rect" coords="460,107,538,131" alt=""> |
|
41 <area href="sync_8h.html" shape="rect" coords="466,253,532,277" alt=""> |
|
42 <area href="nmtMaster_8h.html" shape="rect" coords="446,301,552,325" alt=""> |
|
43 <area href="timer_8h.html" shape="rect" coords="604,443,674,467" alt=""> |
|
44 <area href="win32_2timerscfg_8h.html" shape="rect" coords="726,567,824,591" alt=""> |
|
45 <area href="can__driver_8h.html" shape="rect" coords="294,569,398,593" alt=""> |
|
46 </map> |
24 |
47 |
25 <p> |
48 <p> |
26 <a href="pdo_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
49 <a href="pdo_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
27 <tr><td></td></tr> |
50 <tr><td></td></tr> |
28 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
51 <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
29 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="pdo_8c.html#d9a4a4f0a4ef48866c6184ccbd30f210">sendPDO</a> (CO_Data *d, s_PDO pdo, UNS8 req)</td></tr> |
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="pdo_8c.html#d9a4a4f0a4ef48866c6184ccbd30f210">sendPDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="structstruct__s__PDO.html">s_PDO</a> pdo, UNS8 req)</td></tr> |
30 |
53 |
31 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="pdo_8c.html#298b8291fa35cca22264cf8a70bf138a">PDOmGR</a> (CO_Data *d, UNS32 cobId)</td></tr> |
54 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="pdo_8c.html#298b8291fa35cca22264cf8a70bf138a">PDOmGR</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 cobId)</td></tr> |
32 |
55 |
33 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="pdo_8c.html#cc08547009d3d2755d2291999941694c">sendPDOrequest</a> (CO_Data *d, UNS32 cobId)</td></tr> |
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="pdo_8c.html#cc08547009d3d2755d2291999941694c">sendPDOrequest</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, UNS32 cobId)</td></tr> |
34 |
57 |
35 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="pdo_8c.html#ae7d661cd3ef7adf93a0d08fdb15b7f2">proceedPDO</a> (CO_Data *d, Message *m)</td></tr> |
58 <tr><td class="memItemLeft" nowrap align="right" valign="top">UNS8 </td><td class="memItemRight" valign="bottom"><a class="el" href="pdo_8c.html#ae7d661cd3ef7adf93a0d08fdb15b7f2">proceedPDO</a> (<a class="el" href="structstruct__CO__Data.html">CO_Data</a> *d, <a class="el" href="structMessage.html">Message</a> *m)</td></tr> |
36 |
59 |
37 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="pdo_8c.html#e468510c9f77f502207d961d26389918">CopyBits</a> (UNS8 NbBits, UNS8 *SrcByteIndex, UNS8 SrcBitIndex, UNS8 SrcBigEndian, UNS8 *DestByteIndex, UNS8 DestBitIndex, UNS8 DestBigEndian)</td></tr> |
60 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="pdo_8c.html#e468510c9f77f502207d961d26389918">CopyBits</a> (UNS8 NbBits, UNS8 *SrcByteIndex, UNS8 SrcBitIndex, UNS8 SrcBigEndian, UNS8 *DestByteIndex, UNS8 DestBitIndex, UNS8 DestBigEndian)</td></tr> |
38 |
61 |
39 </table> |
62 </table> |
40 <hr><a name="_details"></a><h2>Detailed Description</h2> |
63 <hr><a name="_details"></a><h2>Detailed Description</h2> |
110 <tr><td valign="top"></td><td valign="top"><em>DestBigEndian</em> </td><td></td></tr> |
133 <tr><td valign="top"></td><td valign="top"><em>DestBigEndian</em> </td><td></td></tr> |
111 </table> |
134 </table> |
112 </dl> |
135 </dl> |
113 |
136 |
114 <p> |
137 <p> |
115 This loop copy as many bits that it can each time, crossing<p> |
|
116 successively bytes<p> |
|
117 Bit missalignement between src and dest<p> |
|
118 We can now get src and align it to dest<p> |
|
119 Compute the nb of bit we will be able to copy<p> |
|
120 Create a mask that will serve in:<p> |
|
121 <ul> |
|
122 <li>Filtering src</li></ul> |
|
123 <p> |
|
124 <ul> |
|
125 <li>and erase bits where we write, preserve where we don't</li></ul> |
|
126 <p> |
|
127 Then write.<p> |
|
128 Compute next time cursors for src<p> |
|
129 cross boundary ?<p> |
|
130 First bit<p> |
|
131 Next byte<p> |
|
132 Compute next time cursors for dest<p> |
|
133 First bit<p> |
|
134 Next byte<p> |
|
135 And decrement counter. |
|
136 <p> |
|
137 Definition at line <a class="el" href="pdo_8c-source.html#l00430">430</a> of file <a class="el" href="pdo_8c-source.html">pdo.c</a>. |
138 Definition at line <a class="el" href="pdo_8c-source.html#l00430">430</a> of file <a class="el" href="pdo_8c-source.html">pdo.c</a>. |
138 <p> |
139 <p> |
|
140 References <a class="el" href="hcs12_2applicfg_8h-source.html#l00129">INTEGER8</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>. |
|
141 <p> |
139 Referenced by <a class="el" href="pdo_8c-source.html#l00221">proceedPDO()</a>, and <a class="el" href="sync_8c-source.html#l00141">proceedSYNC()</a>. |
142 Referenced by <a class="el" href="pdo_8c-source.html#l00221">proceedPDO()</a>, and <a class="el" href="sync_8c-source.html#l00141">proceedSYNC()</a>. |
140 </div> |
143 </div> |
141 </div><p> |
144 </div><p> |
142 <a class="anchor" name="298b8291fa35cca22264cf8a70bf138a"></a><!-- doxytag: member="pdo.c::PDOmGR" ref="298b8291fa35cca22264cf8a70bf138a" args="(CO_Data *d, UNS32 cobId)" --> |
145 <a class="anchor" name="298b8291fa35cca22264cf8a70bf138a"></a><!-- doxytag: member="pdo.c::PDOmGR" ref="298b8291fa35cca22264cf8a70bf138a" args="(CO_Data *d, UNS32 cobId)" --> |
143 <div class="memitem"> |
146 <div class="memitem"> |
144 <div class="memproto"> |
147 <div class="memproto"> |
145 <table class="memname"> |
148 <table class="memname"> |
146 <tr> |
149 <tr> |
147 <td class="memname">UNS8 PDOmGR </td> |
150 <td class="memname">UNS8 PDOmGR </td> |
148 <td>(</td> |
151 <td>(</td> |
149 <td class="paramtype">CO_Data * </td> |
152 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
150 <td class="paramname"> <em>d</em>, </td> |
153 <td class="paramname"> <em>d</em>, </td> |
151 </tr> |
154 </tr> |
152 <tr> |
155 <tr> |
153 <td class="paramkey"></td> |
156 <td class="paramkey"></td> |
154 <td></td> |
157 <td></td> |
173 </table> |
176 </table> |
174 </dl> |
177 </dl> |
175 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
178 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
176 |
179 |
177 <p> |
180 <p> |
178 if PDO is waiting for transmission, preparation of the message to send<p> |
|
179 memcpy(&(pdo.data), &(process_var.data), pdo.len); |
|
180 <p> |
|
181 Definition at line <a class="el" href="pdo_8c-source.html#l00079">79</a> of file <a class="el" href="pdo_8c-source.html">pdo.c</a>. |
181 Definition at line <a class="el" href="pdo_8c-source.html#l00079">79</a> of file <a class="el" href="pdo_8c-source.html">pdo.c</a>. |
182 <p> |
182 <p> |
183 References <a class="el" href="pdo_8c-source.html#l00037">sendPDO()</a>. |
183 References <a class="el" href="pdo_8h-source.html#l00044">struct_s_PDO::cobId</a>, <a class="el" href="pdo_8h-source.html#l00033">struct_s_process_var::count</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="pdo_8h-source.html#l00046">struct_s_PDO::data</a>, <a class="el" href="pdo_8h-source.html#l00037">struct_s_process_var::data</a>, <a class="el" href="pdo_8h-source.html#l00045">struct_s_PDO::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="data_8h-source.html#l00086">struct_CO_Data::process_var</a>, <a class="el" href="pdo_8c-source.html#l00037">sendPDO()</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>. |
184 <p> |
184 <p> |
185 Referenced by <a class="el" href="pdo_8c-source.html#l00221">proceedPDO()</a>, and <a class="el" href="sync_8c-source.html#l00141">proceedSYNC()</a>. |
185 Referenced by <a class="el" href="pdo_8c-source.html#l00221">proceedPDO()</a>, and <a class="el" href="sync_8c-source.html#l00141">proceedSYNC()</a>. |
186 <p> |
186 <p> |
187 Here is the call graph for this function:<p><center><img src="pdo_8c_298b8291fa35cca22264cf8a70bf138a_cgraph.png" border="0" usemap="#pdo_8c_298b8291fa35cca22264cf8a70bf138a_cgraph_map" alt=""></center> |
187 Here is the call graph for this function:<p><center><img src="pdo_8c_298b8291fa35cca22264cf8a70bf138a_cgraph.png" border="0" usemap="#pdo_8c_298b8291fa35cca22264cf8a70bf138a_cgraph_map" alt=""></center> |
188 <map name="pdo_8c_298b8291fa35cca22264cf8a70bf138a_cgraph_map"> |
188 <map name="pdo_8c_298b8291fa35cca22264cf8a70bf138a_cgraph_map"> |
189 <area href="pdo_8c.html#d9a4a4f0a4ef48866c6184ccbd30f210" shape="rect" coords="140,6,223,30" alt=""> |
189 <area href="pdo_8c.html#d9a4a4f0a4ef48866c6184ccbd30f210" shape="rect" coords="140,6,223,30" alt=""> |
|
190 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="273,6,353,30" alt=""> |
|
191 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="404,6,535,30" alt=""> |
190 </map> |
192 </map> |
191 |
193 |
192 </div> |
194 </div> |
193 </div><p> |
195 </div><p> |
194 <a class="anchor" name="ae7d661cd3ef7adf93a0d08fdb15b7f2"></a><!-- doxytag: member="pdo.c::proceedPDO" ref="ae7d661cd3ef7adf93a0d08fdb15b7f2" args="(CO_Data *d, Message *m)" --> |
196 <a class="anchor" name="ae7d661cd3ef7adf93a0d08fdb15b7f2"></a><!-- doxytag: member="pdo.c::proceedPDO" ref="ae7d661cd3ef7adf93a0d08fdb15b7f2" args="(CO_Data *d, Message *m)" --> |
224 </table> |
226 </table> |
225 </dl> |
227 </dl> |
226 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
228 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
227 |
229 |
228 <p> |
230 <p> |
229 Number of the mapped varable<p> |
|
230 count of mapped objects...<p> |
|
231 pointer to the var which is mapped to a pdo...<p> |
|
232 void * pMappedAppObject = NULL;<p> |
|
233 pointer fo the var which holds the mapping parameter of an mapping entry<p> |
|
234 pointer to the transmission type<p> |
|
235 The PDO received is not a request.<p> |
|
236 study of all the PDO stored in the dictionary<p> |
|
237 data are stored in process_var array<p> |
|
238 memcpy(&(process_var.data), &m->data, (*m).len);<p> |
|
239 Ce memcpy devrait etre portable<p> |
|
240 get CobId of the dictionary correspondant to the received PDO<p> |
|
241 check the CobId coherance<p> |
|
242 pwCobId is the cobId read in the dictionary at the state 3<p> |
|
243 The cobId is recognized<p> |
|
244 cobId received does not match with those write in the dictionnary<p> |
|
245 Get Mapped Objects Number<p> |
|
246 The cobId of the message received has been found in the dictionnary.<p> |
|
247 Get the addresse of the mapped variable.<p> |
|
248 detail of *pMappingParameter :<p> |
|
249 The 16 hight bits contains the index, the medium 8 bits contains the subindex,<p> |
|
250 and the lower 8 bits contains the size of the mapped variable.<p> |
|
251 copy bit per bit in little endian<p> |
|
252 MSG_WAR(0x3945, " data : ",*((UNS32*)pMappedAppObject));<p> |
|
253 end loop while on mapped variables<p> |
|
254 end switch status<p> |
|
255 end while<p> |
|
256 end if Donnees<p> |
|
257 study of all PDO stored in the objects dictionary<p> |
|
258 check the CobId<p> |
|
259 get CobId of the dictionary which match to the received PDO<p> |
|
260 check transmission type (after request?)<p> |
|
261 The requested PDO is not to send on request. So, does nothing.<p> |
|
262 get mapped objects number<p> |
|
263 Get the mapped variable<p> |
|
264 end while<p> |
|
265 Transmit the PDO<p> |
|
266 end switch status<p> |
|
267 end while<p> |
|
268 end if Requete |
|
269 <p> |
|
270 Definition at line <a class="el" href="pdo_8c-source.html#l00221">221</a> of file <a class="el" href="pdo_8c-source.html">pdo.c</a>. |
231 Definition at line <a class="el" href="pdo_8c-source.html#l00221">221</a> of file <a class="el" href="pdo_8c-source.html">pdo.c</a>. |
271 <p> |
232 <p> |
272 References <a class="el" href="pdo_8c-source.html#l00430">CopyBits()</a>, <a class="el" href="objacces_8c-source.html#l00198">getODentry()</a>, <a class="el" href="pdo_8c-source.html#l00079">PDOmGR()</a>, and <a class="el" href="objacces_8c-source.html#l00350">setODentry()</a>. |
233 References <a class="el" href="can_8h-source.html#l00042">Message::cob_id</a>, <a class="el" href="pdo_8c-source.html#l00430">CopyBits()</a>, <a class="el" href="pdo_8h-source.html#l00033">struct_s_process_var::count</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="pdo_8h-source.html#l00037">struct_s_process_var::data</a>, <a class="el" href="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="data_8h-source.html#l00050">struct_CO_Data::firstIndex</a>, <a class="el" href="objacces_8c-source.html#l00198">getODentry()</a>, <a class="el" href="data_8h-source.html#l00051">struct_CO_Data::lastIndex</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00177">MSG_ERR</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="data_8h-source.html#l00048">struct_CO_Data::objdict</a>, <a class="el" href="def_8h-source.html#l00031">OD_SUCCESSFUL</a>, <a class="el" href="objdictdef_8h-source.html#l00118">s_quick_index::PDO_RCV</a>, <a class="el" href="objdictdef_8h-source.html#l00119">s_quick_index::PDO_RCV_MAP</a>, <a class="el" href="objdictdef_8h-source.html#l00120">s_quick_index::PDO_TRS</a>, <a class="el" href="objdictdef_8h-source.html#l00121">s_quick_index::PDO_TRS_MAP</a>, <a class="el" href="pdo_8c-source.html#l00079">PDOmGR()</a>, <a class="el" href="objdictdef_8h-source.html#l00100">td_subindex::pObject</a>, <a class="el" href="data_8h-source.html#l00086">struct_CO_Data::process_var</a>, <a class="el" href="objdictdef_8h-source.html#l00107">td_indextable::pSubindex</a>, <a class="el" href="def_8h-source.html#l00054">REQUEST</a>, <a class="el" href="objacces_8c-source.html#l00350">setODentry()</a>, <a class="el" href="def_8h-source.html#l00113">state1</a>, <a class="el" href="def_8h-source.html#l00114">state2</a>, <a class="el" href="def_8h-source.html#l00116">state4</a>, <a class="el" href="def_8h-source.html#l00117">state5</a>, <a class="el" href="objdictdef_8h-source.html#l00080">TRANS_EVENT</a>, <a class="el" href="objdictdef_8h-source.html#l00079">TRANS_RTR</a>, <a class="el" href="objdictdef_8h-source.html#l00078">TRANS_RTR_SYNC</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00140">UNS16</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00141">UNS32</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>. |
273 <p> |
234 <p> |
274 Referenced by <a class="el" href="states_8c-source.html#l00065">canDispatch()</a>. |
235 Referenced by <a class="el" href="states_8c-source.html#l00065">canDispatch()</a>. |
275 <p> |
236 <p> |
276 Here is the call graph for this function:<p><center><img src="pdo_8c_ae7d661cd3ef7adf93a0d08fdb15b7f2_cgraph.png" border="0" usemap="#pdo_8c_ae7d661cd3ef7adf93a0d08fdb15b7f2_cgraph_map" alt=""></center> |
237 Here is the call graph for this function:<p><center><img src="pdo_8c_ae7d661cd3ef7adf93a0d08fdb15b7f2_cgraph.png" border="0" usemap="#pdo_8c_ae7d661cd3ef7adf93a0d08fdb15b7f2_cgraph_map" alt=""></center> |
277 <map name="pdo_8c_ae7d661cd3ef7adf93a0d08fdb15b7f2_cgraph_map"> |
238 <map name="pdo_8c_ae7d661cd3ef7adf93a0d08fdb15b7f2_cgraph_map"> |
278 <area href="pdo_8c.html#e468510c9f77f502207d961d26389918" shape="rect" coords="171,6,251,30" alt=""> |
239 <area href="pdo_8c.html#e468510c9f77f502207d961d26389918" shape="rect" coords="171,6,251,30" alt=""> |
279 <area href="objacces_8c.html#39c263a4bc5d2d824fefe22fdb4c2dac" shape="rect" coords="162,54,260,78" alt=""> |
240 <area href="objacces_8c.html#39c263a4bc5d2d824fefe22fdb4c2dac" shape="rect" coords="161,102,260,126" alt=""> |
280 <area href="pdo_8c.html#298b8291fa35cca22264cf8a70bf138a" shape="rect" coords="170,102,252,126" alt=""> |
241 <area href="pdo_8c.html#298b8291fa35cca22264cf8a70bf138a" shape="rect" coords="169,150,252,174" alt=""> |
281 <area href="objacces_8c.html#17e598cc1b2e60380e2e4e75afe9b3b0" shape="rect" coords="162,150,260,174" alt=""> |
242 <area href="objacces_8c.html#17e598cc1b2e60380e2e4e75afe9b3b0" shape="rect" coords="161,54,260,78" alt=""> |
282 <area href="objacces_8c.html#49e9444c8c8d39906a40a153366ed09c" shape="rect" coords="311,54,418,78" alt=""> |
243 <area href="objacces_8c.html#49e9444c8c8d39906a40a153366ed09c" shape="rect" coords="311,102,417,126" alt=""> |
283 <area href="objacces_8c.html#75d39b2dadcdb48f7321c6f3766aad26" shape="rect" coords="468,102,636,126" alt=""> |
244 <area href="objacces_8c.html#75d39b2dadcdb48f7321c6f3766aad26" shape="rect" coords="468,78,636,102" alt=""> |
284 <area href="pdo_8c.html#d9a4a4f0a4ef48866c6184ccbd30f210" shape="rect" coords="323,102,406,126" alt=""> |
245 <area href="pdo_8c.html#d9a4a4f0a4ef48866c6184ccbd30f210" shape="rect" coords="323,150,405,174" alt=""> |
285 <area href="objacces_8c.html#72f69950be4a1352fc78648c71454820" shape="rect" coords="311,150,418,174" alt=""> |
246 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="512,150,592,174" alt=""> |
|
247 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="687,150,817,174" alt=""> |
|
248 <area href="objacces_8c.html#72f69950be4a1352fc78648c71454820" shape="rect" coords="311,54,417,78" alt=""> |
286 </map> |
249 </map> |
287 |
250 |
288 </div> |
251 </div> |
289 </div><p> |
252 </div><p> |
290 <a class="anchor" name="d9a4a4f0a4ef48866c6184ccbd30f210"></a><!-- doxytag: member="pdo.c::sendPDO" ref="d9a4a4f0a4ef48866c6184ccbd30f210" args="(CO_Data *d, s_PDO pdo, UNS8 req)" --> |
253 <a class="anchor" name="d9a4a4f0a4ef48866c6184ccbd30f210"></a><!-- doxytag: member="pdo.c::sendPDO" ref="d9a4a4f0a4ef48866c6184ccbd30f210" args="(CO_Data *d, s_PDO pdo, UNS8 req)" --> |
292 <div class="memproto"> |
255 <div class="memproto"> |
293 <table class="memname"> |
256 <table class="memname"> |
294 <tr> |
257 <tr> |
295 <td class="memname">UNS8 sendPDO </td> |
258 <td class="memname">UNS8 sendPDO </td> |
296 <td>(</td> |
259 <td>(</td> |
297 <td class="paramtype">CO_Data * </td> |
260 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
298 <td class="paramname"> <em>d</em>, </td> |
261 <td class="paramname"> <em>d</em>, </td> |
299 </tr> |
262 </tr> |
300 <tr> |
263 <tr> |
301 <td class="paramkey"></td> |
264 <td class="paramkey"></td> |
302 <td></td> |
265 <td></td> |
303 <td class="paramtype">s_PDO </td> |
266 <td class="paramtype"><a class="el" href="structstruct__s__PDO.html">s_PDO</a> </td> |
304 <td class="paramname"> <em>pdo</em>, </td> |
267 <td class="paramname"> <em>pdo</em>, </td> |
305 </tr> |
268 </tr> |
306 <tr> |
269 <tr> |
307 <td class="paramkey"></td> |
270 <td class="paramkey"></td> |
308 <td></td> |
271 <td></td> |
309 <td class="paramtype">UNS8 </td> |
272 <td class="paramtype">UNS8 </td> |
310 <td class="paramname"> <em>req</em></td><td> </td> |
273 <td class="paramname"> <em>request</em></td><td> </td> |
311 </tr> |
274 </tr> |
312 <tr> |
275 <tr> |
313 <td></td> |
276 <td></td> |
314 <td>)</td> |
277 <td>)</td> |
315 <td></td><td></td><td width="100%"></td> |
278 <td></td><td></td><td width="100%"></td> |
316 </tr> |
279 </tr> |
317 </table> |
280 </table> |
318 </div> |
281 </div> |
319 <div class="memdoc"> |
282 <div class="memdoc"> |
320 |
283 |
321 <p> |
284 <p> |
322 |
285 Transmit a PDO data frame on the bus bus_id pdo is a structure which contains the pdo to transmit bus_id is hardware dependant return canSend(bus_id,&m) or 0xFF if error request can take the value REQUEST or NOT_A_REQUEST |
323 <p> |
286 <p> |
324 Definition at line <a class="el" href="pdo_8c-source.html#l00037">37</a> of file <a class="el" href="pdo_8c-source.html">pdo.c</a>. |
287 Definition at line <a class="el" href="pdo_8c-source.html#l00037">37</a> of file <a class="el" href="pdo_8c-source.html">pdo.c</a>. |
325 <p> |
288 <p> |
|
289 References <a class="el" href="data_8h-source.html#l00090">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="pdo_8h-source.html#l00044">struct_s_PDO::cobId</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="can_8h-source.html#l00046">Message::data</a>, <a class="el" href="pdo_8h-source.html#l00046">struct_s_PDO::data</a>, <a class="el" href="can_8h-source.html#l00045">Message::len</a>, <a class="el" href="pdo_8h-source.html#l00045">struct_s_PDO::len</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="data_8h-source.html#l00061">struct_CO_Data::nodeState</a>, <a class="el" href="def_8h-source.html#l00055">NOT_A_REQUEST</a>, <a class="el" href="states_8h.html#3136d2815abe9d284f985e0a7ec68646a80594b1522cb686b981f56bbec45124">Operational</a>, <a class="el" href="def_8h-source.html#l00054">REQUEST</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>. |
|
290 <p> |
326 Referenced by <a class="el" href="pdo_8c-source.html#l00079">PDOmGR()</a>, and <a class="el" href="pdo_8c-source.html#l00181">sendPDOrequest()</a>. |
291 Referenced by <a class="el" href="pdo_8c-source.html#l00079">PDOmGR()</a>, and <a class="el" href="pdo_8c-source.html#l00181">sendPDOrequest()</a>. |
|
292 <p> |
|
293 Here is the call graph for this function:<p><center><img src="pdo_8c_d9a4a4f0a4ef48866c6184ccbd30f210_cgraph.png" border="0" usemap="#pdo_8c_d9a4a4f0a4ef48866c6184ccbd30f210_cgraph_map" alt=""></center> |
|
294 <map name="pdo_8c_d9a4a4f0a4ef48866c6184ccbd30f210_cgraph_map"> |
|
295 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="140,6,220,30" alt=""> |
|
296 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="271,6,401,30" alt=""> |
|
297 </map> |
|
298 |
327 </div> |
299 </div> |
328 </div><p> |
300 </div><p> |
329 <a class="anchor" name="cc08547009d3d2755d2291999941694c"></a><!-- doxytag: member="pdo.c::sendPDOrequest" ref="cc08547009d3d2755d2291999941694c" args="(CO_Data *d, UNS32 cobId)" --> |
301 <a class="anchor" name="cc08547009d3d2755d2291999941694c"></a><!-- doxytag: member="pdo.c::sendPDOrequest" ref="cc08547009d3d2755d2291999941694c" args="(CO_Data *d, UNS32 cobId)" --> |
330 <div class="memitem"> |
302 <div class="memitem"> |
331 <div class="memproto"> |
303 <div class="memproto"> |
332 <table class="memname"> |
304 <table class="memname"> |
333 <tr> |
305 <tr> |
334 <td class="memname">UNS8 sendPDOrequest </td> |
306 <td class="memname">UNS8 sendPDOrequest </td> |
335 <td>(</td> |
307 <td>(</td> |
336 <td class="paramtype">CO_Data * </td> |
308 <td class="paramtype"><a class="el" href="structstruct__CO__Data.html">CO_Data</a> * </td> |
337 <td class="paramname"> <em>d</em>, </td> |
309 <td class="paramname"> <em>d</em>, </td> |
338 </tr> |
310 </tr> |
339 <tr> |
311 <tr> |
340 <td class="paramkey"></td> |
312 <td class="paramkey"></td> |
341 <td></td> |
313 <td></td> |
359 </table> |
331 </table> |
360 </dl> |
332 </dl> |
361 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
333 <dl class="return" compact><dt><b>Returns:</b></dt><dd></dd></dl> |
362 |
334 |
363 <p> |
335 <p> |
364 Sending the request only if the cobid have been found on the PDO receive<p> |
|
365 part dictionary<p> |
|
366 get the CobId |
|
367 <p> |
|
368 Definition at line <a class="el" href="pdo_8c-source.html#l00181">181</a> of file <a class="el" href="pdo_8c-source.html">pdo.c</a>. |
336 Definition at line <a class="el" href="pdo_8c-source.html#l00181">181</a> of file <a class="el" href="pdo_8c-source.html">pdo.c</a>. |
369 <p> |
337 <p> |
370 References <a class="el" href="pdo_8c-source.html#l00037">sendPDO()</a>. |
338 References <a class="el" href="pdo_8h-source.html#l00044">struct_s_PDO::cobId</a>, <a class="el" href="timer_8h-source.html#l00045">struct_s_timer_entry::d</a>, <a class="el" href="data_8h-source.html#l00050">struct_CO_Data::firstIndex</a>, <a class="el" href="data_8h-source.html#l00051">struct_CO_Data::lastIndex</a>, <a class="el" href="pdo_8h-source.html#l00045">struct_s_PDO::len</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00190">MSG_WAR</a>, <a class="el" href="data_8h-source.html#l00048">struct_CO_Data::objdict</a>, <a class="el" href="objdictdef_8h-source.html#l00118">s_quick_index::PDO_RCV</a>, <a class="el" href="objdictdef_8h-source.html#l00100">td_subindex::pObject</a>, <a class="el" href="objdictdef_8h-source.html#l00107">td_indextable::pSubindex</a>, <a class="el" href="def_8h-source.html#l00054">REQUEST</a>, <a class="el" href="pdo_8c-source.html#l00037">sendPDO()</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00140">UNS16</a>, <a class="el" href="hcs12_2applicfg_8h-source.html#l00141">UNS32</a>, and <a class="el" href="hcs12_2applicfg_8h-source.html#l00139">UNS8</a>. |
371 <p> |
339 <p> |
372 Here is the call graph for this function:<p><center><img src="pdo_8c_cc08547009d3d2755d2291999941694c_cgraph.png" border="0" usemap="#pdo_8c_cc08547009d3d2755d2291999941694c_cgraph_map" alt=""></center> |
340 Here is the call graph for this function:<p><center><img src="pdo_8c_cc08547009d3d2755d2291999941694c_cgraph.png" border="0" usemap="#pdo_8c_cc08547009d3d2755d2291999941694c_cgraph_map" alt=""></center> |
373 <map name="pdo_8c_cc08547009d3d2755d2291999941694c_cgraph_map"> |
341 <map name="pdo_8c_cc08547009d3d2755d2291999941694c_cgraph_map"> |
374 <area href="pdo_8c.html#d9a4a4f0a4ef48866c6184ccbd30f210" shape="rect" coords="191,6,273,30" alt=""> |
342 <area href="pdo_8c.html#d9a4a4f0a4ef48866c6184ccbd30f210" shape="rect" coords="191,6,273,30" alt=""> |
375 </map> |
343 <area href="canOpenDriver_8c.html#b57b4b3c000e9f61135175495e874977" shape="rect" coords="324,6,404,30" alt=""> |
376 |
344 <area href="canOpenDriver_8c.html#2f2d1ed55cfd9d7f85883f8d70d318ba" shape="rect" coords="455,6,585,30" alt=""> |
377 </div> |
345 </map> |
378 </div><p> |
346 |
379 <hr size="1"><address style="align: right;"><small>Generated on Tue Jun 5 18:32:07 2007 for CanFestival by |
347 </div> |
|
348 </div><p> |
|
349 <hr size="1"><address style="align: right;"><small>Generated on Fri Jun 8 08:52:12 2007 for CanFestival by |
380 <a href="http://www.doxygen.org/index.html"> |
350 <a href="http://www.doxygen.org/index.html"> |
381 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
351 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
382 </body> |
352 </body> |
383 </html> |
353 </html> |