software:firmware
MakAir Firmware
ventilation_controller.h
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include "../includes/alarm_controller.h"
11 #include "../includes/parameters.h"
12 
14 // = 0 means that the method is not implemented in this class
16  public:
18  virtual void setup() = 0;
19 
21  virtual void initCycle() = 0;
22 
24  virtual void inhale() = 0;
25 
27  virtual void exhale() = 0;
28 
30  virtual void endCycle() = 0;
31 
33  virtual struct Alarms enabledAlarms() const = 0;
34 
35  private:
36 };
Abstract class for ventilation controllers.
virtual struct Alarms enabledAlarms() const =0
List of alarms that must be enabled for this mode.
virtual void endCycle()=0
End the current breathing cycle.
virtual void exhale()=0
Control the exhalation.
virtual void initCycle()=0
Begin a new breathing cycle.
virtual void inhale()=0
Control the inhalation.
virtual void setup()=0
Initialize controller.
List of alarms (named by their code)