/*
 * File: Test_1.h
 *
 * Real-Time Workshop code generated for Simulink model Test_1.
 *
 * Model version                        : 1.29
 * Real-Time Workshop file version      : 6.3  (R14SP3)  26-Jul-2005
 * Real-Time Workshop file generated on : Thu Sep 25 20:48:24 2008
 * TLC version                          : 6.3 (Aug  5 2005)
 * C source code generated on           : Thu Sep 25 20:48:24 2008
 */

#ifndef _RTW_HEADER_Test_1_h_
#define _RTW_HEADER_Test_1_h_

#ifndef _Test_1_COMMON_INCLUDES_
# define _Test_1_COMMON_INCLUDES_
#include <math.h>
#include <float.h>
#include <stddef.h>
#include <string.h>
#include "rtwtypes.h"
#endif                                  /* _Test_1_COMMON_INCLUDES_ */

#include "Test_1_types.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

/* Block signals (auto storage) */
typedef struct {
  uint16_T RateTransition[12];          /* '<Root>/Rate Transition' */
  uint16_T IndexVector;                 /* '<S4>/Index Vector' */
  uint16_T Constant[12];                /* '<S3>/Constant' */
} BlockIO_Test_1;

/* Constant parameters (auto storage) */
typedef struct {
  /* Expression: uint16('Johnny!')
   * '<S4>/Constant'
   */
  uint16_T Constant_Value[7];
  /* Expression: uint16('hello world ')
   * '<S3>/Constant'
   */
  uint16_T Constant_Value_c[12];
} ConstParam_Test_1;

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

  /*
   * Timing:
   * The following substructure contains information regarding
   * the timing information for the model.
   */
  struct {
    struct {
      uint8_T TID[2];
    } TaskCounters;
    struct {
      boolean_T TID0_1;
    } RateInteraction;
  } Timing;
};

/* Block signals (auto storage) */
extern BlockIO_Test_1 Test_1_B;

/* Constant parameters (auto storage) */
extern const ConstParam_Test_1 Test_1_ConstP;

/* Model entry point functions */
extern void Test_1_SetEventsForThisBaseStep(boolean_T *eventFlags);
extern void Test_1_initialize(boolean_T firstTime);
extern void Test_1_step(int_T tid);
extern void Test_1_terminate(void);

/* Real-time Model object */
extern RT_MODEL_Test_1 *Test_1_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>' : Test_1
 * '<S1>'   : Test_1/RAppID-EC
 * '<S2>'   : Test_1/Subsystem
 * '<S3>'   : Test_1/Subsystem1
 * '<S4>'   : Test_1/Subsystem/For Iterator Subsystem
 */

#endif                                  /* _RTW_HEADER_Test_1_h_ */

/* File trailer for Real-Time Workshop generated code.
 *
 * [EOF]
 */
