nico@207: nico@207:
nico@207:#include "states.h"
#include "def.h"
#include "dcf.h"
#include "nmtSlave.h"
nico@207: 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 () |
#define None | nico@207:
#define StartOrStop | nico@207:( | nico@207:CommType, | |||
nico@207: | nico@207: | FuncStart, | |||
nico@207: | nico@207: | FuncStop | nico@207:nico@207: | ) | nico@207:nico@207: |
nico@207: Value:
if(newCommunicationState->CommType && !d->CurrentCommunicationState.CommType){\ nico@207: MSG_WAR(0x9999,#FuncStart, 9999);\ nico@207: d->CurrentCommunicationState.CommType = 1;\ nico@207: FuncStart;\ nico@207: }else if(!newCommunicationState->CommType && d->CurrentCommunicationState.CommType){\ nico@207: MSG_WAR(0x9999,#FuncStop, 9999);\ nico@207: d->CurrentCommunicationState.CommType = 0;\ nico@207: FuncStop;\ nico@207: } nico@207:
nico@207:
void _initialisation | nico@207:( | nico@207:nico@207: | ) | nico@207:nico@207: |
void _operational | nico@207:( | nico@207:nico@207: | ) | nico@207:nico@207: |
void _preOperational | nico@207:( | nico@207:nico@207: | ) | nico@207:nico@207: |
void _stopped | nico@207:( | nico@207:nico@207: | ) | nico@207:nico@207: |
void canDispatch | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | Message * | nico@207:m | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 39 of file states.c. nico@207:
nico@207: References proceedNMTstateChange(), proceedNODE_GUARD(), proceedPDO(), proceedSDO(), and proceedSYNC(). nico@207:
UNS8 getNodeId | nico@207:( | nico@207:CO_Data * | nico@207:d | nico@207:) | nico@207:nico@207: |
e_nodeState getState | nico@207:( | nico@207:CO_Data * | nico@207:d | nico@207:) | nico@207:nico@207: |
void setNodeId | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | UNS8 | nico@207:nodeId | nico@207: |
nico@207: | ) | nico@207:nico@207: |
UNS8 setState | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | e_nodeState | nico@207:newState | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 100 of file states.c. nico@207:
nico@207: References decompo_dcf(), ptrTable, and switchCommunicationState(). nico@207:
void switchCommunicationState | nico@207:( | nico@207:CO_Data * | nico@207:d, | nico@207:|
nico@207: | nico@207: | s_state_communication * | nico@207:newCommunicationState | nico@207: |
nico@207: | ) | nico@207:nico@207: |
nico@207: nico@207:
nico@207: Definition at line 89 of file states.c. nico@207:
nico@207: References heartbeatInit(), heartbeatStop(), None, resetSDO(), slaveSendBootUp(), StartOrStop, startSYNC(), and stopSYNC(). nico@207:
nico@207: