diff -r 6efc85c5493e -r 1c1e3599d66a doc/doxygen/html/states_8c.html --- a/doc/doxygen/html/states_8c.html Mon Feb 11 11:00:12 2008 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,536 +0,0 @@ - - -CanFestival: src/states.c File Reference - - - - -
-
-
-
- -

states.c File Reference

#include "states.h"
-#include "def.h"
-#include "dcf.h"
-#include "nmtSlave.h"
- -

-Include dependency graph for states.c:

- - - - - - - - - - - - - - - - - - - - -

-Go to the source code of this file. - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Defines

#define StartOrStop(CommType, FuncStart, FuncStop)
#define None

Functions

void switchCommunicationState (CO_Data *d, s_state_communication *newCommunicationState)
e_nodeState getState (CO_Data *d)
void canDispatch (CO_Data *d, Message *m)
UNS8 setState (CO_Data *d, e_nodeState newState)
UNS8 getNodeId (CO_Data *d)
void setNodeId (CO_Data *d, UNS8 nodeId)
void _initialisation ()
void _preOperational ()
void _operational ()
void _stopped ()
-


Detailed Description

-
Author:
Edouard TISSERANT and Francis DUPIN
-
Date:
Tue Jun 5 09:32:32 2007
- -

-Definition in file states.c.


Define Documentation

- -
-
- - - - -
#define None
-
-
- -

- -

-Definition at line 112 of file states.c. -

-Referenced by switchCommunicationState(). -

-

- -

-
- - - - - - - - - - - - - - - -
#define StartOrStop (CommType,
FuncStart,
FuncStop   ) 
-
-
- -

-Value:

if(newCommunicationState->CommType && !d->CurrentCommunicationState.CommType){\
-                MSG_WAR(0x9999,#FuncStart, 9999);\
-                d->CurrentCommunicationState.CommType = 1;\
-                FuncStart;\
-        }else if(!newCommunicationState->CommType && d->CurrentCommunicationState.CommType){\
-                MSG_WAR(0x9999,#FuncStop, 9999);\
-                d->CurrentCommunicationState.CommType = 0;\
-                FuncStop;\
-        }
-
-

-Definition at line 102 of file states.c. -

-Referenced by switchCommunicationState(). -

-

-


Function Documentation

- -
-
- - - - - - - - - -
void _initialisation (void   ) 
-
-
- -

- -

-Definition at line 285 of file states.c. -

-

- -

-
- - - - - - - - - -
void _operational (void   ) 
-
-
- -

- -

-Definition at line 287 of file states.c. -

-

- -

-
- - - - - - - - - -
void _preOperational (void   ) 
-
-
- -

- -

-Definition at line 286 of file states.c. -

-

- -

-
- - - - - - - - - -
void _stopped (void   ) 
-
-
- -

- -

-Definition at line 288 of file states.c. -

-

- -

-
- - - - - - - - - - - - - - - - - - -
void canDispatch (CO_Data d,
Message m 
)
-
-
- -

-

Parameters:
- - - -
d 
m 
-
- -

-Definition at line 65 of file states.c. -

-References Message::cob_id, s_state_communication::csHeartbeat, s_state_communication::csPDO, s_state_communication::csSDO, s_state_communication::csSYNC, struct_CO_Data::CurrentCommunicationState, struct_s_timer_entry::d, struct_CO_Data::iam_a_slave, NMT, NODE_GUARD, PDO1rx, PDO1tx, PDO2rx, PDO2tx, PDO3rx, PDO3tx, PDO4rx, PDO4tx, proceedNMTstateChange(), proceedNODE_GUARD(), proceedPDO(), proceedSDO(), proceedSYNC(), SDOrx, SDOtx, SYNC, and SHORT_CAN::w. -

-Referenced by canReceiveLoop(), and main(). -

-Here is the call graph for this function:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

- -

-
- - - - - - - - - -
UNS8 getNodeId (CO_Data d  ) 
-
-
- -

-

Parameters:
- - -
d 
-
-
Returns:
- -

-Definition at line 224 of file states.c. -

-References struct_CO_Data::bDeviceNodeId, and struct_s_timer_entry::d. -

-Referenced by initSensor(). -

-

- -

-
- - - - - - - - - -
e_nodeState getState (CO_Data d  ) 
-
-
- -

-

Parameters:
- - -
d 
-
-
Returns:
- -

-Definition at line 54 of file states.c. -

-References struct_s_timer_entry::d, and struct_CO_Data::nodeState. -

-

- -

-
- - - - - - - - - - - - - - - - - - -
void setNodeId (CO_Data d,
UNS8  nodeId 
)
-
-
- -

-

Parameters:
- - - -
d 
nodeId 
-
- -

-Definition at line 235 of file states.c. -

-References struct_CO_Data::bDeviceNodeId, struct_s_timer_entry::d, struct_CO_Data::firstIndex, struct_CO_Data::lastIndex, struct_CO_Data::objdict, s_quick_index::PDO_RCV, s_quick_index::PDO_TRS, td_subindex::pObject, td_indextable::pSubindex, s_quick_index::SDO_SVR, UNS16, UNS32, and UNS8. -

-Referenced by InitNodes(), initSensor(), and main(). -

-

- -

-
- - - - - - - - - - - - - - - - - - -
UNS8 setState (CO_Data d,
e_nodeState  newState 
)
-
-
- -

-

Parameters:
- - - -
d 
newState 
-
-
Returns:
- -

-Definition at line 138 of file states.c. -

-References struct_s_timer_entry::d, decompo_dcf(), struct_CO_Data::iam_a_slave, Initialisation, struct_CO_Data::initialisation, struct_CO_Data::nodeState, OD_SUCCESSFUL, Operational, struct_CO_Data::operational, Pre_operational, struct_CO_Data::preOperational, ptrTable, struct_CO_Data::scanIndexOD, Stopped, struct_CO_Data::stopped, switchCommunicationState(), UNS16, and UNS32. -

-Referenced by InitNodes(), main(), and proceedNMTstateChange(). -

-Here is the call graph for this function:

- - - - - - - - - - - - - - -
-

- -

-
- - - - - - - - - - - - - - - - - - -
void switchCommunicationState (CO_Data d,
s_state_communication newCommunicationState 
)
-
-
- -

-

Parameters:
- - - -
d 
newCommunicationState 
-
- -

-Definition at line 120 of file states.c. -

-References struct_s_timer_entry::d, heartbeatInit(), heartbeatStop(), None, PDOInit(), PDOStop(), resetSDO(), slaveSendBootUp(), StartOrStop, startSYNC(), and stopSYNC(). -

-Referenced by setState(). -

-Here is the call graph for this function:

- - - - - - - - - - - - - - - - - - - - - - - - -
-

-


Generated on Mon Jul 2 19:10:42 2007 for CanFestival by  - -doxygen 1.5.1
- -