examples/DS401_Slave_Gui/CallBack.cpp
changeset 378 d2abf6c8c27b
parent 302 7ba4302a9999
child 382 860e858685d3
equal deleted inserted replaced
377:bea5a1576cbd 378:d2abf6c8c27b
    33 
    33 
    34 
    34 
    35 extern wxTextCtrl 	*textLog;
    35 extern wxTextCtrl 	*textLog;
    36 
    36 
    37 /*****************************************************************************/
    37 /*****************************************************************************/
    38 void Call_heartbeatError(UNS8 heartbeatID)
    38 void Call_heartbeatError(CO_Data* d, UNS8 heartbeatID)
    39 {
    39 {
    40 	//*textLog << wxT("HeartbeatError\n");
    40 	//*textLog << wxT("HeartbeatError\n");
    41 }
    41 }
    42 
    42 
    43 void Call_initialisation()
    43 void Call_initialisation(CO_Data* d)
    44 {
    44 {
    45 	//*textLog << wxT("Initialisation\n");
    45 	//*textLog << wxT("Initialisation\n");
    46 }
    46 }
    47 
    47 
    48 void Call_preOperational()
    48 void Call_preOperational(CO_Data* d)
    49 {
    49 {
    50 	//*textLog << wxT("PreOperational\n");
    50 	//*textLog << wxT("PreOperational\n");
    51 }
    51 }
    52 
    52 
    53 void Call_operational()
    53 void Call_operational(CO_Data* d)
    54 {
    54 {
    55 	//*textLog << wxT("Operational\n");
    55 	//*textLog << wxT("Operational\n");
    56 }
    56 }
    57 
    57 
    58 void Call_stopped()
    58 void Call_stopped(CO_Data* d)
    59 {
    59 {
    60 	//*textLog << wxT("Stopped\n");
    60 	//*textLog << wxT("Stopped\n");
    61 }
    61 }
    62 
    62 
    63 void Call_post_sync()
    63 void Call_post_sync(CO_Data* d)
    64 {
    64 {
    65     //*textLog << wxT("Post_sync\n");
    65     //*textLog << wxT("Post_sync\n");
    66 	printf("POST SYNC:\n");
    66 	printf("POST SYNC:\n");
    67 	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]);
    67 	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]);
    68 	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]);
    68 	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]);
    69 }
    69 }
    70 
    70 
    71 void Call_post_TPDO()
    71 void Call_post_TPDO(CO_Data* d)
    72 {
    72 {
    73 	//*textLog << wxT("Post_TPDO\n");
    73 	//*textLog << wxT("Post_TPDO\n");
    74 }
    74 }
    75 
    75 
    76 void Call_storeODSubIndex(UNS16 wIndex, UNS8 bSubindex)
    76 void Call_storeODSubIndex(CO_Data* d, UNS16 wIndex, UNS8 bSubindex)
    77 {
    77 {
    78 	printf("StoreODSubIndex : %4.4x %2.2x\n", wIndex,  bSubindex);
    78 	printf("StoreODSubIndex : %4.4x %2.2x\n", wIndex,  bSubindex);
    79 	//*textLog << wxT("StoreODSubIndex :\n");
    79 	//*textLog << wxT("StoreODSubIndex :\n");
    80 }
    80 }