/*
 * File: Set_Diag_20ms.c
 *
 * Code generated for Simulink model 'P417_SWTR_App'.
 *
 * Model version                  : 1.165
 * Simulink Coder version         : 8.13 (R2017b) 24-Jul-2017
 * C/C++ source code generated on : Sun Jun 25 21:59:14 2023
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Intel->x86-64 (Windows64)
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#include "Set_Diag_20ms.h"

/* Include model header file for global data */
#include "P417_SWTR_App.h"
#include "P417_SWTR_App_private.h"

/* System initialize for function-call system: '<S1>/Set_Diag_20ms' */
void P417_SWTR_Ap_Set_Diag_20ms_Init(const ConstB_Set_Diag_20ms_P417_SWT_T
  *localC)
{
  /* SystemInitialize for SignalConversion: '<S10>/OutportBufferForSet_DiagcFailrTouchPanSWTRCmnFltSts' */
  RTE_Set_CAN_DiagcFailrTouchPanSWTRCmnFltSts(localC->Off);

  /* SystemInitialize for SignalConversion: '<S10>/OutportBufferForSet_DiagcFailrTouchPanSWTRSnsrFltSts' */
  RTE_Set_CAN_DiagcFailrTouchPanSWTRSnsrFltSts(localC->Off);

  /* SystemInitialize for SignalConversion: '<S10>/OutportBufferForSet_DiagcFailrTouchPanSWTRTouchdFltSts' */
  RTE_Set_CAN_DiagcFailrTouchPanSWTRTouchdFltSts(localC->Off);

  /* SystemInitialize for SignalConversion: '<S10>/OutportBufferForSet_DiagcFailrTouchPanSWTRVibrationFltSts' */
  RTE_Set_CAN_DiagcFailrTouchPanSWTRVibrationFltSts(localC->Off);
}

/* Output and update for function-call system: '<S1>/Set_Diag_20ms' */
void P417_SWTR_App_Set_Diag_20ms(const ConstB_Set_Diag_20ms_P417_SWT_T *localC)
{
  /* SignalConversion: '<S10>/OutportBufferForSet_DiagcFailrTouchPanSWTRCmnFltSts' */
  RTE_Set_CAN_DiagcFailrTouchPanSWTRCmnFltSts(localC->Off);

  /* SignalConversion: '<S10>/OutportBufferForSet_DiagcFailrTouchPanSWTRSnsrFltSts' */
  RTE_Set_CAN_DiagcFailrTouchPanSWTRSnsrFltSts(localC->Off);

  /* SignalConversion: '<S10>/OutportBufferForSet_DiagcFailrTouchPanSWTRTouchdFltSts' */
  RTE_Set_CAN_DiagcFailrTouchPanSWTRTouchdFltSts(localC->Off);

  /* SignalConversion: '<S10>/OutportBufferForSet_DiagcFailrTouchPanSWTRVibrationFltSts' */
  RTE_Set_CAN_DiagcFailrTouchPanSWTRVibrationFltSts(localC->Off);
}

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
