#include "data.h"#include "sync.h"#include "canfestival.h"Include dependency graph for sync.c:

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 () |
Definition in file sync.c.
| UNS32 OnCOB_ID_SyncUpdate | ( | CO_Data * | d, | |
| const indextable * | unsused_indextable, | |||
| UNS8 | unsused_bSubindex | |||
| ) |
This is called when Index 0x1005 is updated.
| d | ||
| unsused_indextable | ||
| unsused_bSubindex |
Definition at line 69 of file sync.c.
References struct_s_timer_entry::d, and startSYNC().
Referenced by startSYNC().
Here is the call graph for this function:

| d | ||
| m |
Definition at line 141 of file sync.c.
References _sendPDOevent(), s_state_communication::csPDO, struct_CO_Data::CurrentCommunicationState, struct_s_timer_entry::d, MSG_WAR, struct_CO_Data::post_sync, struct_CO_Data::post_TPDO, and UNS8.
Referenced by canDispatch(), and sendSYNC().
Here is the call graph for this function:

| UNS8 sendSYNC | ( | CO_Data * | d, | |
| UNS32 | cob_id | |||
| ) |
| d | ||
| cob_id |
Definition at line 118 of file sync.c.
References struct_CO_Data::canHandle, canSend(), Message::cob_id, struct_s_timer_entry::d, Message::len, MSG_WAR, NOT_A_REQUEST, proceedSYNC(), Message::rtr, UNS8, and SHORT_CAN::w.
Referenced by SyncAlarm().
Here is the call graph for this function:

| void startSYNC | ( | CO_Data * | d | ) |
| d |
Definition at line 80 of file sync.c.
References struct_CO_Data::COB_ID_Sync, struct_s_timer_entry::d, OnCOB_ID_SyncUpdate(), RegisterSetODentryCallBack(), SetAlarm(), stopSYNC(), struct_CO_Data::Sync_Cycle_Period, SyncAlarm(), struct_CO_Data::syncTimer, and US_TO_TIMEVAL.
Referenced by OnCOB_ID_SyncUpdate(), and switchCommunicationState().
Here is the call graph for this function:

| void stopSYNC | ( | CO_Data * | d | ) |
| d |
Definition at line 105 of file sync.c.
References struct_s_timer_entry::d, DelAlarm(), and struct_CO_Data::syncTimer.
Referenced by startSYNC(), and switchCommunicationState().
Here is the call graph for this function:

| void SyncAlarm | ( | CO_Data * | d, | |
| UNS32 | id | |||
| ) |
| d | ||
| id |
Definition at line 55 of file sync.c.
References struct_CO_Data::COB_ID_Sync, struct_s_timer_entry::d, and sendSYNC().
Referenced by startSYNC().
Here is the call graph for this function:

1.5.1