00001
00002
00003
00004
00005 if(Input_Enabled()) {
00006 if(connection_established){
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 int j;
00019
00020 strcpy(in_String, Input_Value());
00021
00022
00023 if(IsMaster_Value())
00024 vccPrintPdxDebugInfo("%_START_ MASTER : GBI <-received [%s] from NET!!! %_END_", in_String);
00025 else
00026 vccPrintPdxDebugInfo("%_START_ SLAVE : GBI <-received [%s] from NET!!! %_END_", in_String);
00027
00028
00029
00030 L2CA_packet_out.Service.__unionTag = L2CA_Service_Union_Write_tag;
00031 L2CA_packet_out.Service.__union.Write.__unionTag = L2CA_Write_Union_Request_tag;
00032
00033 L2CA_packet_out.SourceID = 0x02;
00034 L2CA_packet_out.Service.__union.Write.__union.Request.CID = CID;
00035 L2CA_packet_out.Service.__union.Write.__union.Request.Length = strlen(in_String);
00036
00037 for(j = 0; j < strlen(in_String); j++){
00038 L2CA_packet_out.Service.__union.Write.__union.Request.OutBuffer[j] = in_String[j];
00039 }
00040
00041 L2CA_Packet_Out_Post(&L2CA_packet_out);
00042
00043
00044 if(IsMaster_Value())
00045 vccPrintPdxDebugInfo("%_START_ MASTER : GBI ->sent [Write_Request] + String : %s %_END_", in_String);
00046 else
00047 vccPrintPdxDebugInfo("%_START_ SLAVE : GBI ->sent [Write_Request] + String : %s %_END_", in_String);
00048 }
00049 }
00050