groke6@381: /* groke6@381: This file is part of CanFestival, a library implementing CanOpen Stack. groke6@381: groke6@381: Copyright (C): Edouard TISSERANT and Francis DUPIN groke6@381: groke6@381: See COPYING file for copyrights details. groke6@381: groke6@381: This library is free software; you can redistribute it and/or groke6@381: modify it under the terms of the GNU Lesser General Public groke6@381: License as published by the Free Software Foundation; either groke6@381: version 2.1 of the License, or (at your option) any later version. groke6@381: groke6@381: This library is distributed in the hope that it will be useful, groke6@381: but WITHOUT ANY WARRANTY; without even the implied warranty of groke6@381: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU groke6@381: Lesser General Public License for more details. groke6@381: groke6@381: You should have received a copy of the GNU Lesser General Public groke6@381: License along with this library; if not, write to the Free Software groke6@381: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA groke6@381: */ groke6@381: groke6@381: #include "SlaveB.h" groke6@381: #include "Master.h" groke6@381: #include "TestMasterSlaveLSS.h" groke6@381: groke6@381: /*****************************************************************************/ groke6@381: void TestSlaveB_heartbeatError(CO_Data* d, UNS8 heartbeatID) groke6@381: { groke6@381: eprintf("TestSlaveB_heartbeatError %d\n", heartbeatID); groke6@381: } groke6@381: groke6@381: void TestSlaveB_initialisation(CO_Data* d) groke6@381: { groke6@381: eprintf("TestSlaveB_initialisation\n"); groke6@381: } groke6@381: groke6@381: void TestSlaveB_preOperational(CO_Data* d) groke6@381: { groke6@381: eprintf("TestSlaveB_preOperational\n"); groke6@381: } groke6@381: groke6@381: void TestSlaveB_operational(CO_Data* d) groke6@381: { groke6@381: eprintf("TestSlaveB_operational\n"); groke6@381: } groke6@381: groke6@381: void TestSlaveB_stopped(CO_Data* d) groke6@381: { groke6@381: eprintf("TestSlaveB_stopped\n"); groke6@381: } groke6@381: groke6@381: void TestSlaveB_post_sync(CO_Data* d) groke6@381: { groke6@381: eprintf("TestSlaveB_post_sync\n"); groke6@381: } groke6@381: groke6@381: void TestSlaveB_post_TPDO(CO_Data* d) groke6@381: { groke6@381: eprintf("TestSlaveB_post_TPDO\n"); groke6@381: SlaveBMap1+=16; groke6@381: } groke6@381: groke6@381: void TestSlaveB_storeODSubIndex(CO_Data* d, UNS16 wIndex, UNS8 bSubindex) groke6@381: { groke6@381: /*TODO : groke6@381: * - call getODEntry for index and subindex, groke6@381: * - save content to file, database, flash, nvram, ... groke6@381: * groke6@381: * To ease flash organisation, index of variable to store groke6@381: * can be established by scanning d->objdict[d->ObjdictSize] groke6@381: * for variables to store. groke6@381: * groke6@381: * */ groke6@381: eprintf("TestSlaveB_storeODSubIndex : %4.4x %2.2x\n", wIndex, bSubindex); groke6@381: } groke6@381: groke6@381: void TestSlaveB_post_emcy(CO_Data* d, UNS8 nodeID, UNS16 errCode, UNS8 errReg) groke6@381: { groke6@381: eprintf("SlaveB received EMCY message. Node: %2.2x ErrorCode: %4.4x ErrorRegister: %2.2x\n", nodeID, errCode, errReg); groke6@381: } groke6@381: groke6@517: void TestSlaveB_NMT_Slave_Communications_Reset_Callback(CO_Data* d) groke6@517: { groke6@517: eprintf("TestSlaveB_NMT_Slave_Communications_Reset_Callback\n"); groke6@517: } groke6@517: groke6@381: void TestSlaveB_StoreConfiguration(CO_Data* d, UNS8 *error, UNS8 *spec_error) groke6@381: { groke6@517: eprintf("TestSlaveB_StoreConfiguration\n"); groke6@381: } groke6@381: