File: SYS_STATS_Functional_types.h

    1   /*
    2    * SYS_STATS_Functional_types.h
    3    *
    4    * Code generation for model "SYS_STATS_Functional".
    5    *
    6    * Model version              : 1.1404
    7    * Simulink Coder version : 8.4 (R2013a) 13-Feb-2013
    8    * C source code generated on : Thu Sep 12 09:50:15 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_SYS_STATS_Functional_types_h_
   17   #define RTW_HEADER_SYS_STATS_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_Device_Sensor_Inputs_
   44   #define _DEFINED_TYPEDEF_FOR_Device_Sensor_Inputs_
   45   
   46   typedef struct {
   47     uint8_T Flow_Rate;
   48     boolean_T Flow_Rate_Not_Stable;
   49     boolean_T Air_In_Line;
   50     boolean_T Occlusion;
   51     boolean_T Door_Open;
   52     boolean_T Temp;
   53     boolean_T Air_Pressure;
   54     boolean_T Humidity;
   55     boolean_T Battery_Depleted;
   56     boolean_T Battery_Low;
   57     boolean_T Battery_Unable_To_Charge;
   58     boolean_T Supply_Voltage;
   59     boolean_T CPU_In_Error;
   60     boolean_T RTC_In_Error;
   61     boolean_T Watchdog_Interrupted;
   62     boolean_T Memory_Corrupted;
   63     boolean_T Pump_Too_Hot;
   64     boolean_T Pump_Overheated;
   65     boolean_T Pump_Primed;
   66     boolean_T Post_Successful;
   67   } Device_Sensor_Inputs;
   68   
   69   #endif
   70   
   71   #ifndef _DEFINED_TYPEDEF_FOR_Device_Configuration_Inputs_
   72   #define _DEFINED_TYPEDEF_FOR_Device_Configuration_Inputs_
   73   
   74   typedef struct {
   75     uint8_T Audio_Enable_Duration;
   76     uint8_T Audio_Level;
   77     uint8_T Config_Warning_Duration;
   78     uint8_T Empty_Reservoir;
   79     uint8_T Low_Reservoir;
   80     uint8_T Max_Config_Duration;
   81     uint8_T Max_Duration_Over_Infusion;
   82     uint8_T Max_Duration_Under_Infusion;
   83     uint8_T Max_Paused_Duration;
   84     uint8_T Max_Idle_Duration;
   85     uint8_T Tolerance_Max;
   86     uint8_T Tolerance_Min;
   87     uint8_T Log_Interval;
   88     uint8_T System_Test_Interval;
   89     uint8_T Max_Display_Duration;
   90     uint8_T Max_Confirm_Stop_Duration;
   91   } Device_Configuration_Inputs;
   92   
   93   #endif
   94   
   95   #ifndef _DEFINED_TYPEDEF_FOR_Config_Outputs_
   96   #define _DEFINED_TYPEDEF_FOR_Config_Outputs_
   97   
   98   typedef struct {
   99     uint8_T Patient_ID;
  100     uint8_T Drug_Name;
  101     uint8_T Drug_Concentration;
  102     uint8_T Infusion_Total_Duration;
  103     uint8_T VTBI_Total;
  104     uint8_T Flow_Rate_Basal;
  105     uint8_T Flow_Rate_Intermittent_Bolus;
  106     uint8_T Duration_Intermittent_Bolus;
  107     uint8_T Interval_Intermittent_Bolus;
  108     uint8_T Flow_Rate_Patient_Bolus;
  109     uint8_T Duration_Patient_Bolus;
  110     uint8_T Lockout_Period_Patient_Bolus;
  111     uint8_T Max_Number_of_Patient_Bolus;
  112     uint8_T Flow_Rate_KVO;
  113     uint8_T Entered_Reservoir_Volume;
  114     uint8_T Reservoir_Volume;
  115     uint8_T Configured;
  116     uint8_T Error_Message_ID;
  117     boolean_T Request_Config_Type;
  118     boolean_T Request_Confirm_Infusion_Initiate;
  119     boolean_T Request_Patient_Drug_Info;
  120     boolean_T Request_Infusion_Info;
  121     uint8_T Log_Message_ID;
  122     uint8_T Config_Timer;
  123     uint8_T Config_Mode;
  124   } Config_Outputs;
  125   
  126   #endif
  127   
  128   #ifndef _DEFINED_TYPEDEF_FOR_System_Status_Outputs_
  129   #define _DEFINED_TYPEDEF_FOR_System_Status_Outputs_
  130   
  131   typedef struct {
  132     boolean_T Reservoir_Empty;
  133     uint8_T Reservoir_Volume;
  134     uint8_T Volume_Infused;
  135     uint8_T Log_Message_ID;
  136     boolean_T In_Therapy;
  137   } System_Status_Outputs;
  138   
  139   #endif
  140   
  141   /* Forward declaration for rtModel */
  142   typedef struct tag_RTM_SYS_STATS_Functional_T RT_MODEL_SYS_STATS_Functional_T;
  143   
  144   #endif                                 /* RTW_HEADER_SYS_STATS_Functional_types_h_ */
  145