nico@207: nico@207: nico@215: CanFestival: src/sync.c File Reference nico@207: nico@207: nico@207: nico@207: nico@207:
nico@207:
nico@207:
nico@207:
nico@215: nico@215:

sync.c File Reference

#include "data.h"
nico@215: #include "sync.h"
nico@215: #include "canfestival.h"
nico@215: nico@215:

nico@215: Include dependency graph for sync.c:

nico@215: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@215: nico@210: nico@210:

nico@207: Go to the source code of this file. nico@207: nico@207: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: nico@207: nico@207:

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:


Detailed Description

nico@210:
Author:
Edouard TISSERANT and Francis DUPIN
nico@210:
Date:
Tue Jun 5 09:32:32 2007
nico@210: nico@210:

nico@210: Definition in file sync.c.


Function Documentation

etisserant@240: nico@207:
nico@207:
nico@207: nico@207: nico@207: nico@207: nico@215: nico@207: nico@207: nico@207: nico@207: nico@207:
void _post_sync (void   ) 
nico@207:
nico@207:
nico@207: nico@207:

nico@207: nico@207:

etisserant@240: Definition at line 164 of file sync.c. etisserant@240:

etisserant@240:

etisserant@240: nico@207:

nico@207:
nico@207: nico@207: nico@207: nico@207: nico@215: nico@207: nico@207: nico@207: nico@207: nico@207:
void _post_TPDO (void   ) 
nico@207:
nico@207:
nico@207: nico@207:

nico@207: nico@207:

etisserant@240: Definition at line 165 of file sync.c. etisserant@240:

etisserant@240:

etisserant@240: nico@207:

nico@207:
nico@207: nico@207: nico@207: nico@207: nico@215: nico@207: nico@207: nico@207: nico@207: nico@207: nico@215: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207:
UNS32 OnCOB_ID_SyncUpdate (CO_Data d,
const indextable unsused_indextable,
UNS8  unsused_bSubindex 
)
nico@207:
nico@207:
nico@207: nico@207:

nico@210: This is called when Index 0x1005 is updated.

nico@210:

Parameters:
nico@210: nico@210: nico@210: nico@210: nico@210:
d 
unsused_indextable 
unsused_bSubindex 
nico@210:
nico@210:
Returns:
nico@210: nico@210:

nico@210: Definition at line 69 of file sync.c. nico@210:

nico@215: References struct_s_timer_entry::d, and startSYNC(). nico@210:

nico@210: Referenced by startSYNC(). nico@210:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
etisserant@240:

etisserant@240: nico@207:

nico@207:
nico@207: nico@207: nico@207: nico@207: nico@215: nico@207: nico@207: nico@207: nico@207: nico@207: nico@215: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207:
UNS8 proceedSYNC (CO_Data d,
Message m 
)
nico@207:
nico@207:
nico@207: nico@207:

nico@210:

Parameters:
nico@210: nico@210: nico@210: nico@210:
d 
m 
nico@210:
nico@210:
Returns:
nico@210: nico@210:

nico@210: Definition at line 141 of file sync.c. nico@210:

etisserant@240: 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. nico@210:

nico@210: Referenced by canDispatch(), and sendSYNC(). nico@210:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
etisserant@240:

etisserant@240: nico@207:

nico@207:
nico@207: nico@207: nico@207: nico@207: nico@215: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207:
UNS8 sendSYNC (CO_Data d,
UNS32  cob_id 
)
nico@207:
nico@207:
nico@207: nico@207:

nico@210:

Parameters:
nico@210: nico@210: nico@210: nico@210:
d 
cob_id 
nico@210:
nico@210:
Returns:
nico@210: nico@210:

nico@210: Definition at line 118 of file sync.c. nico@210:

etisserant@240: 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. nico@210:

nico@210: Referenced by SyncAlarm(). nico@210:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
etisserant@240:

etisserant@240: nico@207:

nico@207:
nico@207: nico@207: nico@207: nico@207: nico@215: nico@207: nico@207: nico@207: nico@207: nico@207:
void startSYNC (CO_Data d  ) 
nico@207:
nico@207:
nico@207: nico@207:

nico@210:

Parameters:
nico@210: nico@210: nico@210:
d 
nico@210:
nico@210: nico@210:

nico@210: Definition at line 80 of file sync.c. nico@210:

nico@215: 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. nico@210:

nico@210: Referenced by OnCOB_ID_SyncUpdate(), and switchCommunicationState(). nico@210:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
etisserant@240:

etisserant@240: nico@207:

nico@207:
nico@207: nico@207: nico@207: nico@207: nico@215: nico@207: nico@207: nico@207: nico@207: nico@207:
void stopSYNC (CO_Data d  ) 
nico@207:
nico@207:
nico@207: nico@207:

nico@210:

Parameters:
nico@210: nico@210: nico@210:
d 
nico@210:
nico@210: nico@210:

nico@210: Definition at line 105 of file sync.c. nico@210:

nico@215: References struct_s_timer_entry::d, DelAlarm(), and struct_CO_Data::syncTimer. nico@210:

nico@210: Referenced by startSYNC(), and switchCommunicationState(). nico@210:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
etisserant@240:

etisserant@240: nico@207:

nico@207:
nico@207: nico@207: nico@207: nico@207: nico@215: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207:
void SyncAlarm (CO_Data d,
UNS32  id 
)
nico@207:
nico@207:
nico@207: nico@207:

nico@210:

Parameters:
nico@210: nico@210: nico@210: nico@210:
d 
id 
nico@210:
nico@210: nico@210:

nico@210: Definition at line 55 of file sync.c. nico@210:

nico@215: References struct_CO_Data::COB_ID_Sync, struct_s_timer_entry::d, and sendSYNC(). nico@210:

nico@210: Referenced by startSYNC(). nico@210:

etisserant@240: Here is the call graph for this function:

etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
etisserant@240:

etisserant@240:


Generated on Mon Jul 2 19:10:42 2007 for CanFestival by  nico@207: nico@207: doxygen 1.5.1
nico@207: nico@207: