/*
 * File: Inverter_001.h
 *
 * Code generated for Simulink model 'Inverter_001'.
 *
 * Model version                  : 1.139
 * Simulink Coder version         : 8.14 (R2018a) 06-Feb-2018
 * C/C++ source code generated on : Wed Apr 14 17:37:41 2021
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Texas Instruments->C2000
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#ifndef RTW_HEADER_Inverter_001_h_
#define RTW_HEADER_Inverter_001_h_
#include <math.h>
#include <string.h>
#include <stddef.h>
#ifndef Inverter_001_COMMON_INCLUDES_
# define Inverter_001_COMMON_INCLUDES_
#include <IQmathLib.h>
#include "rtwtypes.h"
#include "F2837xD_device.h"
#include "F2837xD_gpio.h"
#include "F2837xD_Examples.h"
#include "IQmathLib.h"
#include "MW_c2837xdIPC.h"
#include "MW_c2000DAC.h"
#endif                                 /* Inverter_001_COMMON_INCLUDES_ */

#include "Inverter_001_types.h"
#include "MW_target_hardware_resources.h"
#include "IQmathLib.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

#ifndef rtmStepTask
# define rtmStepTask(rtm, idx)         ((rtm)->Timing.TaskCounters.TID[(idx)] == 0)
#endif

#ifndef rtmTaskCounter
# define rtmTaskCounter(rtm, idx)      ((rtm)->Timing.TaskCounters.TID[(idx)])
#endif

extern void config_ePWM_GPIO (void);

/* Block signals (default storage) */
typedef struct {
  real32_T TmpRTBAtConstant62Outport1; /* '<Root>/Constant62' */
  real32_T TmpRTBAtAdd11Inport2;
  real32_T RateTransition1;            /* '<Root>/Rate Transition1' */
  real32_T TmpRTBAtAdd10Inport2;
  real32_T TmpRTBAtAdd9Inport2;
  real32_T TmpRTBAtConstant12Outport1; /* '<Root>/Constant12' */
  real32_T TmpRTBAtAdd16Inport2;
  real32_T TmpRTBAtAdd5Inport2;
  real32_T TmpRTBAtAdd4Inport2;
  real32_T TmpRTBAtAdd3Inport2;
  real32_T TmpRTBAtAdd7Inport2;
  real32_T TmpRTBAtAdd2Inport2;
  real32_T RateTransition5[3];         /* '<Root>/Rate Transition5' */
  real32_T IPCReceive_o1;              /* '<Root>/IPC Receive' */
  int32_T RateTransition60[3];         /* '<Root>/Rate Transition60' */
  int32_T RateTransition62[3];         /* '<Root>/Rate Transition62' */
  int32_T RateTransition21[3];         /* '<Root>/Rate Transition21' */
  int32_T RateTransition61;            /* '<Root>/Rate Transition61' */
  int32_T RateTransition20[3];         /* '<Root>/Rate Transition20' */
  int32_T RateTransition19[3];         /* '<Root>/Rate Transition19' */
  uint16_T ADC2;                       /* '<S2>/ADC2' */
  uint16_T ADC3;                       /* '<S2>/ADC3' */
  uint16_T ADC4;                       /* '<S2>/ADC4' */
  uint16_T ADC5;                       /* '<S2>/ADC5' */
  uint16_T LoadCurrentIa;              /* '<S2>/ADC6' */
  uint16_T InverterCurrentIc;          /* '<S2>/ADC7' */
  uint16_T ADC9;                       /* '<S2>/ADC9' */
  uint16_T ADC10;                      /* '<S2>/ADC10' */
  uint16_T ADC11;                      /* '<S2>/ADC11' */
  uint16_T IPCReceive_o2;              /* '<Root>/IPC Receive' */
  boolean_T RelationalOperator2[3];    /* '<Root>/Relational Operator2' */
} B_Inverter_001_T;

/* Block states (default storage) for system '<Root>' */
typedef struct {
  int32_T UnitDelay_DSTATE;            /* '<S7>/Unit Delay' */
  int32_T UnitDelay1_DSTATE;           /* '<S7>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_c;          /* '<S8>/Unit Delay' */
  int32_T UnitDelay1_DSTATE_k;         /* '<S8>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_f;          /* '<S9>/Unit Delay' */
  int32_T UnitDelay1_DSTATE_j;         /* '<S9>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_g;          /* '<S10>/Unit Delay' */
  int32_T UnitDelay1_DSTATE_l;         /* '<S10>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_k;          /* '<S11>/Unit Delay' */
  int32_T UnitDelay1_DSTATE_h;         /* '<S11>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_p;          /* '<S12>/Unit Delay' */
  int32_T UnitDelay1_DSTATE_i;         /* '<S12>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_d;          /* '<S13>/Unit Delay' */
  int32_T UnitDelay1_DSTATE_hy;        /* '<S13>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_j;          /* '<S14>/Unit Delay' */
  int32_T UnitDelay1_DSTATE_jm;        /* '<S14>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_l;          /* '<S15>/Unit Delay' */
  int32_T UnitDelay1_DSTATE_p;         /* '<S15>/Unit Delay1' */
  int32_T UnitDelay3_DSTATE;           /* '<S30>/Unit Delay3' */
  int32_T UnitDelay2_DSTATE;           /* '<S30>/Unit Delay2' */
  int32_T UnitDelay1_DSTATE_b;         /* '<S30>/Unit Delay1' */
  int32_T UnitDelay3_DSTATE_c;         /* '<S29>/Unit Delay3' */
  int32_T UnitDelay2_DSTATE_h;         /* '<S29>/Unit Delay2' */
  int32_T UnitDelay1_DSTATE_d;         /* '<S29>/Unit Delay1' */
  int32_T UnitDelay3_DSTATE_m;         /* '<S28>/Unit Delay3' */
  int32_T UnitDelay2_DSTATE_g;         /* '<S28>/Unit Delay2' */
  int32_T UnitDelay1_DSTATE_hyo;       /* '<S28>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_lt;         /* '<S28>/Unit Delay' */
  int32_T UnitDelay3_DSTATE_o;         /* '<S24>/Unit Delay3' */
  int32_T UnitDelay2_DSTATE_gq;        /* '<S24>/Unit Delay2' */
  int32_T UnitDelay1_DSTATE_c;         /* '<S24>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_a;          /* '<S24>/Unit Delay' */
  int32_T UnitDelay_DSTATE_o;          /* '<S29>/Unit Delay' */
  int32_T UnitDelay3_DSTATE_g;         /* '<S25>/Unit Delay3' */
  int32_T UnitDelay2_DSTATE_m;         /* '<S25>/Unit Delay2' */
  int32_T UnitDelay1_DSTATE_m;         /* '<S25>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_m;          /* '<S25>/Unit Delay' */
  int32_T UnitDelay_DSTATE_i;          /* '<S30>/Unit Delay' */
  int32_T UnitDelay3_DSTATE_h;         /* '<S26>/Unit Delay3' */
  int32_T UnitDelay2_DSTATE_gh;        /* '<S26>/Unit Delay2' */
  int32_T UnitDelay_DSTATE_ci;         /* '<S26>/Unit Delay' */
  int32_T UnitDelay1_DSTATE_g;         /* '<S26>/Unit Delay1' */
  int32_T UnitDelay_DSTATE_lw;         /* '<S34>/Unit Delay' */
  real32_T TmpRTBAtConstant62Outport1_Buff;/* synthesized block */
  real32_T TmpRTBAtAdd11Inport2_Buffer0;/* synthesized block */
  real32_T RateTransition1_Buffer0;    /* '<Root>/Rate Transition1' */
  real32_T TmpRTBAtAdd10Inport2_Buffer0;/* synthesized block */
  real32_T TmpRTBAtAdd9Inport2_Buffer0;/* synthesized block */
  real32_T TmpRTBAtConstant12Outport1_Buff;/* synthesized block */
  real32_T TmpRTBAtAdd16Inport2_Buffer0;/* synthesized block */
  real32_T TmpRTBAtAdd5Inport2_Buffer0;/* synthesized block */
  real32_T TmpRTBAtAdd4Inport2_Buffer0;/* synthesized block */
  real32_T TmpRTBAtAdd3Inport2_Buffer0;/* synthesized block */
  real32_T TmpRTBAtAdd7Inport2_Buffer0;/* synthesized block */
  real32_T TmpRTBAtAdd2Inport2_Buffer0;/* synthesized block */
} DW_Inverter_001_T;

/* Parameters (default storage) */
struct P_Inverter_001_T_ {
  struct_LAUrP08Nl5w42cAMHTmYgH Control;/* Variable: Control
                                         * Referenced by:
                                         *   '<S24>/Gain'
                                         *   '<S24>/Gain1'
                                         *   '<S25>/Gain'
                                         *   '<S25>/Gain1'
                                         *   '<S26>/Gain'
                                         *   '<S26>/Gain1'
                                         *   '<S28>/Gain'
                                         *   '<S28>/Gain1'
                                         *   '<S29>/Gain'
                                         *   '<S29>/Gain1'
                                         *   '<S30>/Gain'
                                         *   '<S30>/Gain1'
                                         */
  int32_T CC_Tci;                      /* Variable: CC_Tci
                                        * Referenced by: '<S16>/Ki2'
                                        */
  int32_T CC_Tci0;                     /* Variable: CC_Tci0
                                        * Referenced by: '<S16>/Ki1'
                                        */
  int32_T CC_Tcr;                      /* Variable: CC_Tcr
                                        * Referenced by:
                                        *   '<S16>/Kr1'
                                        *   '<S16>/Kr2'
                                        */
  int32_T Kcp;                         /* Variable: Kcp
                                        * Referenced by: '<S16>/Kp2'
                                        */
  int32_T Kcp0;                        /* Variable: Kcp0
                                        * Referenced by: '<S16>/Kp1'
                                        */
  int32_T Kvp;                         /* Variable: Kvp
                                        * Referenced by: '<S23>/Kp4'
                                        */
  int32_T Kvp0;                        /* Variable: Kvp0
                                        * Referenced by: '<S23>/Kp2'
                                        */
  int32_T VC_Tci;                      /* Variable: VC_Tci
                                        * Referenced by: '<S23>/Ki3'
                                        */
  int32_T VC_Tci0;                     /* Variable: VC_Tci0
                                        * Referenced by: '<S23>/Ki2'
                                        */
  int32_T VC_Tcr;                      /* Variable: VC_Tcr
                                        * Referenced by:
                                        *   '<S23>/Kr2'
                                        *   '<S23>/Kr3'
                                        */
  real_T FloattoIQN2_P1;               /* Expression: Q_value
                                        * Referenced by: '<S6>/Float to IQN2'
                                        */
  real_T FloattoIQN_P1;                /* Expression: Q_value
                                        * Referenced by: '<S6>/Float to IQN'
                                        */
  real_T FloattoIQN1_P1;               /* Expression: Q_value
                                        * Referenced by: '<S6>/Float to IQN1'
                                        */
  real_T FloattoIQN_P1_j;              /* Expression: Q_value
                                        * Referenced by: '<S33>/Float to IQN'
                                        */
  real_T FloattoIQN1_P1_i;             /* Expression: Q_value
                                        * Referenced by: '<S5>/Float to IQN1'
                                        */
  real_T FloattoIQN4_P1;               /* Expression: Q_value
                                        * Referenced by: '<Root>/Float to IQN4'
                                        */
  real_T FloattoIQN_P1_o;              /* Expression: Q_value
                                        * Referenced by: '<S18>/Float to IQN'
                                        */
  real_T FloattoIQN_P1_l;              /* Expression: Q_value
                                        * Referenced by: '<S19>/Float to IQN'
                                        */
  real_T FloattoIQN_P1_g;              /* Expression: Q_value
                                        * Referenced by: '<S20>/Float to IQN'
                                        */
  real_T FloattoIQN_P1_gu;             /* Expression: Q_value
                                        * Referenced by: '<S17>/Float to IQN'
                                        */
  real_T FloattoIQN4_P1_f;             /* Expression: Q_value
                                        * Referenced by: '<S3>/Float to IQN4'
                                        */
  int32_T Saturation4_UpperSat;        /* Computed Parameter: Saturation4_UpperSat
                                        * Referenced by: '<Root>/Saturation4'
                                        */
  int32_T Saturation4_LowerSat;        /* Computed Parameter: Saturation4_LowerSat
                                        * Referenced by: '<Root>/Saturation4'
                                        */
  int32_T Constant8_Value;             /* Computed Parameter: Constant8_Value
                                        * Referenced by: '<Root>/Constant8'
                                        */
  int32_T Saturation5_UpperSat;        /* Computed Parameter: Saturation5_UpperSat
                                        * Referenced by: '<Root>/Saturation5'
                                        */
  int32_T Saturation5_LowerSat;        /* Computed Parameter: Saturation5_LowerSat
                                        * Referenced by: '<Root>/Saturation5'
                                        */
  int32_T Constant3_Value;             /* Computed Parameter: Constant3_Value
                                        * Referenced by: '<Root>/Constant3'
                                        */
  int32_T Constant2_Value;             /* Computed Parameter: Constant2_Value
                                        * Referenced by: '<S1>/Constant2'
                                        */
  int32_T UnitDelay_InitialCondition;  /* Computed Parameter: UnitDelay_InitialCondition
                                        * Referenced by: '<S7>/Unit Delay'
                                        */
  int32_T UnitDelay1_InitialCondition; /* Computed Parameter: UnitDelay1_InitialCondition
                                        * Referenced by: '<S7>/Unit Delay1'
                                        */
  int32_T UnitDelay_InitialCondition_e;/* Computed Parameter: UnitDelay_InitialCondition_e
                                        * Referenced by: '<S8>/Unit Delay'
                                        */
  int32_T UnitDelay1_InitialCondition_g;/* Computed Parameter: UnitDelay1_InitialCondition_g
                                         * Referenced by: '<S8>/Unit Delay1'
                                         */
  int32_T UnitDelay_InitialCondition_i;/* Computed Parameter: UnitDelay_InitialCondition_i
                                        * Referenced by: '<S9>/Unit Delay'
                                        */
  int32_T UnitDelay1_InitialCondition_b;/* Computed Parameter: UnitDelay1_InitialCondition_b
                                         * Referenced by: '<S9>/Unit Delay1'
                                         */
  int32_T UnitDelay_InitialCondition_n;/* Computed Parameter: UnitDelay_InitialCondition_n
                                        * Referenced by: '<S10>/Unit Delay'
                                        */
  int32_T UnitDelay1_InitialCondition_a;/* Computed Parameter: UnitDelay1_InitialCondition_a
                                         * Referenced by: '<S10>/Unit Delay1'
                                         */
  int32_T UnitDelay_InitialCondition_c;/* Computed Parameter: UnitDelay_InitialCondition_c
                                        * Referenced by: '<S11>/Unit Delay'
                                        */
  int32_T UnitDelay1_InitialCondition_l;/* Computed Parameter: UnitDelay1_InitialCondition_l
                                         * Referenced by: '<S11>/Unit Delay1'
                                         */
  int32_T UnitDelay_InitialCondition_cr;/* Computed Parameter: UnitDelay_InitialCondition_cr
                                         * Referenced by: '<S12>/Unit Delay'
                                         */
  int32_T UnitDelay1_InitialCondition_l1;/* Computed Parameter: UnitDelay1_InitialCondition_l1
                                          * Referenced by: '<S12>/Unit Delay1'
                                          */
  int32_T UnitDelay_InitialCondition_k;/* Computed Parameter: UnitDelay_InitialCondition_k
                                        * Referenced by: '<S13>/Unit Delay'
                                        */
  int32_T UnitDelay1_InitialCondition_f;/* Computed Parameter: UnitDelay1_InitialCondition_f
                                         * Referenced by: '<S13>/Unit Delay1'
                                         */
  int32_T UnitDelay_InitialCondition_d;/* Computed Parameter: UnitDelay_InitialCondition_d
                                        * Referenced by: '<S14>/Unit Delay'
                                        */
  int32_T UnitDelay1_InitialCondition_m;/* Computed Parameter: UnitDelay1_InitialCondition_m
                                         * Referenced by: '<S14>/Unit Delay1'
                                         */
  int32_T UnitDelay_InitialCondition_p;/* Computed Parameter: UnitDelay_InitialCondition_p
                                        * Referenced by: '<S15>/Unit Delay'
                                        */
  int32_T UnitDelay1_InitialCondition_e;/* Computed Parameter: UnitDelay1_InitialCondition_e
                                         * Referenced by: '<S15>/Unit Delay1'
                                         */
  int32_T UnitDelay3_InitialCondition; /* Computed Parameter: UnitDelay3_InitialCondition
                                        * Referenced by: '<S30>/Unit Delay3'
                                        */
  int32_T UnitDelay2_InitialCondition; /* Computed Parameter: UnitDelay2_InitialCondition
                                        * Referenced by: '<S30>/Unit Delay2'
                                        */
  int32_T UnitDelay1_InitialCondition_b1;/* Computed Parameter: UnitDelay1_InitialCondition_b1
                                          * Referenced by: '<S30>/Unit Delay1'
                                          */
  int32_T UnitDelay3_InitialCondition_g;/* Computed Parameter: UnitDelay3_InitialCondition_g
                                         * Referenced by: '<S29>/Unit Delay3'
                                         */
  int32_T UnitDelay2_InitialCondition_h;/* Computed Parameter: UnitDelay2_InitialCondition_h
                                         * Referenced by: '<S29>/Unit Delay2'
                                         */
  int32_T UnitDelay1_InitialCondition_gr;/* Computed Parameter: UnitDelay1_InitialCondition_gr
                                          * Referenced by: '<S29>/Unit Delay1'
                                          */
  int32_T w5_Value;                    /* Computed Parameter: w5_Value
                                        * Referenced by: '<S23>/w5'
                                        */
  int32_T UnitDelay3_InitialCondition_o;/* Computed Parameter: UnitDelay3_InitialCondition_o
                                         * Referenced by: '<S28>/Unit Delay3'
                                         */
  int32_T UnitDelay2_InitialCondition_m;/* Computed Parameter: UnitDelay2_InitialCondition_m
                                         * Referenced by: '<S28>/Unit Delay2'
                                         */
  int32_T UnitDelay1_InitialCondition_lk;/* Computed Parameter: UnitDelay1_InitialCondition_lk
                                          * Referenced by: '<S28>/Unit Delay1'
                                          */
  int32_T UnitDelay_InitialCondition_ck;/* Computed Parameter: UnitDelay_InitialCondition_ck
                                         * Referenced by: '<S28>/Unit Delay'
                                         */
  int32_T UnitDelay3_InitialCondition_j;/* Computed Parameter: UnitDelay3_InitialCondition_j
                                         * Referenced by: '<S24>/Unit Delay3'
                                         */
  int32_T UnitDelay2_InitialCondition_k;/* Computed Parameter: UnitDelay2_InitialCondition_k
                                         * Referenced by: '<S24>/Unit Delay2'
                                         */
  int32_T UnitDelay1_InitialCondition_h;/* Computed Parameter: UnitDelay1_InitialCondition_h
                                         * Referenced by: '<S24>/Unit Delay1'
                                         */
  int32_T UnitDelay_InitialCondition_ph;/* Computed Parameter: UnitDelay_InitialCondition_ph
                                         * Referenced by: '<S24>/Unit Delay'
                                         */
  int32_T w2_Value;                    /* Computed Parameter: w2_Value
                                        * Referenced by: '<S16>/w2'
                                        */
  int32_T UnitDelay_InitialCondition_f;/* Computed Parameter: UnitDelay_InitialCondition_f
                                        * Referenced by: '<S29>/Unit Delay'
                                        */
  int32_T UnitDelay3_InitialCondition_p;/* Computed Parameter: UnitDelay3_InitialCondition_p
                                         * Referenced by: '<S25>/Unit Delay3'
                                         */
  int32_T UnitDelay2_InitialCondition_b;/* Computed Parameter: UnitDelay2_InitialCondition_b
                                         * Referenced by: '<S25>/Unit Delay2'
                                         */
  int32_T UnitDelay1_InitialCondition_fy;/* Computed Parameter: UnitDelay1_InitialCondition_fy
                                          * Referenced by: '<S25>/Unit Delay1'
                                          */
  int32_T UnitDelay_InitialCondition_g;/* Computed Parameter: UnitDelay_InitialCondition_g
                                        * Referenced by: '<S25>/Unit Delay'
                                        */
  int32_T UnitDelay_InitialCondition_nv;/* Computed Parameter: UnitDelay_InitialCondition_nv
                                         * Referenced by: '<S30>/Unit Delay'
                                         */
  int32_T UnitDelay3_InitialCondition_d;/* Computed Parameter: UnitDelay3_InitialCondition_d
                                         * Referenced by: '<S26>/Unit Delay3'
                                         */
  int32_T UnitDelay2_InitialCondition_f;/* Computed Parameter: UnitDelay2_InitialCondition_f
                                         * Referenced by: '<S26>/Unit Delay2'
                                         */
  int32_T UnitDelay_InitialCondition_e3;/* Computed Parameter: UnitDelay_InitialCondition_e3
                                         * Referenced by: '<S26>/Unit Delay'
                                         */
  int32_T UnitDelay1_InitialCondition_n;/* Computed Parameter: UnitDelay1_InitialCondition_n
                                         * Referenced by: '<S26>/Unit Delay1'
                                         */
  int32_T w1_Value;                    /* Computed Parameter: w1_Value
                                        * Referenced by: '<S16>/w1'
                                        */
  int32_T w2_Value_n;                  /* Computed Parameter: w2_Value_n
                                        * Referenced by: '<S23>/w2'
                                        */
  int32_T Constant11_Value;            /* Computed Parameter: Constant11_Value
                                        * Referenced by: '<S6>/Constant11'
                                        */
  int32_T Constant8_Value_e;           /* Computed Parameter: Constant8_Value_e
                                        * Referenced by: '<S6>/Constant8'
                                        */
  int32_T Constant9_Value;             /* Computed Parameter: Constant9_Value
                                        * Referenced by: '<S6>/Constant9'
                                        */
  int32_T UnitDelay_InitialCondition_pq;/* Computed Parameter: UnitDelay_InitialCondition_pq
                                         * Referenced by: '<S34>/Unit Delay'
                                         */
  int32_T u_Value;                     /* Computed Parameter: u_Value
                                        * Referenced by: '<S36>/1'
                                        */
  int32_T u_Value_e;                   /* Computed Parameter: u_Value_e
                                        * Referenced by: '<S36>/-1'
                                        */
  int32_T u_Value_f;                   /* Computed Parameter: u_Value_f
                                        * Referenced by: '<S37>/1'
                                        */
  int32_T u_Value_c;                   /* Computed Parameter: u_Value_c
                                        * Referenced by: '<S37>/-1'
                                        */
  int32_T Gain6_Gain;                  /* Computed Parameter: Gain6_Gain
                                        * Referenced by: '<S16>/Gain6'
                                        */
  int32_T Gain7_Gain;                  /* Computed Parameter: Gain7_Gain
                                        * Referenced by: '<S16>/Gain7'
                                        */
  int32_T Gain_Gain;                   /* Computed Parameter: Gain_Gain
                                        * Referenced by: '<S5>/Gain'
                                        */
  int32_T Gain_Gain_g;                 /* Computed Parameter: Gain_Gain_g
                                        * Referenced by: '<S19>/Gain'
                                        */
  int32_T Gain1_Gain;                  /* Computed Parameter: Gain1_Gain
                                        * Referenced by: '<S19>/Gain1'
                                        */
  int32_T Gain_Gain_b;                 /* Computed Parameter: Gain_Gain_b
                                        * Referenced by: '<S18>/Gain'
                                        */
  int32_T Gain1_Gain_g;                /* Computed Parameter: Gain1_Gain_g
                                        * Referenced by: '<S18>/Gain1'
                                        */
  int32_T Gain_Gain_n;                 /* Computed Parameter: Gain_Gain_n
                                        * Referenced by: '<S20>/Gain'
                                        */
  int32_T Gain1_Gain_f;                /* Computed Parameter: Gain1_Gain_f
                                        * Referenced by: '<S20>/Gain1'
                                        */
  int32_T Gain_Gain_j;                 /* Computed Parameter: Gain_Gain_j
                                        * Referenced by: '<S31>/Gain'
                                        */
  int32_T Gain1_Gain_o;                /* Computed Parameter: Gain1_Gain_o
                                        * Referenced by: '<S31>/Gain1'
                                        */
  int32_T Gain12_Gain;                 /* Computed Parameter: Gain12_Gain
                                        * Referenced by: '<S23>/Gain12'
                                        */
  int32_T Gain13_Gain;                 /* Computed Parameter: Gain13_Gain
                                        * Referenced by: '<S23>/Gain13'
                                        */
  real32_T TmpRTBAtConstant62Outport1_Init;/* Computed Parameter: TmpRTBAtConstant62Outport1_Init
                                            * Referenced by: synthesized block
                                            */
  real32_T TmpRTBAtAdd11Inport2_InitialCon;/* Computed Parameter: TmpRTBAtAdd11Inport2_InitialCon
                                            * Referenced by: synthesized block
                                            */
  real32_T Constant2_Value_p;          /* Computed Parameter: Constant2_Value_p
                                        * Referenced by: '<Root>/Constant2'
                                        */
  real32_T Constant14_Value;           /* Computed Parameter: Constant14_Value
                                        * Referenced by: '<S4>/Constant14'
                                        */
  real32_T Constant13_Value;           /* Computed Parameter: Constant13_Value
                                        * Referenced by: '<S4>/Constant13'
                                        */
  real32_T RateTransition1_InitialConditio;/* Computed Parameter: RateTransition1_InitialConditio
                                            * Referenced by: '<Root>/Rate Transition1'
                                            */
  real32_T Gain3_Gain;                 /* Computed Parameter: Gain3_Gain
                                        * Referenced by: '<S6>/Gain3'
                                        */
  real32_T Constant13_Value_c;         /* Computed Parameter: Constant13_Value_c
                                        * Referenced by: '<S6>/Constant13'
                                        */
  real32_T Constant14_Value_p;         /* Computed Parameter: Constant14_Value_p
                                        * Referenced by: '<S6>/Constant14'
                                        */
  real32_T Constant10_Value;           /* Computed Parameter: Constant10_Value
                                        * Referenced by: '<S6>/Constant10'
                                        */
  real32_T Gain2_Gain;                 /* Computed Parameter: Gain2_Gain
                                        * Referenced by: '<S6>/Gain2'
                                        */
  real32_T Constant_Value;             /* Computed Parameter: Constant_Value
                                        * Referenced by: '<S33>/Constant'
                                        */
  real32_T Constant15_Value;           /* Computed Parameter: Constant15_Value
                                        * Referenced by: '<S4>/Constant15'
                                        */
  real32_T TmpRTBAtAdd10Inport2_InitialCon;/* Computed Parameter: TmpRTBAtAdd10Inport2_InitialCon
                                            * Referenced by: synthesized block
                                            */
  real32_T TmpRTBAtAdd9Inport2_InitialCond;/* Computed Parameter: TmpRTBAtAdd9Inport2_InitialCond
                                            * Referenced by: synthesized block
                                            */
  real32_T TmpRTBAtConstant12Outport1_Init;/* Computed Parameter: TmpRTBAtConstant12Outport1_Init
                                            * Referenced by: synthesized block
                                            */
  real32_T TmpRTBAtAdd16Inport2_InitialCon;/* Computed Parameter: TmpRTBAtAdd16Inport2_InitialCon
                                            * Referenced by: synthesized block
                                            */
  real32_T TmpRTBAtAdd5Inport2_InitialCond;/* Computed Parameter: TmpRTBAtAdd5Inport2_InitialCond
                                            * Referenced by: synthesized block
                                            */
  real32_T TmpRTBAtAdd4Inport2_InitialCond;/* Computed Parameter: TmpRTBAtAdd4Inport2_InitialCond
                                            * Referenced by: synthesized block
                                            */
  real32_T TmpRTBAtAdd3Inport2_InitialCond;/* Computed Parameter: TmpRTBAtAdd3Inport2_InitialCond
                                            * Referenced by: synthesized block
                                            */
  real32_T TmpRTBAtAdd7Inport2_InitialCond;/* Computed Parameter: TmpRTBAtAdd7Inport2_InitialCond
                                            * Referenced by: synthesized block
                                            */
  real32_T TmpRTBAtAdd2Inport2_InitialCond;/* Computed Parameter: TmpRTBAtAdd2Inport2_InitialCond
                                            * Referenced by: synthesized block
                                            */
  real32_T Gain2_Gain_f;               /* Computed Parameter: Gain2_Gain_f
                                        * Referenced by: '<Root>/Gain2'
                                        */
  real32_T Constant10_Value_j;         /* Computed Parameter: Constant10_Value_j
                                        * Referenced by: '<S3>/Constant10'
                                        */
  real32_T Constant13_Value_cs;        /* Computed Parameter: Constant13_Value_cs
                                        * Referenced by: '<S3>/Constant13'
                                        */
  real32_T Constant14_Value_o;         /* Computed Parameter: Constant14_Value_o
                                        * Referenced by: '<S3>/Constant14'
                                        */
  real32_T Constant_Value_h;           /* Computed Parameter: Constant_Value_h
                                        * Referenced by: '<S18>/Constant'
                                        */
  real32_T Constant_Value_b;           /* Computed Parameter: Constant_Value_b
                                        * Referenced by: '<S19>/Constant'
                                        */
  real32_T Constant_Value_m;           /* Computed Parameter: Constant_Value_m
                                        * Referenced by: '<S20>/Constant'
                                        */
  real32_T Constant_Value_br;          /* Computed Parameter: Constant_Value_br
                                        * Referenced by: '<S17>/Constant'
                                        */
  real32_T Bias1_Bias;                 /* Computed Parameter: Bias1_Bias
                                        * Referenced by: '<Root>/Bias1'
                                        */
  real32_T Bias2_Bias;                 /* Computed Parameter: Bias2_Bias
                                        * Referenced by: '<Root>/Bias2'
                                        */
  real32_T Constant12_Value;           /* Computed Parameter: Constant12_Value
                                        * Referenced by: '<Root>/Constant12'
                                        */
  real32_T Constant14_Value_m;         /* Computed Parameter: Constant14_Value_m
                                        * Referenced by: '<Root>/Constant14'
                                        */
  real32_T Constant55_Value;           /* Computed Parameter: Constant55_Value
                                        * Referenced by: '<Root>/Constant55'
                                        */
  real32_T Constant57_Value;           /* Computed Parameter: Constant57_Value
                                        * Referenced by: '<Root>/Constant57'
                                        */
  real32_T Constant58_Value;           /* Computed Parameter: Constant58_Value
                                        * Referenced by: '<Root>/Constant58'
                                        */
  real32_T Constant61_Value;           /* Computed Parameter: Constant61_Value
                                        * Referenced by: '<Root>/Constant61'
                                        */
  real32_T Constant62_Value;           /* Computed Parameter: Constant62_Value
                                        * Referenced by: '<Root>/Constant62'
                                        */
  real32_T Constant63_Value;           /* Computed Parameter: Constant63_Value
                                        * Referenced by: '<Root>/Constant63'
                                        */
  real32_T Constant65_Value;           /* Computed Parameter: Constant65_Value
                                        * Referenced by: '<Root>/Constant65'
                                        */
  real32_T Constant68_Value;           /* Computed Parameter: Constant68_Value
                                        * Referenced by: '<Root>/Constant68'
                                        */
  real32_T Constant72_Value;           /* Computed Parameter: Constant72_Value
                                        * Referenced by: '<Root>/Constant72'
                                        */
  real32_T Constant89_Value;           /* Computed Parameter: Constant89_Value
                                        * Referenced by: '<Root>/Constant89'
                                        */
};

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

  /*
   * Timing:
   * The following substructure contains information regarding
   * the timing information for the model.
   */
  struct {
    struct {
      uint16_T TID[4];
    } TaskCounters;

    struct {
      boolean_T TID0_1;
      boolean_T TID0_3;
    } RateInteraction;
  } Timing;
};

/* Block parameters (default storage) */
extern P_Inverter_001_T Inverter_001_P;

/* Block signals (default storage) */
extern B_Inverter_001_T Inverter_001_B;

/* Block states (default storage) */
extern DW_Inverter_001_T Inverter_001_DW;

/* External function called from main */
extern void Inverter_001_SetEventsForThisBaseStep(boolean_T *eventFlags);

/* Model entry point functions */
extern void Inverter_001_SetEventsForThisBaseStep(boolean_T *eventFlags);
extern void Inverter_001_initialize(void);
extern void Inverter_001_step0(void);
extern void Inverter_001_step1(void);
extern void Inverter_001_step2(void);
extern void Inverter_001_step3(void);
extern void Inverter_001_terminate(void);

/* Real-time Model object */
extern RT_MODEL_Inverter_001_T *const Inverter_001_M;

/*-
 * These blocks were eliminated from the model due to optimizations:
 *
 * Block '<S17>/Product2' : Unused code path elimination
 * Block '<S17>/Product3' : Unused code path elimination
 * Block '<S17>/Product4' : Unused code path elimination
 * Block '<S17>/Product5' : Unused code path elimination
 * Block '<S17>/Product6' : Unused code path elimination
 * Block '<S17>/Product7' : Unused code path elimination
 * Block '<S17>/Sum1' : Unused code path elimination
 * Block '<S17>/Sum4' : Unused code path elimination
 * Block '<S17>/Sum5' : Unused code path elimination
 * Block '<Root>/Rate Transition6' : Unused code path elimination
 * Block '<Root>/Rate Transition7' : Unused code path elimination
 * Block '<S39>/Data Type Duplicate' : Unused code path elimination
 * Block '<Root>/Scope7' : Unused code path elimination
 * Block '<Root>/Scope8' : Unused code path elimination
 * Block '<S24>/Data Type Conversion' : Eliminate redundant data type conversion
 * Block '<S25>/Data Type Conversion' : Eliminate redundant data type conversion
 * Block '<S26>/Data Type Conversion' : Eliminate redundant data type conversion
 * Block '<S28>/Data Type Conversion' : Eliminate redundant data type conversion
 * Block '<S29>/Data Type Conversion' : Eliminate redundant data type conversion
 * Block '<S30>/Data Type Conversion' : Eliminate redundant data type conversion
 * Block '<Root>/Rate Transition4' : Eliminated since input and output rates are identical
 * Block '<S39>/Conversion' : Eliminate redundant data type conversion
 */

/*-
 * 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>' : 'Inverter_001'
 * '<S1>'   : 'Inverter_001/AC Filter'
 * '<S2>'   : 'Inverter_001/ADC'
 * '<S3>'   : 'Inverter_001/Control'
 * '<S4>'   : 'Inverter_001/InverterPWM'
 * '<S5>'   : 'Inverter_001/Modulation1'
 * '<S6>'   : 'Inverter_001/Reference'
 * '<S7>'   : 'Inverter_001/AC Filter/Low Pass Filter1'
 * '<S8>'   : 'Inverter_001/AC Filter/Low Pass Filter2'
 * '<S9>'   : 'Inverter_001/AC Filter/Low Pass Filter3'
 * '<S10>'  : 'Inverter_001/AC Filter/Low Pass Filter4'
 * '<S11>'  : 'Inverter_001/AC Filter/Low Pass Filter5'
 * '<S12>'  : 'Inverter_001/AC Filter/Low Pass Filter6'
 * '<S13>'  : 'Inverter_001/AC Filter/Low Pass Filter7'
 * '<S14>'  : 'Inverter_001/AC Filter/Low Pass Filter8'
 * '<S15>'  : 'Inverter_001/AC Filter/Low Pass Filter9'
 * '<S16>'  : 'Inverter_001/Control/Current contro v2'
 * '<S17>'  : 'Inverter_001/Control/Inverse Park Transformation'
 * '<S18>'  : 'Inverter_001/Control/Park Transformation'
 * '<S19>'  : 'Inverter_001/Control/Park Transformation1'
 * '<S20>'  : 'Inverter_001/Control/Park Transformation2'
 * '<S21>'  : 'Inverter_001/Control/Subsystem'
 * '<S22>'  : 'Inverter_001/Control/Subsystem1'
 * '<S23>'  : 'Inverter_001/Control/Voltage control v1'
 * '<S24>'  : 'Inverter_001/Control/Current contro v2/PIR controller1'
 * '<S25>'  : 'Inverter_001/Control/Current contro v2/PIR controller2'
 * '<S26>'  : 'Inverter_001/Control/Current contro v2/PIR controller3'
 * '<S27>'  : 'Inverter_001/Control/Current contro v2/PIR controller4'
 * '<S28>'  : 'Inverter_001/Control/Voltage control v1/PIR controller1'
 * '<S29>'  : 'Inverter_001/Control/Voltage control v1/PIR controller2'
 * '<S30>'  : 'Inverter_001/Control/Voltage control v1/PIR controller3'
 * '<S31>'  : 'Inverter_001/Modulation1/Carrier1'
 * '<S32>'  : 'Inverter_001/Modulation1/Carrier1/MATLAB Function'
 * '<S33>'  : 'Inverter_001/Reference/Inverse Park Transformation'
 * '<S34>'  : 'Inverter_001/Reference/Ramp Generator1'
 * '<S35>'  : 'Inverter_001/Reference/Ramp Generator1/Convert Param To fix-pt with floor  rounding mode'
 * '<S36>'  : 'Inverter_001/Reference/Ramp Generator1/Subsystem'
 * '<S37>'  : 'Inverter_001/Reference/Ramp Generator1/Subsystem1'
 * '<S38>'  : 'Inverter_001/Reference/Ramp Generator1/Convert Param To fix-pt with floor  rounding mode/Embedded MATLAB Function'
 * '<S39>'  : 'Inverter_001/Reference/Ramp Generator1/Subsystem/Data Type Conversion Inherited'
 */
#endif                                 /* RTW_HEADER_Inverter_001_h_ */

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