nico@215: nico@215: nico@215: CanFestival: include/pdo.h File Reference nico@215: nico@215: nico@215: nico@215: nico@215:
nico@215:
nico@215:
nico@215:
nico@215: nico@215:

pdo.h File Reference

#include <applicfg.h>
nico@215: #include <def.h>
etisserant@240: #include "can.h"
nico@215: #include "data.h"
nico@215: nico@215:

nico@215: Include dependency graph for pdo.h:

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

nico@215: This graph shows which files directly or indirectly include this file:

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

nico@215: Go to the source code of this file. nico@215: nico@215: etisserant@240: nico@215: nico@215: etisserant@240: nico@215: 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: etisserant@240: etisserant@240: nico@215: nico@215:

Data Structures

struct  struct_s_PDO_status

Typedefs

typedef struct_s_PDO_status s_PDO_status

Functions

UNS8 buildPDO (CO_Data *d, UNS8 numPdo, Message *pdo)
UNS8 sendPDOrequest (CO_Data *d, UNS16 RPDOIndex)
UNS8 proceedPDO (CO_Data *d, Message *m)
UNS8 sendPDOevent (CO_Data *d)
UNS8 _sendPDOevent (CO_Data *d, UNS8 isSyncEvent)
void PDOInit (CO_Data *d)
void PDOStop (CO_Data *d)
void PDOEventTimerAlarm (CO_Data *d, UNS32 pdoNum)
void PDOInhibitTimerAlarm (CO_Data *d, UNS32 pdoNum)
void CopyBits (UNS8 NbBits, UNS8 *SrcByteIndex, UNS8 SrcBitIndex, UNS8 SrcBigEndian, UNS8 *DestByteIndex, UNS8 DestBitIndex, UNS8 DestBigEndian)
nico@215:


Typedef Documentation

etisserant@240: etisserant@240:
etisserant@240:
etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
typedef struct struct_s_PDO_status s_PDO_status
etisserant@240:
etisserant@240:
etisserant@240: etisserant@240:

etisserant@240: etisserant@240:

etisserant@240: Definition at line 31 of file pdo.h. nico@215:

nico@215:

nico@215:


Function Documentation

etisserant@240: etisserant@240:
etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: etisserant@240: etisserant@240: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
UNS8 _sendPDOevent (CO_Data d,
UNS8  isSyncEvent 
)
nico@215:
nico@215:
nico@215: nico@215:

etisserant@240:

Parameters:
etisserant@240: etisserant@240: etisserant@240: etisserant@240:
d 
isSyncEvent 
etisserant@240:
etisserant@240:
Returns:
etisserant@240: etisserant@240:

etisserant@240: Definition at line 442 of file pdo.c. etisserant@240:

etisserant@240: References buildPDO(), struct_CO_Data::canHandle, canSend(), Message::cob_id, struct_s_timer_entry::d, Message::data, DelAlarm(), struct_CO_Data::firstIndex, struct_s_PDO_status::last_message, struct_CO_Data::lastIndex, Message::len, Message_Initializer, MS_TO_TIMEVAL, MSG_ERR, MSG_WAR, struct_CO_Data::objdict, struct_CO_Data::PDO_status, s_quick_index::PDO_TRS, s_quick_index::PDO_TRS_MAP, PDOEventTimerAlarm(), PDOInhibitTimerAlarm(), td_subindex::pObject, td_indextable::pSubindex, SetAlarm(), state11, state3, state5, struct_s_PDO_status::transmit_type_parameter, UNS16, UNS32, UNS64, UNS8, US_TO_TIMEVAL, and SHORT_CAN::w. etisserant@240:

etisserant@240: Referenced by PDOEventTimerAlarm(), PDOInhibitTimerAlarm(), PDOInit(), proceedSYNC(), and sendPDOevent(). etisserant@240:

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:
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: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
UNS8 buildPDO (CO_Data d,
UNS8  numPdo,
Message pdo 
)
etisserant@240:
etisserant@240:
etisserant@240: etisserant@240:

etisserant@240:

Parameters:
etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
d 
TPDO_com TPDO communication parameters OD entry
TPDO_map TPDO mapping parameters OD entry
etisserant@240:
etisserant@240:
Returns:
etisserant@240: etisserant@240:

etisserant@240: Definition at line 48 of file pdo.c. etisserant@240:

etisserant@240: References Message::cob_id, CopyBits(), struct_s_timer_entry::d, Message::data, struct_CO_Data::firstIndex, getODentry(), td_indextable::index, Message::len, MSG_ERR, MSG_WAR, NOT_A_REQUEST, struct_CO_Data::objdict, OD_SUCCESSFUL, s_quick_index::PDO_TRS, s_quick_index::PDO_TRS_MAP, td_subindex::pObject, td_indextable::pSubindex, Message::rtr, UNS16, UNS32, UNS8, and SHORT_CAN::w. etisserant@240:

etisserant@240: Referenced by _sendPDOevent(), and proceedPDO(). etisserant@240:

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

nico@215:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void CopyBits (UNS8  NbBits,
UNS8 *  SrcByteIndex,
UNS8  SrcBitIndex,
UNS8  SrcBigEndian,
UNS8 *  DestByteIndex,
UNS8  DestBitIndex,
UNS8  DestBigEndian 
)
nico@215:
nico@215:
nico@215: nico@215:

nico@215:

Parameters:
nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
NbBits 
SrcByteIndex 
SrcBitIndex 
SrcBigEndian 
DestByteIndex 
DestBitIndex 
DestBigEndian 
nico@215:
nico@215: nico@215:

etisserant@240: Definition at line 351 of file pdo.c. nico@215:

nico@215: References INTEGER8, and UNS8. nico@215:

etisserant@240: Referenced by buildPDO(), and proceedPDO(). etisserant@240:

etisserant@240:

etisserant@240: etisserant@240:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: etisserant@240: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
void PDOEventTimerAlarm (CO_Data d,
UNS32  pdoNum 
)
nico@215:
nico@215:
nico@215: nico@215:

etisserant@240: etisserant@240:

etisserant@240: Definition at line 415 of file pdo.c. etisserant@240:

etisserant@240: References _sendPDOevent(), Message::cob_id, struct_s_timer_entry::d, struct_s_PDO_status::event_timer, struct_s_PDO_status::last_message, struct_CO_Data::PDO_status, and SHORT_CAN::w. etisserant@240:

etisserant@240: Referenced by _sendPDOevent(), proceedPDO(), and TPDO_Communication_Parameter_Callback(). etisserant@240:

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:

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: etisserant@240:
void PDOInhibitTimerAlarm (CO_Data d,
UNS32  pdoNum 
)
etisserant@240:
etisserant@240:
etisserant@240: etisserant@240:

etisserant@240: etisserant@240:

etisserant@240: Definition at line 424 of file pdo.c. etisserant@240:

etisserant@240: References _sendPDOevent(), struct_s_timer_entry::d, struct_s_PDO_status::inhibit_timer, struct_CO_Data::PDO_status, and struct_s_PDO_status::transmit_type_parameter. etisserant@240:

etisserant@240: Referenced by _sendPDOevent(). etisserant@240:

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:

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
void PDOInit (CO_Data d  ) 
etisserant@240:
etisserant@240:
etisserant@240: etisserant@240:

etisserant@240: etisserant@240:

etisserant@240: Definition at line 601 of file pdo.c. etisserant@240:

etisserant@240: References _sendPDOevent(), struct_s_timer_entry::d, struct_CO_Data::firstIndex, struct_CO_Data::lastIndex, OD_SUCCESSFUL, s_quick_index::PDO_TRS, scanIndexOD(), TPDO_Communication_Parameter_Callback(), UNS16, and UNS32. etisserant@240:

etisserant@240: Referenced by switchCommunicationState(). etisserant@240:

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

etisserant@240:
etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
void PDOStop (CO_Data d  ) 
etisserant@240:
etisserant@240:
etisserant@240: etisserant@240:

etisserant@240: etisserant@240:

etisserant@240: Definition at line 632 of file pdo.c. etisserant@240:

etisserant@240: References Message::cob_id, struct_s_timer_entry::d, DelAlarm(), struct_s_PDO_status::event_timer, struct_CO_Data::firstIndex, struct_s_PDO_status::inhibit_timer, struct_s_PDO_status::last_message, struct_CO_Data::lastIndex, struct_CO_Data::PDO_status, s_quick_index::PDO_TRS, struct_s_PDO_status::transmit_type_parameter, UNS16, UNS8, and SHORT_CAN::w. etisserant@240:

etisserant@240: Referenced by switchCommunicationState(). etisserant@240:

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: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
UNS8 proceedPDO (CO_Data d,
Message m 
)
etisserant@240:
etisserant@240:
etisserant@240: etisserant@240:

etisserant@240:

Parameters:
etisserant@240: etisserant@240: etisserant@240: etisserant@240:
d 
m 
etisserant@240:
etisserant@240:
Returns:
etisserant@240: etisserant@240:

etisserant@240: Definition at line 141 of file pdo.c. etisserant@240:

etisserant@240: References buildPDO(), struct_CO_Data::canHandle, canSend(), Message::cob_id, CopyBits(), struct_s_timer_entry::d, Message::data, DelAlarm(), struct_s_PDO_status::event_timer, struct_CO_Data::firstIndex, struct_s_PDO_status::inhibit_timer, struct_s_PDO_status::last_message, struct_CO_Data::lastIndex, MSG_ERR, MSG_WAR, NOT_A_REQUEST, struct_CO_Data::objdict, OD_SUCCESSFUL, s_quick_index::PDO_RCV, s_quick_index::PDO_RCV_MAP, struct_CO_Data::PDO_status, s_quick_index::PDO_TRS, PDOEventTimerAlarm(), td_subindex::pObject, td_indextable::pSubindex, REQUEST, setODentry(), state1, state2, state4, state5, struct_s_PDO_status::transmit_type_parameter, UNS16, UNS32, UNS8, and SHORT_CAN::w. etisserant@240:

etisserant@240: Referenced by canDispatch(). etisserant@240:

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: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240: etisserant@240:
UNS8 sendPDOevent (CO_Data d  ) 
etisserant@240:
etisserant@240:
etisserant@240: etisserant@240:

etisserant@240:

Parameters:
etisserant@240: etisserant@240: etisserant@240:
d 
etisserant@240:
etisserant@240:
Returns:
etisserant@240: etisserant@240:

etisserant@240: Definition at line 408 of file pdo.c. etisserant@240:

etisserant@240: References _sendPDOevent(), and struct_s_timer_entry::d. etisserant@240:

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:

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: etisserant@240:
UNS8 sendPDOrequest (CO_Data d,
UNS16  RPDOIndex 
)
etisserant@240:
etisserant@240:
etisserant@240: etisserant@240:

nico@215:

Parameters:
nico@215: nico@215: nico@215: nico@215:
d 
cobId 
nico@215:
nico@215:
Returns:
nico@215: nico@215:

etisserant@240: Definition at line 104 of file pdo.c. etisserant@240:

etisserant@240: References struct_CO_Data::canHandle, canSend(), struct_s_timer_entry::d, struct_CO_Data::firstIndex, struct_CO_Data::lastIndex, MSG_ERR, MSG_WAR, struct_CO_Data::objdict, s_quick_index::PDO_RCV, td_subindex::pObject, td_indextable::pSubindex, REQUEST, UNS16, and UNS32. etisserant@240:

etisserant@240: Referenced by TestMaster_post_TPDO(). etisserant@240:

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:


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