24volatile UNS8 f_syncPulse = 0;
62 static UNS8 taskDelaySecsApp = 1;
63 static UNS32 tDelayRefApp = 0;
66 if( !
isTimedOut( &tDelayRefApp, TIMEOUT_sec( taskDelaySecsApp ) ) )
83 switch( d->nodeState )
89 case Mode_Patient_Control:
91 case Mode_Patient_Manual:
95 case Mode_Produce_X_Manual:
149 if ( d->nodeState == Hibernate)
190 if (d->nodeState == Waiting && (*m).data[1] == 0)
204 if (d->nodeState == Waiting)
219 if (d->nodeState == Waiting)
247 if (d->nodeState == Waiting && (*m).data[1] == 0)
262 if (d->nodeState == Waiting && (*m).data[1] == 0)
276 if (d->nodeState == Waiting)
This file is generated by the NNP Tool – Object Dictionary Editor, as originally developed by CAN Fes...
#define UNS8
Unsigned int8 representation in CANFest.
#define UNS32
Unsigned int32 representation in CANFest.
void EnterProduceXManualFunc(CO_Data *d, Message *m)
Lets application process NMT_Produce_X_Manual.
void EnterPatientOperationFunc(CO_Data *d, Message *m)
Lets application process NMT_Enter_Patient_Operation.
void EnterStopStimFunc(CO_Data *d, Message *m)
Lets application process NMT_Enter_Stop_Stim.
void EnterYManualFunc(CO_Data *d, Message *m)
Lets application process NMT_Enter_Y_Manual.
void EnterPatientManualFunc(CO_Data *d, Message *m)
Lets application process NMT_Enter_Patient_Manual.
void EnterRecordXFunc(CO_Data *d, Message *m)
Lets application process NMT_Enter_Record_X.
void StopNodesFunc(CO_Data *d, Message *m)
Lets application process NMT_Stop_Nodes.
void EnterWaitingFunc(CO_Data *d, Message *m)
Lets application process NMT_Enter_Waiting.
void StartNodesFunc(CO_Data *d, Message *m)
Lets application process NMT_Start_Nodes (unused)
void EnterXManualFunc(CO_Data *d, Message *m)
Lets application process NMT_Enter_X_Manual.
void processSYNCMessageForApp(Message *m)
Lets application process SYNC message if necessary.
void runAppTask(UNS32 param)
This task is run on the background thread to update parameters.
void sleepApplication(void)
This function is called when the module recieves an NMT to enter low power mode.
void initAppTask(void)
Function called at the initialization of program.
void InitAppTaskValues(void)
Reinitializes application values when necessary.
void updateAppTask()
Main application loop called from main.c.
void StartWatchDog(CO_Data *d, UNS16 timebase)
Starts watchdog on slave.
void StopWatchDog(CO_Data *d)
Stops watchdog on slave.
UNS8 setState(CO_Data *d, e_nodeState newState)
Change the state of the node.
: Header for main.c file. This file contains the common defines of the application.
This structure contains all necessary informations to define a CANOpen node.
UNS8 isTimedOut(UNS32 *tRef, UNS32 tAlarm)
Checks if a timer has timed out.
void resetTimeOut(UNS32 *tRef)
Resets a timed out timer.