File: ALARM_Functional_types.h

    1   /*
    2    * ALARM_Functional_types.h
    3    *
    4    * Code generation for model "ALARM_Functional".
    5    *
    6    * Model version              : 1.1326
    7    * Simulink Coder version : 8.4 (R2013a) 13-Feb-2013
    8    * C source code generated on : Thu Sep 12 09:49:37 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_ALARM_Functional_types_h_
   17   #define RTW_HEADER_ALARM_Functional_types_h_
   18   #include "rtwtypes.h"
   19   #ifndef _DEFINED_TYPEDEF_FOR_Infusion_Manager_Outputs_
   20   #define _DEFINED_TYPEDEF_FOR_Infusion_Manager_Outputs_
   21   
   22   typedef struct {
   23     uint8_T Commanded_Flow_Rate;
   24     uint8_T Current_System_Mode;
   25     boolean_T New_Infusion;
   26     uint8_T Log_Message_ID;
   27     uint8_T Actual_Infusion_Duration;
   28   } Infusion_Manager_Outputs;
   29   
   30   #endif
   31   
   32   #ifndef _DEFINED_TYPEDEF_FOR_Top_Level_Mode_Outputs_
   33   #define _DEFINED_TYPEDEF_FOR_Top_Level_Mode_Outputs_
   34   
   35   typedef struct {
   36     boolean_T System_On;
   37     boolean_T Request_Confirm_Stop;
   38     uint8_T Log_Message_ID;
   39   } Top_Level_Mode_Outputs;
   40   
   41   #endif
   42   
   43   #ifndef _DEFINED_TYPEDEF_FOR_System_Monitor_Output_
   44   #define _DEFINED_TYPEDEF_FOR_System_Monitor_Output_
   45   
   46   typedef struct {
   47     boolean_T System_Monitor_Failed;
   48   } System_Monitor_Output;
   49   
   50   #endif
   51   
   52   #ifndef _DEFINED_TYPEDEF_FOR_Log_Output_
   53   #define _DEFINED_TYPEDEF_FOR_Log_Output_
   54   
   55   typedef struct {
   56     uint8_T Log;
   57     boolean_T Logging_Failed;
   58   } Log_Output;
   59   
   60   #endif
   61   
   62   #ifndef _DEFINED_TYPEDEF_FOR_Operator_Commands_
   63   #define _DEFINED_TYPEDEF_FOR_Operator_Commands_
   64   
   65   typedef struct {
   66     boolean_T System_Start;
   67     boolean_T System_Stop;
   68     boolean_T Infusion_Initiate;
   69     boolean_T Infusion_Inhibit;
   70     boolean_T Infusion_Cancel;
   71     boolean_T Data_Config;
   72     boolean_T Next;
   73     boolean_T Back;
   74     boolean_T Cancel;
   75     boolean_T Keyboard;
   76     uint8_T Disable_Audio;
   77     boolean_T Notification_Cancel;
   78     uint8_T Configuration_Type;
   79     boolean_T Confirm_Stop;
   80   } Operator_Commands;
   81   
   82   #endif
   83   
   84   #ifndef _DEFINED_TYPEDEF_FOR_Drug_Database_Inputs_
   85   #define _DEFINED_TYPEDEF_FOR_Drug_Database_Inputs_
   86   
   87   typedef struct {
   88     boolean_T Known_Prescription;
   89     uint8_T Drug_Name;
   90     uint8_T Drug_Concentration_High;
   91     uint8_T Drug_Concentration_Low;
   92     uint8_T VTBI_High;
   93     uint8_T VTBI_Low;
   94     uint8_T Interval_Patient_Bolus;
   95     uint8_T Number_Max_Patient_Bolus;
   96     uint8_T Flow_Rate_KVO;
   97     uint8_T Flow_Rate_High;
   98     uint8_T Flow_Rate_Low;
   99   } Drug_Database_Inputs;
  100   
  101   #endif
  102   
  103   #ifndef _DEFINED_TYPEDEF_FOR_Device_Sensor_Inputs_
  104   #define _DEFINED_TYPEDEF_FOR_Device_Sensor_Inputs_
  105   
  106   typedef struct {
  107     uint8_T Flow_Rate;
  108     boolean_T Flow_Rate_Not_Stable;
  109     boolean_T Air_In_Line;
  110     boolean_T Occlusion;
  111     boolean_T Door_Open;
  112     boolean_T Temp;
  113     boolean_T Air_Pressure;
  114     boolean_T Humidity;
  115     boolean_T Battery_Depleted;
  116     boolean_T Battery_Low;
  117     boolean_T Battery_Unable_To_Charge;
  118     boolean_T Supply_Voltage;
  119     boolean_T CPU_In_Error;
  120     boolean_T RTC_In_Error;
  121     boolean_T Watchdog_Interrupted;
  122     boolean_T Memory_Corrupted;
  123     boolean_T Pump_Too_Hot;
  124     boolean_T Pump_Overheated;
  125     boolean_T Pump_Primed;
  126     boolean_T Post_Successful;
  127   } Device_Sensor_Inputs;
  128   
  129   #endif
  130   
  131   #ifndef _DEFINED_TYPEDEF_FOR_Device_Configuration_Inputs_
  132   #define _DEFINED_TYPEDEF_FOR_Device_Configuration_Inputs_
  133   
  134   typedef struct {
  135     uint8_T Audio_Enable_Duration;
  136     uint8_T Audio_Level;
  137     uint8_T Config_Warning_Duration;
  138     uint8_T Empty_Reservoir;
  139     uint8_T Low_Reservoir;
  140     uint8_T Max_Config_Duration;
  141     uint8_T Max_Duration_Over_Infusion;
  142     uint8_T Max_Duration_Under_Infusion;
  143     uint8_T Max_Paused_Duration;
  144     uint8_T Max_Idle_Duration;
  145     uint8_T Tolerance_Max;
  146     uint8_T Tolerance_Min;
  147     uint8_T Log_Interval;
  148     uint8_T System_Test_Interval;
  149     uint8_T Max_Display_Duration;
  150     uint8_T Max_Confirm_Stop_Duration;
  151   } Device_Configuration_Inputs;
  152   
  153   #endif
  154   
  155   #ifndef _DEFINED_TYPEDEF_FOR_System_Status_Outputs_
  156   #define _DEFINED_TYPEDEF_FOR_System_Status_Outputs_
  157   
  158   typedef struct {
  159     boolean_T Reservoir_Empty;
  160     uint8_T Reservoir_Volume;
  161     uint8_T Volume_Infused;
  162     uint8_T Log_Message_ID;
  163     boolean_T In_Therapy;
  164   } System_Status_Outputs;
  165   
  166   #endif
  167   
  168   #ifndef _DEFINED_TYPEDEF_FOR_Config_Outputs_
  169   #define _DEFINED_TYPEDEF_FOR_Config_Outputs_
  170   
  171   typedef struct {
  172     uint8_T Patient_ID;
  173     uint8_T Drug_Name;
  174     uint8_T Drug_Concentration;
  175     uint8_T Infusion_Total_Duration;
  176     uint8_T VTBI_Total;
  177     uint8_T Flow_Rate_Basal;
  178     uint8_T Flow_Rate_Intermittent_Bolus;
  179     uint8_T Duration_Intermittent_Bolus;
  180     uint8_T Interval_Intermittent_Bolus;
  181     uint8_T Flow_Rate_Patient_Bolus;
  182     uint8_T Duration_Patient_Bolus;
  183     uint8_T Lockout_Period_Patient_Bolus;
  184     uint8_T Max_Number_of_Patient_Bolus;
  185     uint8_T Flow_Rate_KVO;
  186     uint8_T Entered_Reservoir_Volume;
  187     uint8_T Reservoir_Volume;
  188     uint8_T Configured;
  189     uint8_T Error_Message_ID;
  190     boolean_T Request_Config_Type;
  191     boolean_T Request_Confirm_Infusion_Initiate;
  192     boolean_T Request_Patient_Drug_Info;
  193     boolean_T Request_Infusion_Info;
  194     uint8_T Log_Message_ID;
  195     uint8_T Config_Timer;
  196     uint8_T Config_Mode;
  197   } Config_Outputs;
  198   
  199   #endif
  200   
  201   #ifndef _DEFINED_TYPEDEF_FOR_Alarm_Outputs_
  202   #define _DEFINED_TYPEDEF_FOR_Alarm_Outputs_
  203   
  204   typedef struct {
  205     uint8_T Is_Audio_Disabled;
  206     uint8_T Notification_Message;
  207     uint8_T Audio_Notification_Command;
  208     uint8_T Highest_Level_Alarm;
  209     uint8_T Log_Message_ID;
  210   } Alarm_Outputs;
  211   
  212   #endif
  213   
  214   /* Forward declaration for rtModel */
  215   typedef struct tag_RTM_ALARM_Functional_T RT_MODEL_ALARM_Functional_T;
  216   
  217   #endif                                 /* RTW_HEADER_ALARM_Functional_types_h_ */
  218