nico@207: nico@207:
nico@207:#include "data.h"
#include "sync.h"
#include "canfestival.h"
nico@210: Include dependency graph for sync.c:
nico@207: Go to the source code of this file.
Functions | |
void | SyncAlarm (CO_Data *d, UNS32 id) |
UNS32 | OnCOB_ID_SyncUpdate (CO_Data *d, const indextable *unsused_indextable, UNS8 unsused_bSubindex) |
void | startSYNC (CO_Data *d) |
void | stopSYNC (CO_Data *d) |
UNS8 | sendSYNC (CO_Data *d, UNS32 cob_id) |
UNS8 | proceedSYNC (CO_Data *d, Message *m) |
void | _post_sync () |
void | _post_TPDO () |
nico@210: Definition in file sync.c.
void _post_sync | nico@207:( | nico@207:nico@207: | ) | nico@207:nico@207: |
void _post_TPDO | nico@207:( | nico@207:nico@207: | ) | nico@207:nico@207: |
UNS32 OnCOB_ID_SyncUpdate | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | const indextable * | nico@207:unsused_indextable, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:unsused_bSubindex | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210: This is called when Index 0x1005 is updated.
nico@210:
d | ||
unsused_indextable | ||
unsused_bSubindex |
nico@210: Definition at line 69 of file sync.c. nico@210:
nico@210: References startSYNC(). nico@210:
nico@210: Referenced by startSYNC(). nico@210:
nico@210: Here is the call graph for this function:
UNS8 proceedSYNC | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | Message * | nico@207:m | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
m |
nico@210: pointer to the var which is mapped to a pdo
nico@210: pointer fo the var which holds the mapping parameter of an mapping entry
nico@210: pointer to the transmissiontype...
nico@210: only operational state allows PDO transmission
nico@210: So, the node is in operational state
nico@210: study all PDO stored in the objects dictionary
nico@210: get the PDO transmission type
nico@210: check if transmission type is after (this) SYNC
nico@210: The message may not be transmited every SYNC but every n SYNC
nico@210: get PDO CobId
nico@210: get mapped objects number to transmit with this PDO
nico@210: get mapping parameters
nico@210: get data to transmit
nico@210: copy bit per bit in little endian
nico@210: loop to get all the data to transmit nico@210:
nico@210: Definition at line 141 of file sync.c. nico@210:
nico@210: References CopyBits(), getODentry(), and PDOmGR(). nico@210:
nico@210: Referenced by canDispatch(), and sendSYNC(). nico@210:
nico@210: Here is the call graph for this function:
UNS8 sendSYNC | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS32 | nico@207:cob_id | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
cob_id |
nico@210: Definition at line 118 of file sync.c. nico@210:
nico@210: References proceedSYNC(). nico@210:
nico@210: Referenced by SyncAlarm(). nico@210:
nico@210: Here is the call graph for this function:
void startSYNC | nico@207:( | nico@207:CO_Data * | nico@207:d | nico@207:) | nico@207:nico@207: |
nico@210:
d |
nico@210: Definition at line 80 of file sync.c. nico@210:
nico@210: References OnCOB_ID_SyncUpdate(), RegisterSetODentryCallBack(), SetAlarm(), stopSYNC(), and SyncAlarm(). nico@210:
nico@210: Referenced by OnCOB_ID_SyncUpdate(), and switchCommunicationState(). nico@210:
nico@210: Here is the call graph for this function:
void stopSYNC | nico@207:( | nico@207:CO_Data * | nico@207:d | nico@207:) | nico@207:nico@207: |
nico@210:
d |
nico@210: Definition at line 105 of file sync.c. nico@210:
nico@210: References DelAlarm(). nico@210:
nico@210: Referenced by startSYNC(), and switchCommunicationState(). nico@210:
nico@210: Here is the call graph for this function:
void SyncAlarm | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS32 | nico@207:id | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@210:
d | ||
id |
nico@210: Definition at line 55 of file sync.c. nico@210:
nico@210: References sendSYNC(). nico@210:
nico@210: Referenced by startSYNC(). nico@210:
nico@210: Here is the call graph for this function:
nico@210: