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

#ifndef RTW_HEADER_P417_SWTL_App_h_
#define RTW_HEADER_P417_SWTL_App_h_
#include <stddef.h>
#include <string.h>
#ifndef P417_SWTL_App_COMMON_INCLUDES_
# define P417_SWTL_App_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* P417_SWTL_App_COMMON_INCLUDES_ */

#include "P417_SWTL_App_types.h"

/* Child system includes */
#include "ACT_control_20ms.h"
#include "CAN_0x305_1000ms_Control.h"
#include "CAN_0x305_25ms_Control.h"
#include "Choose_CRC_5ms.h"
#include "Choose_RC_5ms.h"
#include "Get_0x300_CRC_10ms.h"
#include "Get_0x305_CRC_1000ms.h"
#include "Get_0x305_CRC_25ms.h"
#include "LED_Control_10ms.h"
#include "Set_0x300_RC_10ms.h"
#include "Set_Diag_20ms.h"
#include "TouchBoardXY_handle_4ms.h"
#include "TouchBoard_0x300_Send_And_ACT_Req_10ms.h"
#include "TouchBoard_0x305_Send_And_ACT_Req_4ms.h"
#include "TouchBoard_ADAS_handle_4ms.h"
#include "TouchBoard_Cancel_handle_4ms.h"
#include "TouchBoard_Center_handle_4ms.h"
#include "TouchBoard_Down_handle_4ms.h"
#include "TouchBoard_Left_Right_Slide_handle_4ms.h"
#include "TouchBoard_Left_handle_4ms.h"
#include "TouchBoard_Res_handle_4ms.h"
#include "TouchBoard_Right_handle_4ms.h"
#include "TouchBoard_Up_Down_Slide_handle_4ms.h"
#include "TouchBoard_X_handle_4ms.h"
#include "TouchBoard_Y_handle_4ms.h"
#include "TouchBoard_up_handle_4ms.h"
#include "illumination_control_10ms.h"
#include "rt_sys_P417_SWTL_App_0.h"

/* Macros for accessing real-time model data structure */
#ifndef rtmGetErrorStatus
# define rtmGetErrorStatus(rtm)        ((rtm)->errorStatus)
#endif

#ifndef rtmSetErrorStatus
# define rtmSetErrorStatus(rtm, val)   ((rtm)->errorStatus = (val))
#endif

/* Block signals (auto storage) */
typedef struct {
  uint8_T DataTypeConversion;          /* '<S21>/Data Type Conversion' */
  uint8_T TouchBoard_XY_Sts_input;     /* '<S19>/TouchBoard_XY_Sts_input' */
  uint8_T XY_Touch_And_Below_1N;       /* '<S19>/XY_Touch_And_Below_1N' */
  uint8_T TouchBoard_Up_Down_Slide_Sts_in;/* '<S30>/TouchBoard_Up_Down_Slide_Sts_input' */
  uint8_T TouchBoard_Left_Right_Slide_Sts;/* '<S26>/TouchBoard_Left_Right_Slide_Sts_input' */
  uint8_T TouchBoard_Cancel_Sts_input; /* '<S23>/TouchBoard_Cancel_Sts_input' */
  uint8_T TouchBoard_ADAS1_Sts_input;  /* '<S22>/TouchBoard_ADAS1_Sts_input' */
  uint8_T TouchBoard_Res_Sts_input;    /* '<S28>/TouchBoard_Res_Sts_input' */
  uint8_T TouchBoard_Center_Sts_input; /* '<S24>/TouchBoard_Center_Sts_input' */
  uint8_T TouchBoard_Right_Sts_input;  /* '<S29>/TouchBoard_Right_Sts_input' */
  uint8_T TouchBoard_Left_Sts_input;   /* '<S27>/TouchBoard_Left_Sts_input' */
  uint8_T TouchBoard_Down_Sts_input;   /* '<S25>/TouchBoard_Down_Sts_input' */
  uint8_T TouchBoard_Up_Sts_input;     /* '<S33>/TouchBoard_Up_Sts_input' */
  uint8_T DataTypeConversion_g;        /* '<S20>/Data Type Conversion' */
  uint8_T DataTypeConversion1;         /* '<S20>/Data Type Conversion1' */
  uint8_T Fault_confirmed;             /* '<S37>/Fault_Debounce_Chart' */
  uint8_T Fault_confirmed_i;           /* '<S35>/Fault_Debounce_Chart' */
  B_TouchBoard_Y_handle_4ms_P41_T TouchBoard_Y_handle_4ms;/* '<S2>/TouchBoard_Y_handle_4ms' */
  B_TouchBoard_X_handle_4ms_P41_T TouchBoard_X_handle_4ms;/* '<S2>/TouchBoard_X_handle_4ms' */
  B_illumination_control_10ms_P_T illumination_control_10ms;/* '<S2>/illumination_control_10ms' */
} B_P417_SWTL_App_T;

/* Block states (auto storage) for system '<Root>' */
typedef struct {
  uint16_T temporalCounter_i6;         /* '<Root>/Task Scheduler' */
  uint8_T UnitDelay_DSTATE;            /* '<S18>/Unit Delay' */
  uint8_T temporalCounter_i1;          /* '<Root>/Task Scheduler' */
  uint8_T temporalCounter_i2;          /* '<Root>/Task Scheduler' */
  uint8_T temporalCounter_i3;          /* '<Root>/Task Scheduler' */
  uint8_T temporalCounter_i4;          /* '<Root>/Task Scheduler' */
  uint8_T temporalCounter_i5;          /* '<Root>/Task Scheduler' */
  DW_LED_Control_10ms_P417_SWTL_T LED_Control_10ms;/* '<S1>/LED_Control_10ms' */
  DW_Fault_Debounce_Chart_P417__T sf_Fault_Debounce_Chart_d;/* '<S37>/Fault_Debounce_Chart' */
  DW_Fault_Debounce_Chart_P417__T sf_Fault_Debounce_Chart;/* '<S35>/Fault_Debounce_Chart' */
  DW_illumination_control_10ms__T illumination_control_10ms;/* '<S2>/illumination_control_10ms' */
} DW_P417_SWTL_App_T;

/* Invariant block signals (auto storage) */
typedef struct {
  ConstB_TouchBoard_Res_handle__T TouchBoard_Res_handle_4ms;/* '<S2>/TouchBoard_Res_handle_4ms' */
  ConstB_Choose_RC_5ms_P417_SWT_T Choose_RC_5ms;/* '<S1>/Choose_RC_5ms' */
  ConstB_Set_Diag_20ms_P417_SWT_T Set_Diag_20ms;/* '<S1>/Set_Diag_20ms' */
  ConstB_TouchBoard_Y_handle_4m_T TouchBoard_Y_handle_4ms;/* '<S2>/TouchBoard_Y_handle_4ms' */
  ConstB_TouchBoard_X_handle_4m_T TouchBoard_X_handle_4ms;/* '<S2>/TouchBoard_X_handle_4ms' */
} ConstB_P417_SWTL_App_T;

/* Real-time Model Data Structure */
struct tag_RTM_P417_SWTL_App_T {
  const char_T *errorStatus;
};

/* Block signals (auto storage) */
extern B_P417_SWTL_App_T P417_SWTL_App_B;

/* Block states (auto storage) */
extern DW_P417_SWTL_App_T P417_SWTL_App_DW;
extern const ConstB_P417_SWTL_App_T P417_SWTL_App_ConstB;/* constant block i/o */

/* Model entry point functions */
extern void P417_SWTL_App_initialize(void);
extern void P417_SWTL_App_step(void);
extern void P417_SWTL_App_terminate(void);

/* Real-time Model object */
extern RT_MODEL_P417_SWTL_App_T *const P417_SWTL_App_M;

/*-
 * The generated code includes comments that allow you to trace directly
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Use the MATLAB hilite_system command to trace the generated code back
 * to the model.  For example,
 *
 * hilite_system('<S3>')    - opens system 3
 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'P417_SWTL_App'
 * '<S1>'   : 'P417_SWTL_App/SWTL_Functions'
 * '<S2>'   : 'P417_SWTL_App/Signal_Front_handle'
 * '<S3>'   : 'P417_SWTL_App/Task Scheduler'
 * '<S4>'   : 'P417_SWTL_App/SWTL_Functions/ACT_control_20ms'
 * '<S5>'   : 'P417_SWTL_App/SWTL_Functions/CAN_0x305_1000ms_Control'
 * '<S6>'   : 'P417_SWTL_App/SWTL_Functions/CAN_0x305_25ms_Control'
 * '<S7>'   : 'P417_SWTL_App/SWTL_Functions/Choose_CRC_5ms'
 * '<S8>'   : 'P417_SWTL_App/SWTL_Functions/Choose_RC_5ms'
 * '<S9>'   : 'P417_SWTL_App/SWTL_Functions/Get_0x300_CRC_10ms'
 * '<S10>'  : 'P417_SWTL_App/SWTL_Functions/Get_0x305_CRC_1000ms'
 * '<S11>'  : 'P417_SWTL_App/SWTL_Functions/Get_0x305_CRC_25ms'
 * '<S12>'  : 'P417_SWTL_App/SWTL_Functions/LED_Control_10ms'
 * '<S13>'  : 'P417_SWTL_App/SWTL_Functions/Set_0x300_RC_10ms'
 * '<S14>'  : 'P417_SWTL_App/SWTL_Functions/Set_Diag_20ms'
 * '<S15>'  : 'P417_SWTL_App/SWTL_Functions/ACT_control_20ms/Compare To Zero'
 * '<S16>'  : 'P417_SWTL_App/SWTL_Functions/ACT_control_20ms/Compare To Zero1'
 * '<S17>'  : 'P417_SWTL_App/Signal_Front_handle/Day_Night_handle_10ms'
 * '<S18>'  : 'P417_SWTL_App/Signal_Front_handle/IntrBriSts_handle_10ms'
 * '<S19>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoardXY_handle_4ms'
 * '<S20>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x300_Send_And_ACT_Req_10ms'
 * '<S21>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x305_Send_And_ACT_Req_4ms'
 * '<S22>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_ADAS_handle_4ms'
 * '<S23>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Cancel_handle_4ms'
 * '<S24>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Center_handle_4ms'
 * '<S25>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Down_handle_4ms'
 * '<S26>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Left_Right_Slide_handle_4ms'
 * '<S27>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Left_handle_4ms'
 * '<S28>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Res_handle_4ms'
 * '<S29>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Right_handle_4ms'
 * '<S30>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Up_Down_Slide_handle_4ms'
 * '<S31>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms'
 * '<S32>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms'
 * '<S33>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_up_handle_4ms'
 * '<S34>'  : 'P417_SWTL_App/Signal_Front_handle/illumination_control_10ms'
 * '<S35>'  : 'P417_SWTL_App/Signal_Front_handle/Day_Night_handle_10ms/Fault Debounce'
 * '<S36>'  : 'P417_SWTL_App/Signal_Front_handle/Day_Night_handle_10ms/Fault Debounce/Fault_Debounce_Chart'
 * '<S37>'  : 'P417_SWTL_App/Signal_Front_handle/IntrBriSts_handle_10ms/Fault Debounce'
 * '<S38>'  : 'P417_SWTL_App/Signal_Front_handle/IntrBriSts_handle_10ms/Fault Debounce/Fault_Debounce_Chart'
 * '<S39>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x300_Send_And_ACT_Req_10ms/Compare To Zero'
 * '<S40>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x300_Send_And_ACT_Req_10ms/Compare To Zero1'
 * '<S41>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x305_Send_And_ACT_Req_4ms/Compare To Zero'
 * '<S42>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x305_Send_And_ACT_Req_4ms/Compare To Zero1'
 * '<S43>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x305_Send_And_ACT_Req_4ms/Compare To Zero2'
 * '<S44>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x305_Send_And_ACT_Req_4ms/Compare To Zero3'
 * '<S45>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x305_Send_And_ACT_Req_4ms/Compare To Zero4'
 * '<S46>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x305_Send_And_ACT_Req_4ms/Compare To Zero5'
 * '<S47>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x305_Send_And_ACT_Req_4ms/Compare To Zero6'
 * '<S48>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x305_Send_And_ACT_Req_4ms/Compare To Zero7'
 * '<S49>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x305_Send_And_ACT_Req_4ms/Compare To Zero8'
 * '<S50>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_0x305_Send_And_ACT_Req_4ms/Compare To Zero9'
 * '<S51>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms/Compare To Constant'
 * '<S52>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms/Compare To Constant1'
 * '<S53>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms/Compare To Constant2'
 * '<S54>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms/Compare To Constant3'
 * '<S55>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms/Compare To Constant4'
 * '<S56>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms/Compare To Constant5'
 * '<S57>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms/Compare To Constant6'
 * '<S58>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms/Compare To Constant7'
 * '<S59>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms/Compare To Constant8'
 * '<S60>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms/Subsystem_selX'
 * '<S61>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_X_handle_4ms/Subsystem_selX/Slect_X'
 * '<S62>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms/Compare To Constant'
 * '<S63>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms/Compare To Constant1'
 * '<S64>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms/Compare To Constant2'
 * '<S65>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms/Compare To Constant3'
 * '<S66>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms/Compare To Constant4'
 * '<S67>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms/Compare To Constant5'
 * '<S68>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms/Compare To Constant6'
 * '<S69>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms/Compare To Constant7'
 * '<S70>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms/Compare To Constant8'
 * '<S71>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms/Subsyste_selY'
 * '<S72>'  : 'P417_SWTL_App/Signal_Front_handle/TouchBoard_Y_handle_4ms/Subsyste_selY/Slect_X'
 * '<S73>'  : 'P417_SWTL_App/Signal_Front_handle/illumination_control_10ms/Fault Debounce'
 * '<S74>'  : 'P417_SWTL_App/Signal_Front_handle/illumination_control_10ms/Fault Debounce/Fault_Debounce_Chart'
 */
#endif                                 /* RTW_HEADER_P417_SWTL_App_h_ */

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