examples/TestMasterSlaveLSS/SlaveA.h
author Mongo
Thu, 13 Oct 2011 17:51:27 +0200
changeset 669 50da44ebaf00
parent 517 003679edc437
permissions -rw-r--r--
Configuration manager with DCF in object 0x1F22 rewritten almost from scratch.
1. The boot-up message from a device starts a verification of entries
2. If all entries matches the node is started
3. If an entry differs the whole dcf is written and a save is done
4. A reset is send to the node
5. If several boot-up are received at the same time they will be managed one
by one thus only one free sdo client is needed for the whole process.
#include "TestSlaveA.h"

void TestSlaveA_heartbeatError(CO_Data* d, UNS8);

UNS8 TestSlaveA_canSend(Message *);

void TestSlaveA_initialisation(CO_Data* d);
void TestSlaveA_preOperational(CO_Data* d);
void TestSlaveA_operational(CO_Data* d);
void TestSlaveA_stopped(CO_Data* d);

void TestSlaveA_post_sync(CO_Data* d);
void TestSlaveA_post_TPDO(CO_Data* d);
void TestSlaveA_storeODSubIndex(CO_Data* d, UNS16 wIndex, UNS8 bSubindex);
void TestSlaveA_post_emcy(CO_Data* d, UNS8 nodeID, UNS16 errCode, UNS8 errReg);
void TestSlaveA_NMT_Slave_Communications_Reset_Callback(CO_Data* d);
void TestSlaveA_StoreConfiguration(CO_Data* d, UNS8 *error, UNS8 *spec_error);