equal
deleted
inserted
replaced
25 |
25 |
26 typedef void (*SDOtimeoutError_t)(UNS8 line); |
26 typedef void (*SDOtimeoutError_t)(UNS8 line); |
27 struct struct_s_transfer; |
27 struct struct_s_transfer; |
28 |
28 |
29 #include "timer.h" |
29 #include "timer.h" |
|
30 |
|
31 typedef void (*SDOCallback_t)(CO_Data* d, UNS8 nodeId); |
30 |
32 |
31 /* The Transfer structure |
33 /* The Transfer structure |
32 Used to store the different segments of |
34 Used to store the different segments of |
33 - a SDO received before writing in the dictionary |
35 - a SDO received before writing in the dictionary |
34 - the reading of the dictionary to put on a SDO to transmit |
36 - the reading of the dictionary to put on a SDO to transmit |
58 TIMER_HANDLE timer; // Time counter to implement a timeout in milliseconds. |
60 TIMER_HANDLE timer; // Time counter to implement a timeout in milliseconds. |
59 // It is automatically incremented whenever |
61 // It is automatically incremented whenever |
60 // the line state is in SDO_DOWNLOAD_IN_PROGRESS or |
62 // the line state is in SDO_DOWNLOAD_IN_PROGRESS or |
61 // SDO_UPLOAD_IN_PROGRESS, and reseted to 0 |
63 // SDO_UPLOAD_IN_PROGRESS, and reseted to 0 |
62 // when the response SDO have been received. |
64 // when the response SDO have been received. |
|
65 SDOCallback_t Callback; // The user callback func to be called at SDO transaction end |
63 }; |
66 }; |
64 typedef struct struct_s_transfer s_transfer; |
67 typedef struct struct_s_transfer s_transfer; |
65 |
68 |
66 |
69 |
67 #include "data.h" |
70 #include "data.h" |