diff -r 003cc3c63855 -r f49e5a6b7804 doc/doxygen/html/states_8c.html --- a/doc/doxygen/html/states_8c.html Fri Jun 08 09:02:43 2007 +0200 +++ b/doc/doxygen/html/states_8c.html Fri Jun 08 09:23:56 2007 +0200 @@ -1,6 +1,6 @@ -CanFestival: /home/epimerde/documents/tc11/CanFestival-3/src/states.c File Reference +CanFestival: src/states.c File Reference @@ -8,20 +8,43 @@
-

/home/epimerde/documents/tc11/CanFestival-3/src/states.c File Reference

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

-Include dependency graph for states.c:

+ +

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. @@ -32,17 +55,17 @@ - - - - - - - - - - - + + + + + + + + + + + @@ -101,13 +124,13 @@

-Value:

if(newCommunicationState->CommType && !d->CurrentCommunicationState.CommType){\
-                MSG_WAR(0x9999,#FuncStart, 9999);\
-                d->CurrentCommunicationState.CommType = 1;\
+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;\
+        }else if(!newCommunicationState->CommType && d->CurrentCommunicationState.CommType){\
+                MSG_WAR(0x9999,#FuncStop, 9999);\
+                d->CurrentCommunicationState.CommType = 0;\
                 FuncStop;\
         }
 
@@ -125,6 +148,7 @@
+ @@ -146,6 +170,7 @@ + @@ -167,6 +192,7 @@ + @@ -188,6 +214,7 @@ + @@ -209,13 +236,13 @@ - + - + @@ -236,43 +263,40 @@

-case TIME_STAMP: -

Definition at line 65 of file states.c.

-References proceedNMTstateChange(), proceedNODE_GUARD(), proceedPDO(), proceedSDO(), and proceedSYNC(). +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:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -284,7 +308,7 @@ - + @@ -303,6 +327,10 @@

Definition at line 224 of file states.c. +

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

+Referenced by initSensor().

@@ -310,9 +338,9 @@

#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 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 _initialisation (void   ) 
void _operational (void   ) 
void _preOperational (void   ) 
void _stopped (void   ) 
void canDispatch (CO_Data * CO_Data d,
Message * Message m 
UNS8 getNodeId (CO_Data * CO_Data d  ) 
- - - + + + @@ -331,6 +359,8 @@

Definition at line 54 of file states.c. +

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

@@ -340,7 +370,7 @@

- + @@ -367,15 +397,11 @@

-cob_id_client = 0x600 + nodeId;

-cob_id_server = 0x580 + nodeId;

-node Id client. As we do not know the value, we put the node Id Server

-*(UNS8*)d->objdict[offset].pSubindex[3].pObject = nodeId;

-Initialize the server(s) SDO parameters Remember that only one SDO server is allowed, defined at index 0x1200

-Initialize the client(s) SDO parameters Nothing to initialize (no default values required by the DS 401) Initialize the receive PDO communication parameters. Only for 0x1400 to 0x1403

-bDeviceNodeId is defined in the object dictionary. -

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().

@@ -385,13 +411,13 @@

- + - + @@ -413,39 +439,36 @@
Returns:

-This will force a second loop for the state switch

-call user app related state func.

-end switch case -

Definition at line 138 of file states.c.

-References decompo_dcf(), ptrTable, and switchCommunicationState(). -

-Referenced by proceedNMTstateChange(). +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:

- - - + + + - - + + - - - + + + + - - - - - - - - - - + + + + + + + + + + @@ -457,13 +480,13 @@ - + - + @@ -486,31 +509,32 @@

Definition at line 120 of file states.c.

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

Referenced by setState().

Here is the call graph for this function:

- - - - - - - - - - - - - - + + + + + + + + + + + + + + +

-


Generated on Tue Jun 5 18:32:10 2007 for CanFestival by  +
Generated on Fri Jun 8 08:52:15 2007 for CanFestival by  doxygen 1.5.1
e_nodeState getState (CO_Data * e_nodeState getState (CO_Data d  ) 
void setNodeId (CO_Data * CO_Data d,
UNS8 setState (CO_Data * CO_Data d,
e_nodeState e_nodeState  newState 
void switchCommunicationState (CO_Data * CO_Data d,
s_state_communication * s_state_communication newCommunicationState