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@382: extern "C" etisserant@382: { etisserant@382: #include "ObjDict.h" etisserant@382: } etisserant@246: etisserant@246: etisserant@382: extern wxTextCtrl *textLog; etisserant@246: etisserant@246: /*****************************************************************************/ etisserant@382: void etisserant@382: Call_heartbeatError (CO_Data * d, UNS8 heartbeatID) etisserant@246: { etisserant@382: //*textLog << wxT("HeartbeatError\n"); etisserant@246: } etisserant@246: etisserant@382: void etisserant@382: Call_initialisation (CO_Data * d) etisserant@246: { etisserant@382: //*textLog << wxT("Initialisation\n"); etisserant@246: } etisserant@246: etisserant@382: void etisserant@382: Call_preOperational (CO_Data * d) etisserant@246: { etisserant@382: //*textLog << wxT("PreOperational\n"); etisserant@246: } etisserant@246: etisserant@382: void etisserant@382: Call_operational (CO_Data * d) etisserant@246: { etisserant@382: //*textLog << wxT("Operational\n"); etisserant@246: } etisserant@246: etisserant@382: void etisserant@382: Call_stopped (CO_Data * d) etisserant@246: { etisserant@382: //*textLog << wxT("Stopped\n"); etisserant@246: } etisserant@246: etisserant@382: void etisserant@382: Call_post_sync (CO_Data * d) etisserant@246: { etisserant@382: //*textLog << wxT("Post_sync\n"); etisserant@407: /* printf ("POST SYNC:\n"); etisserant@382: printf etisserant@382: (" Write_Outputs: %x \n Analogue_Output1: %d \n Analogue_Output2: %d \n", etisserant@382: Write_Outputs_8_Bit[0], Write_Analogue_Output_16_Bit[0], etisserant@382: Write_Analogue_Output_16_Bit[1]); etisserant@382: printf etisserant@382: (" Read_Input: %x \n Analogue_Input1: %d \n Analogue_Input2: %d \n", etisserant@382: Read_Inputs_8_Bit[0], Read_Analogue_Input_16_Bit[0], etisserant@407: Read_Analogue_Input_16_Bit[1]);*/ etisserant@246: } etisserant@246: etisserant@382: void etisserant@382: Call_post_TPDO (CO_Data * d) etisserant@246: { etisserant@382: //*textLog << wxT("Post_TPDO\n"); etisserant@246: } etisserant@246: etisserant@382: void etisserant@382: Call_storeODSubIndex (CO_Data * d, UNS16 wIndex, UNS8 bSubindex) etisserant@246: { etisserant@407: /*printf ("StoreODSubIndex : %4.4x %2.2x\n", wIndex, bSubindex);*/ etisserant@382: //*textLog << wxT("StoreODSubIndex :\n"); etisserant@246: }