/* * File: external_test.h * * Code generated for Simulink model 'external_test'. * * Model version : 1.5 * Simulink Coder version : 8.0 (R2011a) 09-Mar-2011 * TLC version : 8.0 (Feb 3 2011) * C/C++ source code generated on : Sat Mar 24 19:12:40 2012 * * Target selection: ert.tlc * Embedded hardware selection: 32-bit Generic * Code generation objectives: Unspecified * Validation result: Not run */ #ifndef RTW_HEADER_external_test_h_ #define RTW_HEADER_external_test_h_ #ifndef external_test_COMMON_INCLUDES_ # define external_test_COMMON_INCLUDES_ #include #include #include #include "rtwtypes.h" #include "rtw_extmode.h" #include "sysran_types.h" #include "rtw_continuous.h" #include "rtw_solver.h" #include "dt_info.h" #include "ext_work.h" #endif /* external_test_COMMON_INCLUDES_ */ #include "external_test_types.h" /* Macros for accessing real-time model data structure */ #ifndef rtmGetFinalTime # define rtmGetFinalTime(rtm) ((rtm)->Timing.tFinal) #endif #ifndef rtmGetErrorStatus # define rtmGetErrorStatus(rtm) ((rtm)->errorStatus) #endif #ifndef rtmSetErrorStatus # define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val)) #endif #ifndef rtmGetStopRequested # define rtmGetStopRequested(rtm) ((rtm)->Timing.stopRequestedFlag) #endif #ifndef rtmSetStopRequested # define rtmSetStopRequested(rtm, val) ((rtm)->Timing.stopRequestedFlag = (val)) #endif #ifndef rtmGetStopRequestedPtr # define rtmGetStopRequestedPtr(rtm) (&((rtm)->Timing.stopRequestedFlag)) #endif #ifndef rtmGetT # define rtmGetT(rtm) (rtmGetTPtr((rtm))[0]) #endif #ifndef rtmGetTFinal # define rtmGetTFinal(rtm) ((rtm)->Timing.tFinal) #endif /* Block signals (auto storage) */ typedef struct { real_T GainA; /* '/Gain A' */ real_T GainB; /* '/Gain B' */ } BlockIO_external_test; /* Block states (auto storage) for system '' */ typedef struct { struct { void *LoggedData; } ScopeA_PWORK; /* '/Scope A' */ struct { void *LoggedData; } ScopeB_PWORK; /* '/Scope B' */ } D_Work_external_test; /* Parameters (auto storage) */ struct Parameters_external_test_ { real_T SineWave_Amp; /* Expression: 1 * Referenced by: '/Sine Wave' */ real_T SineWave_Bias; /* Expression: 0 * Referenced by: '/Sine Wave' */ real_T SineWave_Freq; /* Expression: 1 * Referenced by: '/Sine Wave' */ real_T SineWave_Phase; /* Expression: 0 * Referenced by: '/Sine Wave' */ real_T GainA_Gain; /* Expression: A * Referenced by: '/Gain A' */ real_T GainB_Gain; /* Expression: B * Referenced by: '/Gain B' */ }; /* Real-time Model Data Structure */ struct RT_MODEL_external_test { const char_T *errorStatus; RTWExtModeInfo *extModeInfo; RTWSolverInfo solverInfo; /* * Sizes: * The following substructure contains sizes information * for many of the model attributes such as inputs, outputs, * dwork, sample times, etc. */ struct { uint32_T checksums[4]; } Sizes; /* * SpecialInfo: * The following substructure contains special information * related to other components that are dependent on RTW. */ struct { const void *mappingInfo; } SpecialInfo; /* * Timing: * The following substructure contains information regarding * the timing information for the model. */ struct { uint32_T clockTick0; time_T stepSize0; uint32_T clockTick1; time_T tFinal; SimTimeStep simTimeStep; boolean_T stopRequestedFlag; time_T *t; time_T tArray[2]; } Timing; }; /* Block parameters (auto storage) */ extern Parameters_external_test external_test_P; /* Block signals (auto storage) */ extern BlockIO_external_test external_test_B; /* Block states (auto storage) */ extern D_Work_external_test external_test_DWork; /* Model entry point functions */ extern void external_test_initialize(void); extern void external_test_step(void); extern void external_test_terminate(void); /* Real-time Model object */ extern struct RT_MODEL_external_test *const external_test_M; /*- * The generated code includes comments that allow you to trace directly * back to the appropriate location in the model. The basic format * is /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('') - opens system 3 * hilite_system('/Kp') - opens and selects block Kp which resides in S3 * * Here is the system hierarchy for this model * * '' : external_test */ #endif /* RTW_HEADER_external_test_h_ */ /* * File trailer for generated code. * * [EOF] */