File: C:\MATLAB6p5\work\atomicdemo_ert_rtw/atomicdemo.h1 /* 2 * atomicdemo.h 3 * 4 * Real-Time Workshop code generation for Simulink model "atomicdemo.mdl". 5 * 6 * Model Version : 1.46 7 * Real-Time Workshop file version : 5.0 $Date: 2002/05/30 19:21:33 $ 8 * Real-Time Workshop file generated on : Wed Mar 24 14:33:27 2004 9 * TLC version : 5.0 (Jun 18 2002) 10 * C source code generated on : Wed Mar 24 14:33:27 2004 11 */ 12 13 #ifndef _RTW_HEADER_atomicdemo_h_ 14 # define _RTW_HEADER_atomicdemo_h_ 15 16 #ifndef _atomicdemo_COMMON_INCLUDES_ 17 # define _atomicdemo_COMMON_INCLUDES_ 18 #include <math.h> 19 #include <float.h> 20 #include <string.h> 21 22 #include "tmwtypes.h" 23 #include "simstruc_types.h" 24 #include "rtlibsrc.h" 25 26 #endif /* _atomicdemo_COMMON_INCLUDES_ */ 27 28 /* Child system includes */ 29 #include "myfile.h" 30 31 #include "atomicdemo_types.h" 32 33 /* Intrinsic types */ 34 #ifndef POINTER_T 35 # define POINTER_T 36 typedef void * pointer_T; 37 #endif 38 39 /* Block signals (auto storage) */ 40 typedef struct _BlockIO { 41 rtB_myfun system2; /* '<Root>/system2' */ 42 rtB_myfun system1; /* '<Root>/system1' */ 43 } BlockIO; 44 45 /* Block states (auto storage) for system: '<Root>' */ 46 typedef struct D_Work_tag { 47 rtDW_myfun system2; /* '<Root>/system2' */ 48 rtDW_myfun system1; /* '<Root>/system1' */ 49 } D_Work; 50 51 /* External inputs (root inport signals with auto storage) */ 52 typedef struct _ExternalInputs_tag { 53 real_T In1; /* '<Root>/In1' */ 54 real_T In2; /* '<Root>/In2' */ 55 } ExternalInputs; 56 57 /* External outputs (root outports fed by signals with auto storage) */ 58 typedef struct _ExternalOutputs_tag { 59 real_T Out1; /* '<Root>/Out1' */ 60 real_T Out2; /* '<Root>/Out2' */ 61 } ExternalOutputs; 62 63 /* Real-time Model Data Structure */ 64 struct _RT_MODEL_Tag { 65 const char *errorStatus; 66 }; 67 68 /* Real-time Model object */ 69 extern RT_MODEL *rtM; 70 71 /* Macros for accessing real-time model data structure */ 72 73 #ifndef rtmGetErrorStatus 74 # define rtmGetErrorStatus(rtm) (rtm)->errorStatus 75 #endif 76 77 #ifndef rtmSetErrorStatus 78 # define rtmSetErrorStatus(rtm, val) (rtm)->errorStatus = ((val)) 79 #endif 80 81 #ifndef rtmGetTStart 82 # define rtmGetTStart(rtm) (0.0) 83 #endif 84 85 /* Backward compatibility for real-time model name change */ 86 #define atomicdemo_rtO rtM 87 #define atomicdemo_RT_OBJECT RT_MODEL 88 89 /* Block signals (auto storage) */ 90 extern BlockIO rtB; 91 92 /* Block states (auto storage) */ 93 extern D_Work rtDWork; 94 95 /* External inputs (root inport signals with auto storage) */ 96 extern ExternalInputs rtU; 97 98 /* External outputs (root outports fed by signals with auto storage) */ 99 extern ExternalOutputs rtY; 100 101 /* Model entry point functions */ 102 extern void atomicdemo_initialize(boolean_T firstTime); 103 extern void atomicdemo_step(void); 104 105 /* 106 * The generated code includes comments that allow you to trace directly 107 * back to the appropriate location in the model. The basic format 108 * is <system>/block_name, where system is the system number (uniquely 109 * assigned by Simulink) and block_name is the name of the block. 110 * 111 * Use the MATLAB hilite_system command to trace the generated code back 112 * to the model. For example, 113 * 114 * hilite_system('<S3>') - opens system 3 115 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3 116 * 117 * Here is the system hierarchy for this model 118 * 119 * '<Root>' : atomicdemo 120 * '<S1>' : atomicdemo/system1 121 * '<S2>' : atomicdemo/system2 122 */ 123 124 #endif /* _RTW_HEADER_atomicdemo_h_ */ |