File: GPCA_SW_Functional.h1 /* 2 * GPCA_SW_Functional.h 3 * 4 * Code generation for model "GPCA_SW_Functional". 5 * 6 * Model version : 1.1238 7 * Simulink Coder version : 8.4 (R2013a) 13-Feb-2013 8 * C source code generated on : Tue Aug 20 14:29:47 2013 9 * 10 * Target selection: grt.tlc 11 * Note: GRT includes extra infrastructure and instrumentation for prototyping 12 * Embedded hardware selection: 32-bit Generic 13 * Code generation objectives: Unspecified 14 * Validation result: Not run 15 */ 16 #ifndef RTW_HEADER_GPCA_SW_Functional_h_ 17 #define RTW_HEADER_GPCA_SW_Functional_h_ 18 #ifndef GPCA_SW_Functional_COMMON_INCLUDES_ 19 # define GPCA_SW_Functional_COMMON_INCLUDES_ 20 #include <float.h> 21 #include <stddef.h> 22 #include <string.h> 23 #include "rtwtypes.h" 24 #include "rtw_continuous.h" 25 #include "rtw_solver.h" 26 #include "rt_logging.h" 27 #include "rt_nonfinite.h" 28 #endif /* GPCA_SW_Functional_COMMON_INCLUDES_ */ 29 30 #include "GPCA_SW_Functional_types.h" 31 32 /* Child system includes */ 33 #include "GPCA_SW_Logical_Architecture.h" 34 35 /* Macros for accessing real-time model data structure */ 36 #ifndef rtmGetFinalTime 37 # define rtmGetFinalTime(rtm) ((rtm)->Timing.tFinal) 38 #endif 39 40 #ifndef rtmGetRTWLogInfo 41 # define rtmGetRTWLogInfo(rtm) ((rtm)->rtwLogInfo) 42 #endif 43 44 #ifndef rtmGetErrorStatus 45 # define rtmGetErrorStatus(rtm) ((rtm)->errorStatus) 46 #endif 47 48 #ifndef rtmSetErrorStatus 49 # define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val)) 50 #endif 51 52 #ifndef rtmGetErrorStatusPointer 53 # define rtmGetErrorStatusPointer(rtm) ((const char_T **)(&((rtm)->errorStatus))) 54 #endif 55 56 #ifndef rtmGetStopRequested 57 # define rtmGetStopRequested(rtm) ((rtm)->Timing.stopRequestedFlag) 58 #endif 59 60 #ifndef rtmSetStopRequested 61 # define rtmSetStopRequested(rtm, val) ((rtm)->Timing.stopRequestedFlag = (val)) 62 #endif 63 64 #ifndef rtmGetStopRequestedPtr 65 # define rtmGetStopRequestedPtr(rtm) (&((rtm)->Timing.stopRequestedFlag)) 66 #endif 67 68 #ifndef rtmGetT 69 # define rtmGetT(rtm) ((rtm)->Timing.taskTime0) 70 #endif 71 72 #ifndef rtmGetTFinal 73 # define rtmGetTFinal(rtm) ((rtm)->Timing.tFinal) 74 #endif 75 76 /* Block signals (auto storage) */ 77 typedef struct { 78 GPCA_SW_Outputs GPCASOFTWARE; /* '<Root>/GPCA SOFTWARE' */ 79 } B_GPCA_SW_Functional_T; 80 81 /* Block states (auto storage) for system '<Root>' */ 82 typedef struct { 83 MdlrefDW_GPCA_SW_Logical_Architecture_T GPCASOFTWARE_DWORK1;/* '<Root>/GPCA SOFTWARE' */ 84 } DW_GPCA_SW_Functional_T; 85 86 /* External inputs (root inport signals with auto storage) */ 87 typedef struct { 88 Device_Sensor_Inputs SENSOR_IN; /* '<Root>/SENSOR_IN' */ 89 Device_Configuration_Inputs CONST_IN;/* '<Root>/CONST_IN' */ 90 Operator_Commands OP_CMD_IN; /* '<Root>/OP_CMD_IN' */ 91 Drug_Database_Inputs DB_IN; /* '<Root>/DB_IN' */ 92 Prescription_Inputs PRES_IN; /* '<Root>/PRES_IN' */ 93 Patient_Inputs PATIENT_IN; /* '<Root>/PATIENT_IN' */ 94 } ExtU_GPCA_SW_Functional_T; 95 96 /* External outputs (root outports fed by signals with auto storage) */ 97 typedef struct { 98 GPCA_SW_Outputs GPCA_SW_OUT; /* '<Root>/GPCA_SW_OUT' */ 99 } ExtY_GPCA_SW_Functional_T; 100 101 /* Real-time Model Data Structure */ 102 struct tag_RTM_GPCA_SW_Functional_T { 103 const char_T *errorStatus; 104 RTWLogInfo *rtwLogInfo; 105 106 /* 107 * Timing: 108 * The following substructure contains information regarding 109 * the timing information for the model. 110 */ 111 struct { 112 time_T taskTime0; 113 uint32_T clockTick0; 114 uint32_T clockTickH0; 115 time_T stepSize0; 116 time_T tFinal; 117 boolean_T stopRequestedFlag; 118 } Timing; 119 }; 120 121 /* Block signals (auto storage) */ 122 extern B_GPCA_SW_Functional_T GPCA_SW_Functional_B; 123 124 /* Block states (auto storage) */ 125 extern DW_GPCA_SW_Functional_T GPCA_SW_Functional_DW; 126 127 /* External inputs (root inport signals with auto storage) */ 128 extern ExtU_GPCA_SW_Functional_T GPCA_SW_Functional_U; 129 130 /* External outputs (root outports fed by signals with auto storage) */ 131 extern ExtY_GPCA_SW_Functional_T GPCA_SW_Functional_Y; 132 133 /* External data declarations for dependent source files */ 134 extern const GPCA_SW_Outputs GPCA_SW_Functional_rtZGPCA_SW_Outputs;/* GPCA_SW_Outputs ground */ 135 136 /* Model entry point functions */ 137 extern void GPCA_SW_Functional_initialize(void); 138 extern void GPCA_SW_Functional_step(void); 139 extern void GPCA_SW_Functional_terminate(void); 140 141 /* Real-time Model object */ 142 extern RT_MODEL_GPCA_SW_Functional_T *const GPCA_SW_Functional_M; 143 144 /*- 145 * The generated code includes comments that allow you to trace directly 146 * back to the appropriate location in the model. The basic format 147 * is <system>/block_name, where system is the system number (uniquely 148 * assigned by Simulink) and block_name is the name of the block. 149 * 150 * Use the MATLAB hilite_system command to trace the generated code back 151 * to the model. For example, 152 * 153 * hilite_system('<S3>') - opens system 3 154 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3 155 * 156 * Here is the system hierarchy for this model 157 * 158 * '<Root>' : 'GPCA_SW_Functional' 159 */ 160 #endif /* RTW_HEADER_GPCA_SW_Functional_h_ */ 161 |