File: CONFIG_Functional.h1 /* 2 * Code generation for system model 'CONFIG_Functional' 3 * For more details, see corresponding source file CONFIG_Functional.c 4 * 5 */ 6 #ifndef RTW_HEADER_CONFIG_Functional_h_ 7 #define RTW_HEADER_CONFIG_Functional_h_ 8 #ifndef CONFIG_Functional_COMMON_INCLUDES_ 9 # define CONFIG_Functional_COMMON_INCLUDES_ 10 #include <string.h> 11 #include "rtwtypes.h" 12 #include "rtw_continuous.h" 13 #include "rtw_solver.h" 14 #endif /* CONFIG_Functional_COMMON_INCLUDES_ */ 15 16 #include "CONFIG_Functional_types.h" 17 18 /* Block signals for model 'CONFIG_Functional' */ 19 typedef struct { 20 uint8_T Patient_ID; 21 uint8_T Drug_Name; 22 uint8_T Drug_Concentration; 23 uint8_T VTBI_Total; 24 uint8_T Total_Duration; 25 uint8_T Flow_Rate_Basal; 26 uint8_T Flow_Rate_Intermittent_Bolus; 27 uint8_T Duration_Intermittent_Bolus; 28 uint8_T Interval_Intermittent_Bolus; 29 uint8_T Flow_Rate_Patient_Bolus; 30 uint8_T Duration_Patient_Bolus; 31 uint8_T Lockout_Period_Patient_Bolus; 32 uint8_T Max_Number_of_Patient_Bolus; 33 uint8_T Entered_Reservoir_Volume; 34 uint8_T Configuration_Type; 35 uint8_T Drug_Name_d; 36 uint8_T Drug_Concentration_High; 37 uint8_T Drug_Concentration_Low; 38 uint8_T VTBI_High; 39 uint8_T VTBI_Low; 40 uint8_T Number_Max_Patient_Bolus; 41 uint8_T Flow_Rate_KVO; 42 uint8_T Flow_Rate_High; 43 uint8_T Flow_Rate_Low; 44 uint8_T Empty_Reservoir; 45 uint8_T Max_Config_Duration; 46 uint8_T Reservoir_Volume; 47 uint8_T CONFIG_OUT_Patient_ID; /* '<Root>/Config Sub-System' */ 48 uint8_T CONFIG_OUT_Drug_Name; /* '<Root>/Config Sub-System' */ 49 uint8_T CONFIG_OUT_Drug_Concentration;/* '<Root>/Config Sub-System' */ 50 uint8_T CONFIG_OUT_Infusion_Total_Duration;/* '<Root>/Config Sub-System' */ 51 uint8_T CONFIG_OUT_Vtbi_Total; /* '<Root>/Config Sub-System' */ 52 uint8_T CONFIG_OUT_Flow_Rate_Basal; /* '<Root>/Config Sub-System' */ 53 uint8_T CONFIG_OUT_Flow_Rate_Intermittent_bolus;/* '<Root>/Config Sub-System' */ 54 uint8_T CONFIG_OUT_Intermittent_Bolus_Duration;/* '<Root>/Config Sub-System' */ 55 uint8_T CONFIG_OUT_Interval_Intermittent_bolus;/* '<Root>/Config Sub-System' */ 56 uint8_T CONFIG_OUT_Flow_Rate_Patient_bolus;/* '<Root>/Config Sub-System' */ 57 uint8_T CONFIG_OUT_Patient_bolus_Duration;/* '<Root>/Config Sub-System' */ 58 uint8_T CONFIG_OUT_Lock_Out_Duration;/* '<Root>/Config Sub-System' */ 59 uint8_T CONFIG_OUT_Max_Patient_bolus;/* '<Root>/Config Sub-System' */ 60 uint8_T CONFIG_OUT_Flow_Rate_KVO; /* '<Root>/Config Sub-System' */ 61 uint8_T CONFIG_OUT_Entered_Reservoir_Volume;/* '<Root>/Config Sub-System' */ 62 uint8_T CONFIG_OUT_Reservoir_Volume; /* '<Root>/Config Sub-System' */ 63 uint8_T CONFIG_OUT_Configured; /* '<Root>/Config Sub-System' */ 64 uint8_T CONFIG_OUT_Error_Message_ID; /* '<Root>/Config Sub-System' */ 65 uint8_T CONFIG_OUT_Log_Message_ID; /* '<Root>/Config Sub-System' */ 66 uint8_T CONFIG_OUT_Config_Timer; /* '<Root>/Config Sub-System' */ 67 uint8_T CONFIG_OUT_Config_Mode; /* '<Root>/Config Sub-System' */ 68 boolean_T Infusion_Initiate; 69 boolean_T Next; 70 boolean_T Back; 71 boolean_T Cancel; 72 boolean_T In_Therapy; 73 boolean_T CONFIG_OUT_Request_Configuration_Type;/* '<Root>/Config Sub-System' */ 74 boolean_T CONFIG_OUT_Request_Confirm_Infusion_Initiate;/* '<Root>/Config Sub-System' */ 75 boolean_T CONFIG_OUT_Request_Patient_Drug_Info;/* '<Root>/Config Sub-System' */ 76 boolean_T CONFIG_OUT_Request_Infusion_Info;/* '<Root>/Config Sub-System' */ 77 } B_CONFIG_Functional_c_T; 78 79 /* Block states (auto storage) for model 'CONFIG_Functional' */ 80 typedef struct { 81 uint8_T is_active_c2_CONFIG_Functional;/* '<Root>/Config Sub-System' */ 82 uint8_T is_c2_CONFIG_Functional; /* '<Root>/Config Sub-System' */ 83 uint8_T is_Configuration; /* '<Root>/Config Sub-System' */ 84 uint8_T is_Prescription_Config; /* '<Root>/Config Sub-System' */ 85 uint8_T is_Patient_Drug_info; /* '<Root>/Config Sub-System' */ 86 uint8_T is_Infusion_info; /* '<Root>/Config Sub-System' */ 87 uint8_T t_DrugConcentration; /* '<Root>/Config Sub-System' */ 88 uint8_T t_DrugName; /* '<Root>/Config Sub-System' */ 89 uint8_T t_Duration_pbolus; /* '<Root>/Config Sub-System' */ 90 uint8_T t_Duration_sbolus; /* '<Root>/Config Sub-System' */ 91 uint8_T t_Duration_total; /* '<Root>/Config Sub-System' */ 92 uint8_T t_FlowRate_basal; /* '<Root>/Config Sub-System' */ 93 uint8_T t_FlowRate_kvo; /* '<Root>/Config Sub-System' */ 94 uint8_T t_FlowRate_pbolus; /* '<Root>/Config Sub-System' */ 95 uint8_T t_FlowRate_sbolus; /* '<Root>/Config Sub-System' */ 96 uint8_T t_Interval_sbolus; /* '<Root>/Config Sub-System' */ 97 uint8_T t_LockOutPeriod_pbolus; /* '<Root>/Config Sub-System' */ 98 uint8_T t_NumberMax_pbolus; /* '<Root>/Config Sub-System' */ 99 uint8_T t_PatientID; /* '<Root>/Config Sub-System' */ 100 uint8_T t_EnteredReservoirVolume; /* '<Root>/Config Sub-System' */ 101 uint8_T t_VTBI_total; /* '<Root>/Config Sub-System' */ 102 uint8_T validate; /* '<Root>/Config Sub-System' */ 103 uint8_T value; /* '<Root>/Config Sub-System' */ 104 uint8_T Selected_Config_Type; /* '<Root>/Config Sub-System' */ 105 boolean_T New_Configuration; /* '<Root>/Config Sub-System' */ 106 } DW_CONFIG_Functional_f_T; 107 108 /* Real-time Model Data Structure */ 109 struct tag_RTM_CONFIG_Functional_T { 110 const char_T **errorStatus; 111 }; 112 113 typedef struct { 114 B_CONFIG_Functional_c_T rtb; 115 DW_CONFIG_Functional_f_T rtdw; 116 RT_MODEL_CONFIG_Functional_T rtm; 117 } MdlrefDW_CONFIG_Functional_T; 118 119 /* Model reference registration function */ 120 extern void CONFIG_Functional_initialize(const char_T **rt_errorStatus, 121 RT_MODEL_CONFIG_Functional_T *const CONFIG_Functional_M, 122 B_CONFIG_Functional_c_T *localB, DW_CONFIG_Functional_f_T *localDW); 123 extern void CONFIG_Functional_Init(B_CONFIG_Functional_c_T *localB, 124 DW_CONFIG_Functional_f_T *localDW); 125 extern void CONFIG_Functional(const Top_Level_Mode_Outputs *rtu_TLM_MODE_IN, 126 const Prescription_Inputs *rtu_PRES_IN, const Operator_Commands *rtu_OP_CMD_IN, 127 const Drug_Database_Inputs *rtu_DB_IN, const Device_Configuration_Inputs 128 *rtu_CONST_IN, const System_Status_Outputs *rtu_SYS_STAT_IN, Config_Outputs 129 *rty_CONFIG_OUT, B_CONFIG_Functional_c_T *localB, DW_CONFIG_Functional_f_T 130 *localDW); 131 132 /*- 133 * The generated code includes comments that allow you to trace directly 134 * back to the appropriate location in the model. The basic format 135 * is <system>/block_name, where system is the system number (uniquely 136 * assigned by Simulink) and block_name is the name of the block. 137 * 138 * Use the MATLAB hilite_system command to trace the generated code back 139 * to the model. For example, 140 * 141 * hilite_system('<S3>') - opens system 3 142 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3 143 * 144 * Here is the system hierarchy for this model 145 * 146 * '<Root>' : 'CONFIG_Functional' 147 * '<S1>' : 'CONFIG_Functional/Config Sub-System' 148 */ 149 #endif /* RTW_HEADER_CONFIG_Functional_h_ */ 150 |