State Machine
[User API]

Collaboration diagram for State Machine:

Typedefs

typedef void(* initialisation_t )(CO_Data *)
 Function that user app can overload.

Functions

void _initialisation (CO_Data *d)
 Function that user app can overload.
void _preOperational (CO_Data *d)
 Function that user app can overload.
void _operational (CO_Data *d)
 Function that user app can overload.
void _stopped (CO_Data *d)
 Function that user app can overload.
e_nodeState getState (CO_Data *d)
 Returns the state of the node.
UNS8 setState (CO_Data *d, e_nodeState newState)
 Change the state of the node.
UNS8 getNodeId (CO_Data *d)
 Returns the nodId.
void setNodeId (CO_Data *d, UNS8 nodeId)
 Define the node ID. Initialize the object dictionary.

Function Documentation

void _initialisation ( CO_Data d  ) 

Function that user app can overload.

Parameters:
*d Pointer on a CAN object data structure

void _operational ( CO_Data d  ) 

Function that user app can overload.

Parameters:
*d Pointer on a CAN object data structure

void _preOperational ( CO_Data d  ) 

Function that user app can overload.

Parameters:
*d Pointer on a CAN object data structure

void _stopped ( CO_Data d  ) 

Function that user app can overload.

Parameters:
*d Pointer on a CAN object data structure

UNS8 getNodeId ( CO_Data d  ) 

Returns the nodId.

Parameters:
*d Pointer on a CAN object data structure
Returns:

e_nodeState getState ( CO_Data d  ) 

Returns the state of the node.

Parameters:
*d Pointer on a CAN object data structure
Returns:
The node state

void setNodeId ( CO_Data d,
UNS8  nodeId 
)

Define the node ID. Initialize the object dictionary.

Parameters:
*d Pointer on a CAN object data structure
nodeId The node ID to assign

UNS8 setState ( CO_Data d,
e_nodeState  newState 
)

Change the state of the node.

Parameters:
*d Pointer on a CAN object data structure
newState The state to assign
Returns:


Generated on Wed Feb 4 12:17:25 2009 for CanFestival by  doxygen 1.5.6