File: GPCA_SW_Logical_Architecture_types.h1 /* 2 * GPCA_SW_Logical_Architecture_types.h 3 * 4 * Code generation for model "GPCA_SW_Logical_Architecture". 5 * 6 * Model version : 1.1265 7 * Simulink Coder version : 8.4 (R2013a) 13-Feb-2013 8 * C source code generated on : Thu Sep 12 09:50: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 objective: Debugging 14 * Validation result: Not run 15 */ 16 #ifndef RTW_HEADER_GPCA_SW_Logical_Architecture_types_h_ 17 #define RTW_HEADER_GPCA_SW_Logical_Architecture_types_h_ 18 #include "rtwtypes.h" 19 #ifndef _DEFINED_TYPEDEF_FOR_Device_Sensor_Inputs_ 20 #define _DEFINED_TYPEDEF_FOR_Device_Sensor_Inputs_ 21 22 typedef struct { 23 uint8_T Flow_Rate; 24 boolean_T Flow_Rate_Not_Stable; 25 boolean_T Air_In_Line; 26 boolean_T Occlusion; 27 boolean_T Door_Open; 28 boolean_T Temp; 29 boolean_T Air_Pressure; 30 boolean_T Humidity; 31 boolean_T Battery_Depleted; 32 boolean_T Battery_Low; 33 boolean_T Battery_Unable_To_Charge; 34 boolean_T Supply_Voltage; 35 boolean_T CPU_In_Error; 36 boolean_T RTC_In_Error; 37 boolean_T Watchdog_Interrupted; 38 boolean_T Memory_Corrupted; 39 boolean_T Pump_Too_Hot; 40 boolean_T Pump_Overheated; 41 boolean_T Pump_Primed; 42 boolean_T Post_Successful; 43 } Device_Sensor_Inputs; 44 45 #endif 46 47 #ifndef _DEFINED_TYPEDEF_FOR_Device_Configuration_Inputs_ 48 #define _DEFINED_TYPEDEF_FOR_Device_Configuration_Inputs_ 49 50 typedef struct { 51 uint8_T Audio_Enable_Duration; 52 uint8_T Audio_Level; 53 uint8_T Config_Warning_Duration; 54 uint8_T Empty_Reservoir; 55 uint8_T Low_Reservoir; 56 uint8_T Max_Config_Duration; 57 uint8_T Max_Duration_Over_Infusion; 58 uint8_T Max_Duration_Under_Infusion; 59 uint8_T Max_Paused_Duration; 60 uint8_T Max_Idle_Duration; 61 uint8_T Tolerance_Max; 62 uint8_T Tolerance_Min; 63 uint8_T Log_Interval; 64 uint8_T System_Test_Interval; 65 uint8_T Max_Display_Duration; 66 uint8_T Max_Confirm_Stop_Duration; 67 } Device_Configuration_Inputs; 68 69 #endif 70 71 #ifndef _DEFINED_TYPEDEF_FOR_Operator_Commands_ 72 #define _DEFINED_TYPEDEF_FOR_Operator_Commands_ 73 74 typedef struct { 75 boolean_T System_Start; 76 boolean_T System_Stop; 77 boolean_T Infusion_Initiate; 78 boolean_T Infusion_Inhibit; 79 boolean_T Infusion_Cancel; 80 boolean_T Data_Config; 81 boolean_T Next; 82 boolean_T Back; 83 boolean_T Cancel; 84 boolean_T Keyboard; 85 uint8_T Disable_Audio; 86 boolean_T Notification_Cancel; 87 uint8_T Configuration_Type; 88 boolean_T Confirm_Stop; 89 } Operator_Commands; 90 91 #endif 92 93 #ifndef _DEFINED_TYPEDEF_FOR_Drug_Database_Inputs_ 94 #define _DEFINED_TYPEDEF_FOR_Drug_Database_Inputs_ 95 96 typedef struct { 97 boolean_T Known_Prescription; 98 uint8_T Drug_Name; 99 uint8_T Drug_Concentration_High; 100 uint8_T Drug_Concentration_Low; 101 uint8_T VTBI_High; 102 uint8_T VTBI_Low; 103 uint8_T Interval_Patient_Bolus; 104 uint8_T Number_Max_Patient_Bolus; 105 uint8_T Flow_Rate_KVO; 106 uint8_T Flow_Rate_High; 107 uint8_T Flow_Rate_Low; 108 } Drug_Database_Inputs; 109 110 #endif 111 112 #ifndef _DEFINED_TYPEDEF_FOR_Prescription_Inputs_ 113 #define _DEFINED_TYPEDEF_FOR_Prescription_Inputs_ 114 115 typedef struct { 116 uint8_T Patient_ID; 117 uint8_T Drug_Name; 118 uint8_T Drug_Concentration; 119 uint8_T VTBI_Total; 120 uint8_T Total_Duration; 121 uint8_T Flow_Rate_Basal; 122 uint8_T Flow_Rate_Intermittent_Bolus; 123 uint8_T Duration_Intermittent_Bolus; 124 uint8_T Interval_Intermittent_Bolus; 125 uint8_T Flow_Rate_Patient_Bolus; 126 uint8_T Duration_Patient_Bolus; 127 uint8_T Lockout_Period_Patient_Bolus; 128 uint8_T Max_Number_of_Patient_Bolus; 129 uint8_T Entered_Reservoir_Volume; 130 } Prescription_Inputs; 131 132 #endif 133 134 #ifndef _DEFINED_TYPEDEF_FOR_Patient_Inputs_ 135 #define _DEFINED_TYPEDEF_FOR_Patient_Inputs_ 136 137 typedef struct { 138 boolean_T Patient_Bolus_Request; 139 } Patient_Inputs; 140 141 #endif 142 143 #ifndef _DEFINED_TYPEDEF_FOR_Infusion_Manager_Outputs_ 144 #define _DEFINED_TYPEDEF_FOR_Infusion_Manager_Outputs_ 145 146 typedef struct { 147 uint8_T Commanded_Flow_Rate; 148 uint8_T Current_System_Mode; 149 boolean_T New_Infusion; 150 uint8_T Log_Message_ID; 151 uint8_T Actual_Infusion_Duration; 152 } Infusion_Manager_Outputs; 153 154 #endif 155 156 #ifndef _DEFINED_TYPEDEF_FOR_Top_Level_Mode_Outputs_ 157 #define _DEFINED_TYPEDEF_FOR_Top_Level_Mode_Outputs_ 158 159 typedef struct { 160 boolean_T System_On; 161 boolean_T Request_Confirm_Stop; 162 uint8_T Log_Message_ID; 163 } Top_Level_Mode_Outputs; 164 165 #endif 166 167 #ifndef _DEFINED_TYPEDEF_FOR_System_Monitor_Output_ 168 #define _DEFINED_TYPEDEF_FOR_System_Monitor_Output_ 169 170 typedef struct { 171 boolean_T System_Monitor_Failed; 172 } System_Monitor_Output; 173 174 #endif 175 176 #ifndef _DEFINED_TYPEDEF_FOR_Log_Output_ 177 #define _DEFINED_TYPEDEF_FOR_Log_Output_ 178 179 typedef struct { 180 uint8_T Log; 181 boolean_T Logging_Failed; 182 } Log_Output; 183 184 #endif 185 186 #ifndef _DEFINED_TYPEDEF_FOR_System_Status_Outputs_ 187 #define _DEFINED_TYPEDEF_FOR_System_Status_Outputs_ 188 189 typedef struct { 190 boolean_T Reservoir_Empty; 191 uint8_T Reservoir_Volume; 192 uint8_T Volume_Infused; 193 uint8_T Log_Message_ID; 194 boolean_T In_Therapy; 195 } System_Status_Outputs; 196 197 #endif 198 199 #ifndef _DEFINED_TYPEDEF_FOR_Config_Outputs_ 200 #define _DEFINED_TYPEDEF_FOR_Config_Outputs_ 201 202 typedef struct { 203 uint8_T Patient_ID; 204 uint8_T Drug_Name; 205 uint8_T Drug_Concentration; 206 uint8_T Infusion_Total_Duration; 207 uint8_T VTBI_Total; 208 uint8_T Flow_Rate_Basal; 209 uint8_T Flow_Rate_Intermittent_Bolus; 210 uint8_T Duration_Intermittent_Bolus; 211 uint8_T Interval_Intermittent_Bolus; 212 uint8_T Flow_Rate_Patient_Bolus; 213 uint8_T Duration_Patient_Bolus; 214 uint8_T Lockout_Period_Patient_Bolus; 215 uint8_T Max_Number_of_Patient_Bolus; 216 uint8_T Flow_Rate_KVO; 217 uint8_T Entered_Reservoir_Volume; 218 uint8_T Reservoir_Volume; 219 uint8_T Configured; 220 uint8_T Error_Message_ID; 221 boolean_T Request_Config_Type; 222 boolean_T Request_Confirm_Infusion_Initiate; 223 boolean_T Request_Patient_Drug_Info; 224 boolean_T Request_Infusion_Info; 225 uint8_T Log_Message_ID; 226 uint8_T Config_Timer; 227 uint8_T Config_Mode; 228 } Config_Outputs; 229 230 #endif 231 232 #ifndef _DEFINED_TYPEDEF_FOR_Alarm_Outputs_ 233 #define _DEFINED_TYPEDEF_FOR_Alarm_Outputs_ 234 235 typedef struct { 236 uint8_T Is_Audio_Disabled; 237 uint8_T Notification_Message; 238 uint8_T Audio_Notification_Command; 239 uint8_T Highest_Level_Alarm; 240 uint8_T Log_Message_ID; 241 } Alarm_Outputs; 242 243 #endif 244 245 #ifndef _DEFINED_TYPEDEF_FOR_GPCA_SW_Outputs_ 246 #define _DEFINED_TYPEDEF_FOR_GPCA_SW_Outputs_ 247 248 typedef struct { 249 boolean_T Request_Confirm_Stop; 250 uint8_T Log; 251 uint8_T Current_System_Mode; 252 uint8_T Actual_Infusion_Duration; 253 uint8_T Commanded_Flow_Rate; 254 uint8_T Volume_Infused; 255 uint8_T Reservoir_Volume; 256 uint8_T Is_Audio_Disabled; 257 uint8_T Notification_Message; 258 uint8_T Audio_Notification_Command; 259 uint8_T Patient_ID; 260 uint8_T Drug_Name; 261 uint8_T Drug_Concentration; 262 uint8_T Infusion_Total_Duration; 263 uint8_T VTBI_Total; 264 uint8_T Flow_Rate_Basal; 265 uint8_T Flow_Rate_Intermittent_Bolus; 266 uint8_T Duration_Intermittent_Bolus; 267 uint8_T Interval_Intermittent_Bolus; 268 uint8_T Flow_Rate_Patient_Bolus; 269 uint8_T Duration_Patient_Bolus; 270 uint8_T Lockout_Period_Patient_Bolus; 271 uint8_T Max_Number_of_Patient_Bolus; 272 uint8_T Flow_Rate_KVO; 273 uint8_T Entered_Reservoir_Volume; 274 uint8_T Configured; 275 uint8_T Error_Message_ID; 276 boolean_T Request_Config_Type; 277 boolean_T Request_Confirm_Infusion_Initiate; 278 boolean_T Request_Patient_Drug_Info; 279 boolean_T Request_Infusion_Info; 280 } GPCA_SW_Outputs; 281 282 #endif 283 284 /* Forward declaration for rtModel */ 285 typedef struct tag_RTM_GPCA_SW_Logical_Architecture_T 286 RT_MODEL_GPCA_SW_Logical_Architecture_T; 287 288 #endif /* RTW_HEADER_GPCA_SW_Logical_Architecture_types_h_ */ 289 |