examples/DS401_Slave_Gui/CallBack.h
author etisserant
Fri, 01 Feb 2008 18:06:55 +0100
changeset 378 d2abf6c8c27b
parent 246 d635cfc520ee
child 385 fff25f16c923
permissions -rw-r--r--
As requested long ago, added CoData* parameter to all this applications callback, let application designer use identical callback for multiple nodes, and reduce source code length.

Concerned callbacks :

initialisation
preOperational
operational
stopped
heartbeatError
post_sync
post_TPDO
post_SlaveBootup
storeODSubIndex
post_emcy
#ifndef CALLBACK_H_
#define CALLBACK_H_

extern "C" 
  {
	#include "ObjDict.h"
  }

void Call_heartbeatError(CO_Data* d, UNS8);

UNS8 Call_canSend(Message *);

void Call_initialisation(CO_Data* d);
void Call_preOperational(CO_Data* d);
void Call_operational(CO_Data* d);
void Call_stopped(CO_Data* d);

void Call_post_sync(CO_Data* d);
void Call_post_TPDO(CO_Data* d);
void Call_storeODSubIndex(CO_Data* d, UNS16 wIndex, UNS8 bSubindex);

#endif /*CALLBACK_H_*/