void requestRadioConnectionSetupFromOBU_v2_init_MoRC_Pck_Subfunc_Pkg(
  outC_requestRadioConnectionSetupFromOBU_v2_MoRC_Pck_Subfunc_Pkg *outC)
{
  outC->init = kcg_true;
  outC->p42_sessionManagement_mem.valid = kcg_true;
  outC->p42_sessionManagement_mem.msgSrc = msrc_undefined_Common_Types_Pkg;
  outC->p42_sessionManagement_mem.q_dir = Q_DIR_Reverse;
  outC->p42_sessionManagement_mem.q_rbc = Q_RBC_Terminate_communication_session;
  outC->p42_sessionManagement_mem.nid_c = 0;
  outC->p42_sessionManagement_mem.nid_RBC = 0;
  outC->p42_sessionManagement_mem.nid_radio = 0;
  outC->p42_sessionManagement_mem.q_sleepsession =
    Q_SLEEPSESSION_Ignore_session_establishment_order;
  outC->p42_sessionManagement_mem.origin.valid = kcg_true;
  outC->p42_sessionManagement_mem.origin.nid_c = 0;
  outC->p42_sessionManagement_mem.origin.rbc_id = 0;
  outC->p42_sessionManagement_mem.origin.device_id = 0;
  outC->repeat_SM_state_nxt = SSM_st_rep_inactive_repeat_SM;
  outC->connectionCmd.valid = kcg_true;
  outC->connectionCmd.mobileDeviceNo = 0;
  outC->connectionCmd.action = mca_nop_RCM_Types_Pkg;
  outC->connectionCmd.nid_radio = 0;
  /* 1 */ RisingEdge_init_digital(&outC->_1_Context_1);
  /* 1 */ countDownTimer_init_MoRC_Pck_Utils(&outC->Context_1);
  /* 2 */ RisingEdge_init_digital(&outC->Context_2);
}
void MA_Request_Supervision_init_TA_MA_Request(
  outC_MA_Request_Supervision_TA_MA_Request *outC)
{
  outC->triggerMA = kcg_true;
  outC->exception = kcg_true;
  outC->pendingReq = kcg_true;
  outC->init = kcg_true;
  outC->SM1_state_nxt = SSM_st_init_SM1;
  /* 2 */ RisingEdge_init_digital(&outC->Context_2);
  /* 1 */ RisingEdge_init_digital(&outC->_1_Context_1);
  /* 1 */ op_RepeatReq_init_TA_MA_Request(&outC->Context_1);
  /* op_3_8_2_3_a */
  op_3_8_2_3_a_init_TA_MA_Request(&outC->Context_op_3_8_2_3_a);
}
void locReachedOrPassed_init_BasicLo(outC_locReachedOrPassed_BasicLo *outC)
{
  outC->hit = kcg_true;
  /* 1 */ RisingEdge_init_digital(&outC->_1_Context_1);
  /* 2 */ signChanged_init_BasicLocationF(&outC->Context_2);
  /* 1 */ signChanged_init_BasicLocationF(&outC->Context_1);
}
void op_3_8_2_3_a_init_TA_MA_Request(outC_op_3_8_2_3_a_TA_MA_Request *outC)
{
  outC->exception = kcg_true;
  outC->triggerMA = kcg_true;
  outC->init = kcg_true;
  outC->rem_preindicationLoc = 0;
  /* 1 */ RisingEdge_init_digital(&outC->Context_1);
}
void HourGlassAnimation_init_DMI_Control_Pkg_Sub_func(
  outC_HourGlassAnimation_DMI_Control_Pkg_Sub_func *outC)
{
  outC->Output1 = 0;
  countDownTimer_init_MoRC_Pck_Utils(&outC->Context_1);
  RisingEdge_init_digital(&outC->_1_Context_1);
  Counter_init_pwlinear_int(&outC->_2_Context_1);
}
void prevPassedLinkedBG_init_CalculateTrainPosition_Pkg(
  outC_prevPassedLinkedBG_CalculateTrainPosition_Pkg *outC)
{
  int i;
  
  outC->init = kcg_true;
  outC->previouslyPassedBG.infoFromPassing.passingSpeed = 0;
  outC->previouslyPassedBG.infoFromPassing.trainRunningDirectionToBG =
    Q_DIRTRAIN_Reverse;
  outC->previouslyPassedBG.infoFromPassing.trainOrientationToBG =
    Q_DIRLRBG_Reverse;
  outC->previouslyPassedBG.infoFromPassing.noCoordinateSystemHasBeenAssigned =
    kcg_true;
  for (i = 0; i < 32; i++) {
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].q_locacc = 0;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].q_linkreaction =
      Q_LINKREACTION_Train_trip;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].q_linkorientation =
      Q_LINKORIENTATION_The_balise_group_is_seen_by_the_train_in_reverse_direction;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].nid_bg = 0;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].nid_c = 0;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].q_newcountry =
      Q_NEWCOUNTRY_Same_country__or__railway_administration_no_NID_C_follows;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].d_link = 0;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].q_scale =
      Q_SCALE_10_cm_scale;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].l_packet = 0;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].q_dir = Q_DIR_Reverse;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].nid_packet = 0;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].nid_LRBG = 0;
    outC->previouslyPassedBG.infoFromPassing.linkedBGs[i].valid = kcg_true;
  }
  outC->previouslyPassedBG.infoFromPassing.BG_Header.q_link = Q_LINK_Unlinked;
  outC->previouslyPassedBG.infoFromPassing.BG_Header.nid_bg = 0;
  outC->previouslyPassedBG.infoFromPassing.BG_Header.nid_c = 0;
  outC->previouslyPassedBG.infoFromPassing.BG_Header.m_mcount = 0;
  outC->previouslyPassedBG.infoFromPassing.BG_Header.m_dup =
    M_DUP_No_duplicates;
  outC->previouslyPassedBG.infoFromPassing.BG_Header.n_total =
    N_TOTAL_1_balise_in_the_group;
  outC->previouslyPassedBG.infoFromPassing.BG_Header.n_pig = N_PIG_I_am_the_1st;
  outC->previouslyPassedBG.infoFromPassing.BG_Header.q_media = Q_MEDIA_Balise;
  outC->previouslyPassedBG.infoFromPassing.BG_Header.m_version =
    M_VERSION_Previous_versions_according_to_e_g_EEIG_SRS_and_UIC_A200_SRS;
  outC->previouslyPassedBG.infoFromPassing.BG_Header.q_updown =
    Q_UPDOWN_Down_link_telegram;
  outC->previouslyPassedBG.infoFromPassing.BG_centerDetectionInaccuraccuracies.d_max =
    0;
  outC->previouslyPassedBG.infoFromPassing.BG_centerDetectionInaccuraccuracies.d_min =
    0;
  outC->previouslyPassedBG.infoFromPassing.BG_centerDetectionInaccuraccuracies.nominal =
    0;
  outC->previouslyPassedBG.infoFromPassing.odometrystamp.o_max = 0;
  outC->previouslyPassedBG.infoFromPassing.odometrystamp.o_min = 0;
  outC->previouslyPassedBG.infoFromPassing.odometrystamp.o_nominal = 0;
  outC->previouslyPassedBG.infoFromPassing.timestamp = 0;
  outC->previouslyPassedBG.infoFromPassing.valid = kcg_true;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.q_locacc = 0;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.q_linkreaction =
    Q_LINKREACTION_Train_trip;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.q_linkorientation =
    Q_LINKORIENTATION_The_balise_group_is_seen_by_the_train_in_reverse_direction;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.nid_bg = 0;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.nid_c = 0;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.q_newcountry =
    Q_NEWCOUNTRY_Same_country__or__railway_administration_no_NID_C_follows;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.d_link = 0;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.q_scale =
    Q_SCALE_10_cm_scale;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.l_packet = 0;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.q_dir = Q_DIR_Reverse;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.nid_packet = 0;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.nid_LRBG = 0;
  outC->previouslyPassedBG.infoFromLinking.linkingInfo.valid = kcg_true;
  outC->previouslyPassedBG.infoFromLinking.d_link.d_max = 0;
  outC->previouslyPassedBG.infoFromLinking.d_link.d_min = 0;
  outC->previouslyPassedBG.infoFromLinking.d_link.nominal = 0;
  outC->previouslyPassedBG.infoFromLinking.expectedLocation.d_max = 0;
  outC->previouslyPassedBG.infoFromLinking.expectedLocation.d_min = 0;
  outC->previouslyPassedBG.infoFromLinking.expectedLocation.nominal = 0;
  outC->previouslyPassedBG.infoFromLinking.nid_c_fromLinkingBG = 0;
  outC->previouslyPassedBG.infoFromLinking.nid_bg_fromLinkingBG = 0;
  outC->previouslyPassedBG.infoFromLinking.valid = kcg_true;
  outC->previouslyPassedBG.seqNoOnTrack = 0;
  outC->previouslyPassedBG.location.d_max = 0;
  outC->previouslyPassedBG.location.d_min = 0;
  outC->previouslyPassedBG.location.nominal = 0;
  outC->previouslyPassedBG.q_link = Q_LINK_Unlinked;
  outC->previouslyPassedBG.nid_bg = 0;
  outC->previouslyPassedBG.nid_c = 0;
  outC->previouslyPassedBG.valid = kcg_true;
  RisingEdge_init_digital(&outC->Context_1);
}