Kabuki Starship / Mbed 2 deprecated GHVentilator

Dependencies:   mbed SickBayTek

Revision:
8:fa5cc1397510
Parent:
6:b2672da545f1
Child:
9:256989faeb3b
--- a/GHVentilator.h	Thu Apr 09 02:31:18 2020 +0000
+++ b/GHVentilator.h	Thu Apr 09 03:18:31 2020 +0000
@@ -47,7 +47,7 @@
   Ticker UpdateTicker;    //< The x times per second update ticker.
   
   /* Constructs a GHV with 1 channel. */
-  GHVentilator (int TicksPerSecond, int TicksCalibration,
+  GHVentilator (int TicksPerSecond, int TicksPEEP, int TicksCalibration,
                 I2C& Bus, char BusAddress,
                 float PressureHysteresis,
                 float HysteresisPatient,
@@ -55,7 +55,7 @@
                 GHVentilatorChannel* A);
       
   /* Constructs a GHV with 2 channels. */
-  GHVentilator (int TicksPerSecond, int TicksCalibration,
+  GHVentilator (int TicksPerSecond, int TicksPEEP, int TicksCalibration,
                 I2C& Bus, char BusAddress,
                 float HysteresisChamber,
                 float PressureHysteresis,
@@ -64,7 +64,7 @@
                 GHVentilatorChannel* B);
       
   /* Constructs a GHV with 3 channels. */
-  GHVentilator (int TicksPerSecond, int TicksCalibration,
+  GHVentilator (int TicksPerSecond, int TicksPEEP, int TicksCalibration,
                 I2C& Bus, char BusAddress,
                 float PressureHysteresis,
                 float HysteresisPatient,
@@ -74,7 +74,7 @@
                 GHVentilatorChannel* C);
       
   /* Constructs a GHV with 4 channels. */
-  GHVentilator (int TicksPerSecond, int TicksCalibration,
+  GHVentilator (int TicksPerSecond, int TicksCalibration, int TicksPEEP,
                 I2C& Bus, char BusAddress,
                 float PressureHysteresis,
                 float HysteresisPatient,
@@ -84,6 +84,9 @@
                 GHVentilatorChannel* C,
                 GHVentilatorChannel* D);
   
+  /* Sets the TicksPEEP given 1/64 second > NewTicksPEEP < 1 second. */
+  void TicksPEEPSet (int NewTicksPEEP);
+  
   /* Enters the Calibration State. */
   void StateCalibrateEnter ();