File: INFUSION_MGR_Functional_types.h

    1   /*
    2    * INFUSION_MGR_Functional_types.h
    3    *
    4    * Code generation for model "INFUSION_MGR_Functional".
    5    *
    6    * Model version              : 1.1141
    7    * Simulink Coder version : 8.4 (R2013a) 13-Feb-2013
    8    * C source code generated on : Thu Sep 12 09:49:58 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_INFUSION_MGR_Functional_types_h_
   17   #define RTW_HEADER_INFUSION_MGR_Functional_types_h_
   18   #include "rtwtypes.h"
   19   #ifndef _DEFINED_TYPEDEF_FOR_Top_Level_Mode_Outputs_
   20   #define _DEFINED_TYPEDEF_FOR_Top_Level_Mode_Outputs_
   21   
   22   typedef struct {
   23     boolean_T System_On;
   24     boolean_T Request_Confirm_Stop;
   25     uint8_T Log_Message_ID;
   26   } Top_Level_Mode_Outputs;
   27   
   28   #endif
   29   
   30   #ifndef _DEFINED_TYPEDEF_FOR_Operator_Commands_
   31   #define _DEFINED_TYPEDEF_FOR_Operator_Commands_
   32   
   33   typedef struct {
   34     boolean_T System_Start;
   35     boolean_T System_Stop;
   36     boolean_T Infusion_Initiate;
   37     boolean_T Infusion_Inhibit;
   38     boolean_T Infusion_Cancel;
   39     boolean_T Data_Config;
   40     boolean_T Next;
   41     boolean_T Back;
   42     boolean_T Cancel;
   43     boolean_T Keyboard;
   44     uint8_T Disable_Audio;
   45     boolean_T Notification_Cancel;
   46     uint8_T Configuration_Type;
   47     boolean_T Confirm_Stop;
   48   } Operator_Commands;
   49   
   50   #endif
   51   
   52   #ifndef _DEFINED_TYPEDEF_FOR_Patient_Inputs_
   53   #define _DEFINED_TYPEDEF_FOR_Patient_Inputs_
   54   
   55   typedef struct {
   56     boolean_T Patient_Bolus_Request;
   57   } Patient_Inputs;
   58   
   59   #endif
   60   
   61   #ifndef _DEFINED_TYPEDEF_FOR_Config_Outputs_
   62   #define _DEFINED_TYPEDEF_FOR_Config_Outputs_
   63   
   64   typedef struct {
   65     uint8_T Patient_ID;
   66     uint8_T Drug_Name;
   67     uint8_T Drug_Concentration;
   68     uint8_T Infusion_Total_Duration;
   69     uint8_T VTBI_Total;
   70     uint8_T Flow_Rate_Basal;
   71     uint8_T Flow_Rate_Intermittent_Bolus;
   72     uint8_T Duration_Intermittent_Bolus;
   73     uint8_T Interval_Intermittent_Bolus;
   74     uint8_T Flow_Rate_Patient_Bolus;
   75     uint8_T Duration_Patient_Bolus;
   76     uint8_T Lockout_Period_Patient_Bolus;
   77     uint8_T Max_Number_of_Patient_Bolus;
   78     uint8_T Flow_Rate_KVO;
   79     uint8_T Entered_Reservoir_Volume;
   80     uint8_T Reservoir_Volume;
   81     uint8_T Configured;
   82     uint8_T Error_Message_ID;
   83     boolean_T Request_Config_Type;
   84     boolean_T Request_Confirm_Infusion_Initiate;
   85     boolean_T Request_Patient_Drug_Info;
   86     boolean_T Request_Infusion_Info;
   87     uint8_T Log_Message_ID;
   88     uint8_T Config_Timer;
   89     uint8_T Config_Mode;
   90   } Config_Outputs;
   91   
   92   #endif
   93   
   94   #ifndef _DEFINED_TYPEDEF_FOR_Alarm_Outputs_
   95   #define _DEFINED_TYPEDEF_FOR_Alarm_Outputs_
   96   
   97   typedef struct {
   98     uint8_T Is_Audio_Disabled;
   99     uint8_T Notification_Message;
  100     uint8_T Audio_Notification_Command;
  101     uint8_T Highest_Level_Alarm;
  102     uint8_T Log_Message_ID;
  103   } Alarm_Outputs;
  104   
  105   #endif
  106   
  107   #ifndef _DEFINED_TYPEDEF_FOR_System_Status_Outputs_
  108   #define _DEFINED_TYPEDEF_FOR_System_Status_Outputs_
  109   
  110   typedef struct {
  111     boolean_T Reservoir_Empty;
  112     uint8_T Reservoir_Volume;
  113     uint8_T Volume_Infused;
  114     uint8_T Log_Message_ID;
  115     boolean_T In_Therapy;
  116   } System_Status_Outputs;
  117   
  118   #endif
  119   
  120   #ifndef _DEFINED_TYPEDEF_FOR_Infusion_Manager_Outputs_
  121   #define _DEFINED_TYPEDEF_FOR_Infusion_Manager_Outputs_
  122   
  123   typedef struct {
  124     uint8_T Commanded_Flow_Rate;
  125     uint8_T Current_System_Mode;
  126     boolean_T New_Infusion;
  127     uint8_T Log_Message_ID;
  128     uint8_T Actual_Infusion_Duration;
  129   } Infusion_Manager_Outputs;
  130   
  131   #endif
  132   
  133   /* Forward declaration for rtModel */
  134   typedef struct tag_RTM_INFUSION_MGR_Functional_T
  135     RT_MODEL_INFUSION_MGR_Functional_T;
  136   
  137   #endif                                 /* RTW_HEADER_INFUSION_MGR_Functional_types_h_ */
  138