209 * @return 0xFF if error. Else, return 0 |
209 * @return 0xFF if error. Else, return 0 |
210 */ |
210 */ |
211 UNS8 getSDOlineOnUse (CO_Data* d, UNS8 nodeId, UNS8 whoami, UNS8 *line); |
211 UNS8 getSDOlineOnUse (CO_Data* d, UNS8 nodeId, UNS8 whoami, UNS8 *line); |
212 |
212 |
213 /** |
213 /** |
|
214 * @brief Search for the line, in the transfers array, which contains the |
|
215 * beginning of the reception of a fragmented SDO |
|
216 * |
|
217 * Because getSDOlineOnUse() does not return any line in state \c SDO_ABORTED_INTERNAL, |
|
218 * this funtion is used to return them, too. |
|
219 * |
|
220 * @param *d Pointer on a CAN object data structure |
|
221 * @param nodeId correspond to the message node-id |
|
222 * @param whoami takes 2 values : look for a line opened as SDO_CLIENT or SDO_SERVER |
|
223 * @param *line Pointer on a SDO line |
|
224 * @return 0xFF if error. Else, return 0 |
|
225 */ |
|
226 UNS8 getSDOlineToClose (CO_Data* d, UNS8 nodeId, UNS8 whoami, UNS8 *line); |
|
227 |
|
228 /** |
214 * @brief Close a transmission. |
229 * @brief Close a transmission. |
215 * @param *d Pointer on a CAN object data structure |
230 * @param *d Pointer on a CAN object data structure |
216 * @param nodeId Node id of the server if both server or client |
231 * @param nodeId Node id of the server if both server or client |
217 * @param whoami Line opened as SDO_CLIENT or SDO_SERVER |
232 * @param whoami Line opened as SDO_CLIENT or SDO_SERVER |
218 */ |
233 */ |