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

pdo.c File Reference

#include "pdo.h"
nico@215: #include "objacces.h"
nico@215: #include "canfestival.h"
nico@215: nico@215:

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

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

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

Functions

UNS8 sendPDO (CO_Data *d, s_PDO pdo, UNS8 req)
UNS8 PDOmGR (CO_Data *d, UNS32 cobId)
UNS8 sendPDOrequest (CO_Data *d, UNS32 cobId)
UNS8 proceedPDO (CO_Data *d, Message *m)
void CopyBits (UNS8 NbBits, UNS8 *SrcByteIndex, UNS8 SrcBitIndex, UNS8 SrcBigEndian, UNS8 *DestByteIndex, UNS8 DestBitIndex, UNS8 DestBigEndian)
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 pdo.c.


Function Documentation

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: 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: 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: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207: nico@207:
void CopyBits (UNS8  NbBits,
UNS8 *  SrcByteIndex,
UNS8  SrcBitIndex,
UNS8  SrcBigEndian,
UNS8 *  DestByteIndex,
UNS8  DestBitIndex,
UNS8  DestBigEndian 
)
nico@207:
nico@207:
nico@207: nico@207:

nico@210:

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

nico@210: Definition at line 430 of file pdo.c. nico@210:

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

nico@210: Referenced by proceedPDO(), and proceedSYNC(). nico@207:

nico@207:

nico@207: 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 PDOmGR (CO_Data d,
UNS32  cobId 
)
nico@207:
nico@207:
nico@207: nico@207:

nico@210: PDO Manager

nico@210:

Parameters:
nico@210: nico@210: nico@210: nico@210:
d 
cobId 
nico@210:
nico@210:
Returns:
nico@210: nico@210:

nico@210: Definition at line 79 of file pdo.c. nico@210:

nico@215: References struct_s_PDO::cobId, struct_s_process_var::count, struct_s_timer_entry::d, struct_s_PDO::data, struct_s_process_var::data, struct_s_PDO::len, MSG_WAR, NOT_A_REQUEST, struct_CO_Data::process_var, sendPDO(), and UNS8. nico@210:

nico@210: Referenced by proceedPDO(), and proceedSYNC(). nico@210:

nico@210: Here is the call graph for this function:

nico@210: nico@210: nico@215: nico@215: nico@210: nico@210: nico@207:
nico@207:

nico@207: 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 proceedPDO (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 221 of file pdo.c. nico@210:

nico@215: References Message::cob_id, CopyBits(), struct_s_process_var::count, struct_s_timer_entry::d, struct_s_process_var::data, Message::data, struct_CO_Data::firstIndex, getODentry(), struct_CO_Data::lastIndex, Message::len, MSG_ERR, MSG_WAR, NOT_A_REQUEST, struct_CO_Data::objdict, OD_SUCCESSFUL, s_quick_index::PDO_RCV, s_quick_index::PDO_RCV_MAP, s_quick_index::PDO_TRS, s_quick_index::PDO_TRS_MAP, PDOmGR(), td_subindex::pObject, struct_CO_Data::process_var, td_indextable::pSubindex, REQUEST, setODentry(), state1, state2, state4, state5, TRANS_EVENT, TRANS_RTR, TRANS_RTR_SYNC, UNS16, UNS32, UNS8, and SHORT_CAN::w. nico@210:

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

nico@210: Here is the call graph for this function:

nico@210: nico@210: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@210: nico@210: nico@207:
nico@207:

nico@207: 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@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215: nico@215:
UNS8 sendPDO (CO_Data d,
s_PDO  pdo,
UNS8  request 
)
nico@215:
nico@215:
nico@215: nico@215:

nico@215: Transmit a PDO data frame on the bus bus_id pdo is a structure which contains the pdo to transmit bus_id is hardware dependant return canSend(bus_id,&m) or 0xFF if error request can take the value REQUEST or NOT_A_REQUEST nico@207:

nico@210: Definition at line 37 of file pdo.c. nico@210:

nico@215: References struct_CO_Data::canHandle, canSend(), Message::cob_id, struct_s_PDO::cobId, struct_s_timer_entry::d, Message::data, struct_s_PDO::data, Message::len, struct_s_PDO::len, MSG_WAR, struct_CO_Data::nodeState, NOT_A_REQUEST, Operational, REQUEST, Message::rtr, UNS8, and SHORT_CAN::w. nico@215:

nico@210: Referenced by PDOmGR(), and sendPDOrequest(). nico@215:

nico@215: Here is the call graph for this function:

nico@215: nico@215: nico@215: nico@215: nico@215: nico@207:
nico@207:

nico@207: 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 sendPDOrequest (CO_Data d,
UNS32  cobId 
)
nico@207:
nico@207:
nico@207: nico@207:

nico@210:

Parameters:
nico@210: nico@210: nico@210: nico@210:
d 
cobId 
nico@210:
nico@210:
Returns:
nico@210: nico@210:

nico@210: Definition at line 181 of file pdo.c. nico@210:

nico@215: References struct_s_PDO::cobId, struct_s_timer_entry::d, struct_CO_Data::firstIndex, struct_CO_Data::lastIndex, struct_s_PDO::len, MSG_WAR, struct_CO_Data::objdict, s_quick_index::PDO_RCV, td_subindex::pObject, td_indextable::pSubindex, REQUEST, sendPDO(), UNS16, UNS32, and UNS8. nico@210:

nico@210: Here is the call graph for this function:

nico@210: nico@210: nico@215: nico@215: nico@215: nico@215: nico@215:
nico@215:

nico@215:


Generated on Fri Jun 8 08:52:12 2007 for CanFestival by  nico@207: nico@207: doxygen 1.5.1
nico@207: nico@207: