File: GPCA_SW_Functional_types.h1 /* 2 * GPCA_SW_Functional_types.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_types_h_ 17 #define RTW_HEADER_GPCA_SW_Functional_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_GPCA_SW_Outputs_ 144 #define _DEFINED_TYPEDEF_FOR_GPCA_SW_Outputs_ 145 146 typedef struct { 147 boolean_T Request_Confirm_Stop; 148 uint8_T Log; 149 uint8_T Current_System_Mode; 150 uint8_T Actual_Infusion_Duration; 151 uint8_T Commanded_Flow_Rate; 152 uint8_T Volume_Infused; 153 uint8_T Reservoir_Volume; 154 uint8_T Is_Audio_Disabled; 155 uint8_T Notification_Message; 156 uint8_T Audio_Notification_Command; 157 uint8_T Patient_ID; 158 uint8_T Drug_Name; 159 uint8_T Drug_Concentration; 160 uint8_T Infusion_Total_Duration; 161 uint8_T VTBI_Total; 162 uint8_T Flow_Rate_Basal; 163 uint8_T Flow_Rate_Intermittent_Bolus; 164 uint8_T Duration_Intermittent_Bolus; 165 uint8_T Interval_Intermittent_Bolus; 166 uint8_T Flow_Rate_Patient_Bolus; 167 uint8_T Duration_Patient_Bolus; 168 uint8_T Lockout_Period_Patient_Bolus; 169 uint8_T Max_Number_of_Patient_Bolus; 170 uint8_T Flow_Rate_KVO; 171 uint8_T Entered_Reservoir_Volume; 172 uint8_T Configured; 173 uint8_T Error_Message_ID; 174 boolean_T Request_Config_Type; 175 boolean_T Request_Confirm_Infusion_Initiate; 176 boolean_T Request_Patient_Drug_Info; 177 boolean_T Request_Infusion_Info; 178 } GPCA_SW_Outputs; 179 180 #endif 181 182 /* Forward declaration for rtModel */ 183 typedef struct tag_RTM_GPCA_SW_Functional_T RT_MODEL_GPCA_SW_Functional_T; 184 185 #endif /* RTW_HEADER_GPCA_SW_Functional_types_h_ */ 186 |