etisserant@246: /* etisserant@246: This file is part of CanFestival, a library implementing CanOpen Stack. etisserant@246: etisserant@246: Copyright (C): Edouard TISSERANT and Francis DUPIN etisserant@246: etisserant@246: See COPYING file for copyrights details. etisserant@246: etisserant@246: This library is free software; you can redistribute it and/or etisserant@246: modify it under the terms of the GNU Lesser General Public etisserant@246: License as published by the Free Software Foundation; either etisserant@246: version 2.1 of the License, or (at your option) any later version. etisserant@246: etisserant@246: This library is distributed in the hope that it will be useful, etisserant@246: but WITHOUT ANY WARRANTY; without even the implied warranty of etisserant@246: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU etisserant@246: Lesser General Public License for more details. etisserant@246: etisserant@246: You should have received a copy of the GNU Lesser General Public etisserant@246: License along with this library; if not, write to the Free Software etisserant@246: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA etisserant@246: */ etisserant@246: #include etisserant@246: #include etisserant@246: #include etisserant@246: #include etisserant@246: etisserant@246: #include "CallBack.h" etisserant@246: #include "main.h" etisserant@246: extern "C" etisserant@246: { etisserant@246: #include "ObjDict.h" etisserant@246: } etisserant@246: etisserant@246: etisserant@246: extern wxTextCtrl *textLog; etisserant@246: etisserant@246: /*****************************************************************************/ etisserant@246: void Call_heartbeatError(UNS8 heartbeatID) etisserant@246: { etisserant@246: *textLog << wxT("HeartbeatError\n"); etisserant@246: } etisserant@246: etisserant@246: void Call_initialisation() etisserant@246: { etisserant@246: *textLog << wxT("Initialisation\n"); etisserant@246: } etisserant@246: etisserant@246: void Call_preOperational() etisserant@246: { etisserant@246: *textLog << wxT("PreOperational\n"); etisserant@246: } etisserant@246: etisserant@246: void Call_operational() etisserant@246: { etisserant@246: *textLog << wxT("Operational\n"); etisserant@246: } etisserant@246: etisserant@246: void Call_stopped() etisserant@246: { etisserant@246: *textLog << wxT("Stopped\n"); etisserant@246: } etisserant@246: etisserant@246: void Call_post_sync() etisserant@246: { etisserant@246: *textLog << wxT("Post_sync\n"); etisserant@246: printf("POST SYNC:\n"); etisserant@246: printf(" Write_Outputs: %x \n Analogue_Output1: %d \n Analogue_Output2: %d \n", Write_Outputs_8_Bit[0], Write_Analogue_Output_16_Bit[0], Write_Analogue_Output_16_Bit[1]); etisserant@246: printf(" Read_Input: %x \n Analogue_Input1: %d \n Analogue_Input2: %d \n", Read_Inputs_8_Bit[0], Read_Analogue_Input_16_Bit[0], Read_Analogue_Input_16_Bit[1]); etisserant@246: } etisserant@246: etisserant@246: void Call_post_TPDO() etisserant@246: { etisserant@246: *textLog << wxT("Post_TPDO\n"); etisserant@246: } etisserant@246: etisserant@246: void Call_storeODSubIndex(UNS16 wIndex, UNS8 bSubindex) etisserant@246: { etisserant@246: printf("StoreODSubIndex : %4.4x %2.2x\n", wIndex, bSubindex); etisserant@246: *textLog << wxT("StoreODSubIndex :\n"); etisserant@246: }