/*
 * File: P417_SWTR_App.h
 *
 * 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
 */

#ifndef RTW_HEADER_P417_SWTR_App_h_
#define RTW_HEADER_P417_SWTR_App_h_
#include <stddef.h>
#include <string.h>
#ifndef P417_SWTR_App_COMMON_INCLUDES_
# define P417_SWTR_App_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* P417_SWTR_App_COMMON_INCLUDES_ */

#include "P417_SWTR_App_types.h"

/* Child system includes */
#include "ACT_control_20ms.h"
#include "CAN_0x307_1000ms_Control.h"
#include "CAN_0x307_25ms_Control.h"
#include "Get_0x309_CRC_10ms.h"
#include "LED_Control_10ms.h"
#include "Set_0x309_RC_10ms.h"
#include "Set_Diag_20ms.h"
#include "TouchBoardXY_handle_4ms.h"
#include "TouchBoard_0x307_Send_And_ACT_Req_4ms.h"
#include "TouchBoard_0x309_Send_And_ACT_Req_10ms.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_MENU_handle_4ms.h"
#include "TouchBoard_Right_handle_4ms.h"
#include "TouchBoard_Up_Down_Slide_handle_4ms.h"
#include "TouchBoard_VOICE_handle_4ms.h"
#include "TouchBoard_VOL_handle_4ms.h"
#include "TouchBoard_X_handle_10ms.h"
#include "TouchBoard_Y_handle_10ms.h"
#include "TouchBoard_up_handle_4ms.h"
#include "illumination_control_10ms.h"
#include "rt_sys_P417_SWTR_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;          /* '<S16>/Data Type Conversion' */
  uint8_T MultiportSwitch;             /* '<S15>/Multiport Switch' */
  uint8_T XY_Touch_And_Below_1N;       /* '<S15>/XY_Touch_And_Below_1N' */
  uint8_T TouchBoard_Up_Down_Slide_Sts_in;/* '<S24>/TouchBoard_Up_Down_Slide_Sts_input' */
  uint8_T SldVolCtrlSts_input;         /* '<S24>/SldVolCtrlSts_input' */
  uint8_T TouchBoard_Left_Right_Slide_Sts;/* '<S20>/TouchBoard_Left_Right_Slide_Sts_input' */
  uint8_T TouchBoard_VOL_Sts_input;    /* '<S26>/TouchBoard_VOL_Sts_input' */
  uint8_T Vol_XY_trig_in;              /* '<S26>/Vol_XY_trig_in' */
  uint8_T Pad_XY_trig_in;              /* '<S26>/Pad_XY_trig_in' */
  uint8_T TouchBoard_MENU_Sts_input;   /* '<S22>/TouchBoard_MENU_Sts_input' */
  uint8_T Menu_XY_trig_in;             /* '<S22>/Menu_XY_trig_in' */
  uint8_T TouchBoard_VOICE_Sts_input;  /* '<S25>/TouchBoard_VOICE_Sts_input' */
  uint8_T Voice_XY_trig_in;            /* '<S25>/Voice_XY_trig_in' */
  uint8_T TouchBoard_Center_Sts_input; /* '<S18>/TouchBoard_Center_Sts_input' */
  uint8_T TouchBoard_Right_Sts_input;  /* '<S23>/TouchBoard_Right_Sts_input' */
  uint8_T TouchBoard_Left_Sts_input;   /* '<S21>/TouchBoard_Left_Sts_input' */
  uint8_T TouchBoard_Down_Sts_input;   /* '<S19>/TouchBoard_Down_Sts_input' */
  uint8_T TouchBoard_Up_Sts_input;     /* '<S29>/TouchBoard_Up_Sts_input' */
  uint8_T DataTypeConversion_g;        /* '<S17>/Data Type Conversion' */
  uint8_T Gain1;                       /* '<S17>/Gain1' */
  uint8_T Fault_confirmed;             /* '<S33>/Fault_Debounce_Chart' */
  uint8_T Fault_confirmed_i;           /* '<S31>/Fault_Debounce_Chart' */
  B_TouchBoardXY_handle_4ms_P41_T TouchBoardXY_handle_4ms;/* '<S2>/TouchBoardXY_handle_4ms' */
  B_TouchBoard_Y_handle_10ms_P4_T TouchBoard_Y_handle_10ms;/* '<S2>/TouchBoard_Y_handle_10ms' */
  B_TouchBoard_X_handle_10ms_P4_T TouchBoard_X_handle_10ms;/* '<S2>/TouchBoard_X_handle_10ms' */
  B_illumination_control_10ms_P_T illumination_control_10ms;/* '<S2>/illumination_control_10ms' */
} B_P417_SWTR_App_T;

/* Block states (auto storage) for system '<Root>' */
typedef struct {
  uint16_T temporalCounter_i5;         /* '<Root>/Task Scheduler' */
  uint8_T UnitDelay_DSTATE;            /* '<S14>/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' */
  DW_TouchBoardXY_handle_4ms_P4_T TouchBoardXY_handle_4ms;/* '<S2>/TouchBoardXY_handle_4ms' */
  DW_LED_Control_10ms_P417_SWTR_T LED_Control_10ms;/* '<S1>/LED_Control_10ms' */
  DW_Fault_Debounce_Chart_P417__T sf_Fault_Debounce_Chart_d;/* '<S33>/Fault_Debounce_Chart' */
  DW_Fault_Debounce_Chart_P417__T sf_Fault_Debounce_Chart;/* '<S31>/Fault_Debounce_Chart' */
  DW_illumination_control_10ms__T illumination_control_10ms;/* '<S2>/illumination_control_10ms' */
} DW_P417_SWTR_App_T;

/* Invariant block signals (auto storage) */
typedef struct {
  ConstB_Set_Diag_20ms_P417_SWT_T Set_Diag_20ms;/* '<S1>/Set_Diag_20ms' */
} ConstB_P417_SWTR_App_T;

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

/* Block signals (auto storage) */
extern B_P417_SWTR_App_T P417_SWTR_App_B;

/* Block states (auto storage) */
extern DW_P417_SWTR_App_T P417_SWTR_App_DW;
extern const ConstB_P417_SWTR_App_T P417_SWTR_App_ConstB;/* constant block i/o */

/* Model entry point functions */
extern void P417_SWTR_App_initialize(void);
extern void P417_SWTR_App_step(void);
extern void P417_SWTR_App_terminate(void);

/* Real-time Model object */
extern RT_MODEL_P417_SWTR_App_T *const P417_SWTR_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_SWTR_App'
 * '<S1>'   : 'P417_SWTR_App/SWTL_Functions'
 * '<S2>'   : 'P417_SWTR_App/Signal_Front_handle'
 * '<S3>'   : 'P417_SWTR_App/Task Scheduler'
 * '<S4>'   : 'P417_SWTR_App/SWTL_Functions/ACT_control_20ms'
 * '<S5>'   : 'P417_SWTR_App/SWTL_Functions/CAN_0x307_1000ms_Control'
 * '<S6>'   : 'P417_SWTR_App/SWTL_Functions/CAN_0x307_25ms_Control'
 * '<S7>'   : 'P417_SWTR_App/SWTL_Functions/Get_0x309_CRC_10ms'
 * '<S8>'   : 'P417_SWTR_App/SWTL_Functions/LED_Control_10ms'
 * '<S9>'   : 'P417_SWTR_App/SWTL_Functions/Set_0x309_RC_10ms'
 * '<S10>'  : 'P417_SWTR_App/SWTL_Functions/Set_Diag_20ms'
 * '<S11>'  : 'P417_SWTR_App/SWTL_Functions/ACT_control_20ms/Compare To Zero'
 * '<S12>'  : 'P417_SWTR_App/SWTL_Functions/ACT_control_20ms/Compare To Zero1'
 * '<S13>'  : 'P417_SWTR_App/Signal_Front_handle/Day_Night_handle_10ms'
 * '<S14>'  : 'P417_SWTR_App/Signal_Front_handle/IntrBriSts_handle_10ms'
 * '<S15>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoardXY_handle_4ms'
 * '<S16>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x307_Send_And_ACT_Req_4ms'
 * '<S17>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x309_Send_And_ACT_Req_10ms'
 * '<S18>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Center_handle_4ms'
 * '<S19>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Down_handle_4ms'
 * '<S20>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Left_Right_Slide_handle_4ms'
 * '<S21>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Left_handle_4ms'
 * '<S22>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_MENU_handle_4ms'
 * '<S23>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Right_handle_4ms'
 * '<S24>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Up_Down_Slide_handle_4ms'
 * '<S25>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_VOICE_handle_4ms'
 * '<S26>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_VOL_handle_4ms'
 * '<S27>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms'
 * '<S28>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms'
 * '<S29>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_up_handle_4ms'
 * '<S30>'  : 'P417_SWTR_App/Signal_Front_handle/illumination_control_10ms'
 * '<S31>'  : 'P417_SWTR_App/Signal_Front_handle/Day_Night_handle_10ms/Fault Debounce'
 * '<S32>'  : 'P417_SWTR_App/Signal_Front_handle/Day_Night_handle_10ms/Fault Debounce/Fault_Debounce_Chart'
 * '<S33>'  : 'P417_SWTR_App/Signal_Front_handle/IntrBriSts_handle_10ms/Fault Debounce'
 * '<S34>'  : 'P417_SWTR_App/Signal_Front_handle/IntrBriSts_handle_10ms/Fault Debounce/Fault_Debounce_Chart'
 * '<S35>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoardXY_handle_4ms/Compare To Constant'
 * '<S36>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoardXY_handle_4ms/Compare To Constant1'
 * '<S37>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoardXY_handle_4ms/Compare To Constant2'
 * '<S38>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoardXY_handle_4ms/Compare To Constant3'
 * '<S39>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoardXY_handle_4ms/Slect_Touch'
 * '<S40>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x307_Send_And_ACT_Req_4ms/Compare To Zero'
 * '<S41>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x307_Send_And_ACT_Req_4ms/Compare To Zero1'
 * '<S42>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x307_Send_And_ACT_Req_4ms/Compare To Zero2'
 * '<S43>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x307_Send_And_ACT_Req_4ms/Compare To Zero3'
 * '<S44>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x307_Send_And_ACT_Req_4ms/Compare To Zero4'
 * '<S45>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x307_Send_And_ACT_Req_4ms/Compare To Zero5'
 * '<S46>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x307_Send_And_ACT_Req_4ms/Compare To Zero6'
 * '<S47>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x307_Send_And_ACT_Req_4ms/Compare To Zero7'
 * '<S48>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x307_Send_And_ACT_Req_4ms/Compare To Zero8'
 * '<S49>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x307_Send_And_ACT_Req_4ms/Compare To Zero9'
 * '<S50>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_0x309_Send_And_ACT_Req_10ms/Compare To Zero4'
 * '<S51>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms/Compare To Constant'
 * '<S52>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms/Compare To Constant1'
 * '<S53>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms/Compare To Constant2'
 * '<S54>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms/Compare To Constant3'
 * '<S55>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms/Compare To Constant4'
 * '<S56>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms/Compare To Constant5'
 * '<S57>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms/Compare To Constant6'
 * '<S58>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms/Compare To Constant7'
 * '<S59>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms/Compare To Constant8'
 * '<S60>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms/Subsystem_selX'
 * '<S61>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_X_handle_10ms/Subsystem_selX/Slect_X'
 * '<S62>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms/Compare To Constant'
 * '<S63>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms/Compare To Constant1'
 * '<S64>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms/Compare To Constant2'
 * '<S65>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms/Compare To Constant3'
 * '<S66>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms/Compare To Constant4'
 * '<S67>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms/Compare To Constant5'
 * '<S68>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms/Compare To Constant6'
 * '<S69>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms/Compare To Constant7'
 * '<S70>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms/Compare To Constant8'
 * '<S71>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms/Subsyste_selY'
 * '<S72>'  : 'P417_SWTR_App/Signal_Front_handle/TouchBoard_Y_handle_10ms/Subsyste_selY/Slect_X'
 * '<S73>'  : 'P417_SWTR_App/Signal_Front_handle/illumination_control_10ms/Fault Debounce'
 * '<S74>'  : 'P417_SWTR_App/Signal_Front_handle/illumination_control_10ms/Fault Debounce/Fault_Debounce_Chart'
 */
#endif                                 /* RTW_HEADER_P417_SWTR_App_h_ */

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