software:firmware
MakAir Firmware
pressure.h
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include <stdint.h>
11 
14  public:
17 
23  int32_t read();
24 
30  void setPressureSensorOffset(int32_t p_pressureSensorOffest) {
31  m_PressureSensorOffset = p_pressureSensorOffest;
32  }
33 
34  private:
37 };
38 
Offset aware reading class for the pressure sensor.
Definition: pressure.h:13
int32_t read()
Read the current pressure for the feedback control.
Definition: pressure.cpp:29
void setPressureSensorOffset(int32_t p_pressureSensorOffest)
Set the pressure sensor offset.
Definition: pressure.h:30
PressureSensor()
Default constructor.
Definition: pressure.cpp:27
int32_t m_PressureSensorOffset
Pressure sensor offset in mmH2O.
Definition: pressure.h:36
PressureSensor inspiratoryPressureSensor
Definition: pressure.cpp:23