/* US_Integration_June::Amsterdam_Utrecht */ void Amsterdam_Utrecht_US_Integration_June(void) { Ctxt_Amsterdam_Utrecht_US_Integration_June._L2 = TrainPos; /* 1 */ Amsterdam_Utrecht_Lijn1_b_AmsterdamUtrechtL2_AmsterdamUtrechtTrack1( Ctxt_Amsterdam_Utrecht_US_Integration_June._L2, &Ctxt_Amsterdam_Utrecht_US_Integration_June.Context_1); kcg_copy_CompressedBaliseMessage_TM( &Ctxt_Amsterdam_Utrecht_US_Integration_June._L1, &Ctxt_Amsterdam_Utrecht_US_Integration_June.Context_1.BaliseMessage); kcg_copy_CompressedPackets_T_Common_Types_Pkg( &Ctxt_Amsterdam_Utrecht_US_Integration_June._L6, &Ctxt_Amsterdam_Utrecht_US_Integration_June._L1.Messages); Ctxt_Amsterdam_Utrecht_US_Integration_June._L13 = Trigger_in; /* 1 */ Amsterdam_Utrecht_RBC_Int_US_Integration_June( Ctxt_Amsterdam_Utrecht_US_Integration_June._L13, &Ctxt_Amsterdam_Utrecht_US_Integration_June._1_Context_1); kcg_copy_Radio_TrackTrain_Header_T_Radio_Types_Pkg( &Ctxt_Amsterdam_Utrecht_US_Integration_June._L8, &Ctxt_Amsterdam_Utrecht_US_Integration_June._1_Context_1.RadioTrackTrainHeader_out); kcg_copy_CompressedPackets_T_Common_Types_Pkg( &Ctxt_Amsterdam_Utrecht_US_Integration_June._L9, &Ctxt_Amsterdam_Utrecht_US_Integration_June._1_Context_1.Compressed_Packets_out); kcg_copy_CompressedRadioMessage_TM( &Ctxt_Amsterdam_Utrecht_US_Integration_June._L10, &Ctxt_Amsterdam_Utrecht_US_Integration_June._1_Context_1.Compressed_Radio_Message_out); kcg_copy_CompressedRadioMessage_TM( &Compressed_Radio_Message_out, &Ctxt_Amsterdam_Utrecht_US_Integration_June._L10); kcg_copy_CompressedPackets_T_Common_Types_Pkg( &Compressed_Packets_out, &Ctxt_Amsterdam_Utrecht_US_Integration_June._L9); kcg_copy_Radio_TrackTrain_Header_T_Radio_Types_Pkg( &RadioTrackTrainHeader_out, &Ctxt_Amsterdam_Utrecht_US_Integration_June._L8); kcg_copy_BaliseTelegramHeader_int_T_TM( &Ctxt_Amsterdam_Utrecht_US_Integration_June._L5, &Ctxt_Amsterdam_Utrecht_US_Integration_June._L1.Header); /* 1 */ CASTLIB_BaliseHeaders_TM_conversions( &Ctxt_Amsterdam_Utrecht_US_Integration_June._L5, &Ctxt_Amsterdam_Utrecht_US_Integration_June._2_Context_1); kcg_copy_TelegramHeader_T_BG_Types_Pkg( &Ctxt_Amsterdam_Utrecht_US_Integration_June._L7, &Ctxt_Amsterdam_Utrecht_US_Integration_June._2_Context_1.Out); kcg_copy_TelegramHeader_T_BG_Types_Pkg( &Balise_Header, &Ctxt_Amsterdam_Utrecht_US_Integration_June._L7); kcg_copy_CompressedPackets_T_Common_Types_Pkg( &Balise_Packets, &Ctxt_Amsterdam_Utrecht_US_Integration_June._L6); }
/* Receive_TrackSide_Msg_Pkg::BaliseSupport::compareTelegrams */ void compareTelegrams_Receive_TrackSide_Msg_Pkg_BaliseSupport( /* Receive_TrackSide_Msg_Pkg::BaliseSupport::compareTelegrams::inTelegram1 */ Telegram_T_BG_Types_Pkg *inTelegram1, /* Receive_TrackSide_Msg_Pkg::BaliseSupport::compareTelegrams::inTelegram2 */ Telegram_T_BG_Types_Pkg *inTelegram2, outC_compareTelegrams_Receive_TrackSide_Msg_Pkg_BaliseSupport *outC) { /* Receive_TrackSide_Msg_Pkg::BaliseSupport::compareTelegrams::isEqual */ kcg_bool _1_isEqual; /* Receive_TrackSide_Msg_Pkg::BaliseSupport::compareTelegrams::isEqual */ kcg_bool isEqual; kcg_copy_Telegram_T_BG_Types_Pkg(&outC->_L1, inTelegram1); kcg_copy_Telegram_T_BG_Types_Pkg(&outC->_L2, inTelegram2); kcg_copy_TelegramHeader_T_BG_Types_Pkg(&outC->_L3, &outC->_L1.telegramheader); kcg_copy_TelegramHeader_T_BG_Types_Pkg(&outC->_L4, &outC->_L2.telegramheader); outC->_L5 = kcg_comp_TelegramHeader_T_BG_Types_Pkg(&outC->_L3, &outC->_L4); outC->HeaderIsEqual = outC->_L5; outC->IfBlock1_clock = outC->HeaderIsEqual; /* ck_IfBlock1 */ if (outC->IfBlock1_clock) { kcg_copy_Telegram_T_BG_Types_Pkg(&outC->_L5_IfBlock1, inTelegram1); kcg_copy_CompressedPackets_T_Common_Types_Pkg( &outC->_L2_IfBlock1, &outC->_L5_IfBlock1.packets); kcg_copy_Telegram_T_BG_Types_Pkg(&outC->_L4_IfBlock1, inTelegram2); kcg_copy_CompressedPackets_T_Common_Types_Pkg( &outC->_L3_IfBlock1, &outC->_L4_IfBlock1.packets); outC->_L1_IfBlock1 = kcg_comp_CompressedPackets_T_Common_Types_Pkg( &outC->_L2_IfBlock1, &outC->_L3_IfBlock1); _1_isEqual = outC->_L1_IfBlock1; outC->isEqual = _1_isEqual; } else { outC->_L11_IfBlock1 = kcg_false; isEqual = outC->_L11_IfBlock1; outC->isEqual = isEqual; } }
/* Receive_TrackSide_Msg_Pkg::Receive_BaliseTelegram */ void Receive_BaliseTelegram_Receive_TrackSide_Msg_Pkg( /* Receive_TrackSide_Msg_Pkg::Receive_BaliseTelegram::reset */ kcg_bool reset, /* Receive_TrackSide_Msg_Pkg::Receive_BaliseTelegram::inActualOdometry */ odometry_T_Obu_BasicTypes_Pkg *inActualOdometry, /* Receive_TrackSide_Msg_Pkg::Receive_BaliseTelegram::API_TrackSide_Msg */ API_TrackSideInput_T_API_Msg_Pkg *API_TrackSide_Msg, outC_Receive_BaliseTelegram_Receive_TrackSide_Msg_Pkg *outC) { /* Receive_TrackSide_Msg_Pkg::Receive_BaliseTelegram */ static Telegram_T_BG_Types_Pkg mk_struct; /* Receive_TrackSide_Msg_Pkg::Receive_BaliseTelegram::telegramPresent */ static kcg_bool telegramPresent; outC->outTrackMessage_for_check.systemTime = (*API_TrackSide_Msg).systemTimeMsgReceived; outC->outTrackMessage_for_check.msg_type = (*API_TrackSide_Msg).msg_type; kcg_copy_RadioMessage_T_Radio_Types_Pkg( &outC->outTrackMessage_for_check.radio_Msg, (RadioMessage_T_Radio_Types_Pkg *) &cEmptyRadioMsg_Radio_Types_Pkg); telegramPresent = (*API_TrackSide_Msg).valid & (*API_TrackSide_Msg).btm_msg.present; mk_struct.valid = telegramPresent; mk_struct.checkResult = (*API_TrackSide_Msg).btm_msg.checkResult; kcg_copy_TelegramHeader_T_BG_Types_Pkg( &mk_struct.telegramheader, &(*API_TrackSide_Msg).btm_msg.api_header); kcg_copy_CompressedPackets_T_Common_Types_Pkg( &mk_struct.packets, &(*API_TrackSide_Msg).packets); /* 1 */ BuildBGMessage_Receive_TrackSide_Msg_Pkg( reset, telegramPresent, &mk_struct, &(*API_TrackSide_Msg).btm_msg.centerOfBalisePosition, inActualOdometry, &outC->Context_1); outC->outTrackMessage_for_check.valid = outC->Context_1.outBGMessage.present; kcg_copy_BG_Message_T_BG_Types_Pkg( &outC->outTrackMessage_for_check.telegramHeaders, &outC->Context_1.outBGMessage); }