examples/TestMasterSlave/Slave.h
author ct@78566C00-6F59-1014-AAEE-A77C3B9AAB40
Thu, 12 May 2011 12:23:20 +0000
changeset 680 9a2474509269
parent 381 854c43cdc24a
permissions -rw-r--r--
Win32-Timer:
CHANGED: - Timer implementation for win32 from absolute time (_ftime) to GetTickCount().
This fixes the following bug: When the system time was changed, a heartbeat timeout occurred.
FIXED: - Timeout seems only work properly if EnterMutex() is called before call of GetTickCount() (Patch from Roland Marquis)
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
#include "TestSlave.h"
160
636d875c85dd Removed genrated dead prototypes for depricated callbacks.
etisserant
parents: 0
diff changeset
     2
378
d2abf6c8c27b 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.
etisserant
parents: 343
diff changeset
     3
void TestSlave_heartbeatError(CO_Data* d, UNS8);
160
636d875c85dd Removed genrated dead prototypes for depricated callbacks.
etisserant
parents: 0
diff changeset
     4
636d875c85dd Removed genrated dead prototypes for depricated callbacks.
etisserant
parents: 0
diff changeset
     5
UNS8 TestSlave_canSend(Message *);
636d875c85dd Removed genrated dead prototypes for depricated callbacks.
etisserant
parents: 0
diff changeset
     6
378
d2abf6c8c27b 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.
etisserant
parents: 343
diff changeset
     7
void TestSlave_initialisation(CO_Data* d);
d2abf6c8c27b 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.
etisserant
parents: 343
diff changeset
     8
void TestSlave_preOperational(CO_Data* d);
d2abf6c8c27b 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.
etisserant
parents: 343
diff changeset
     9
void TestSlave_operational(CO_Data* d);
d2abf6c8c27b 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.
etisserant
parents: 343
diff changeset
    10
void TestSlave_stopped(CO_Data* d);
160
636d875c85dd Removed genrated dead prototypes for depricated callbacks.
etisserant
parents: 0
diff changeset
    11
378
d2abf6c8c27b 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.
etisserant
parents: 343
diff changeset
    12
void TestSlave_post_sync(CO_Data* d);
d2abf6c8c27b 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.
etisserant
parents: 343
diff changeset
    13
void TestSlave_post_TPDO(CO_Data* d);
d2abf6c8c27b 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.
etisserant
parents: 343
diff changeset
    14
void TestSlave_storeODSubIndex(CO_Data* d, UNS16 wIndex, UNS8 bSubindex);
d2abf6c8c27b 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.
etisserant
parents: 343
diff changeset
    15
void TestSlave_post_emcy(CO_Data* d, UNS8 nodeID, UNS16 errCode, UNS8 errReg);