software:firmware
MakAir Firmware
serial_control.h
Go to the documentation of this file.
1 
8 #pragma once
9 
11 #define DISABLE_RPI_WATCHDOG 43690u
12 
17  Heartbeat = 0,
28  PEEP = 3,
47  TiMin = 12,
49  TiMax = 13,
85  Locale = 27,
93  EolConfirm = 31,
94 };
95 
101 void serialControlLoop();
void serialControlLoop()
Parse input and handle changes of settings.
ControlSetting
Available settings in the control protocol.
@ PatientHeight
Patient's height in centimeters.
@ Heartbeat
Heartbeat used for the RPi watchdog feature (value is ignored except for the special value DISABLE_RP...
@ CyclesPerMinute
Number of cycles per minute (value bounds must be between 5 and 35)
@ TiMin
Minimum duration of inhalation in ms (value bounds must be between 100 and 3000)
@ HighInspiratoryMinuteVolumeAlarmThreshold
Threshold for high inspiratory minute volume alarm in L/min (value bounds must be between 10 and 40)
@ RespirationEnabled
State of the respiration (value must be 1 if enabled and 0 if disabled)
@ ExpiratoryTriggerFlow
Expiratory trigger flow in percent.
@ LowTidalVolumeAlarmThreshold
Threshold for low tidal volume in mL (value bounds must be between 0 and 1000)
@ TriggerEnabled
State of the trigger (value must be 1 if enabled and 0 if disabled)
@ PatientGender
Patient's gender (0 = male, 1 = female)
@ EolConfirm
Confirm end-of-line test step (value bounds must be between 0 and 0)
@ HighRespiratoryRateAlarmThreshold
Threshold for high respiratory rate alarm in cycle per minute (value bounds must be between 15 and 35...
@ LowExpiratoryMinuteVolumeAlarmThreshold
Threshold for low expiratory minute volume alarm in L/min (value bounds must be between 0 and 20)
@ LowInspiratoryMinuteVolumeAlarmThreshold
Threshold for low inspiratory minute volume alarm in L/min (value bounds must be between 0 and 20)
@ TargetTidalVolume
Target tidal volume in mL (value bounds must be between 50 and 2000)
@ LeakAlarmThreshold
Threshold for leak alarm in cL/min (value bounds must be between 0 and 10000)
@ InspiratoryDuration
Duration of inspiration in ms (value bounds must be between 200 and 3000)
@ HighTidalVolumeAlarmThreshold
Threshold for high tidal volume in mL (value bounds must be between 50 and 2000)
@ TargetInspiratoryFlow
Target flow during inspiration in L/min (value bounds must be between 5 and 80)
@ HighExpiratoryMinuteVolumeAlarmThreshold
Threshold for high expiratory minute volume alarm in L/min (value bounds must be between 10 and 40)
@ InspiratoryTriggerFlow
Inspiratory trigger flow in percent.
@ LowRespiratoryRateAlarmThreshold
Threshold for low respiratory rate alarm in cycle per minute (value bounds must be between 5 and 25)
@ Locale
Language of the system; this should be two letters (see ISO 639-1) in ASCII representation as two u8.
@ ExpiratoryTerm
Expiration term in the "Inspiration/Expiration" ratio given that Inspiration = 10 (value bounds must ...
@ PlateauPressure
Plateau pressure in mmH2O (value bounds must be between 100 and 400)
@ TiMax
Maximum duration of inhalation in ms (value bounds must be between 200 and 5000)
@ TriggerOffset
Trigger offset in mmH2O (value bounds must be between 0 and 100)
@ PEEP
PEEP in mmH2O (value bounds must be between 0 and 300)
@ AlarmSnooze
Alarm snooze (value must be 1 to snooze and 0 to unsnooze)
@ VentilationMode
Ventilation mode, must be one of the following:
@ PeakPressureAlarmThreshold
Threshold for peak pressure alarm in mmH2O (value bounds must be between 50 and 700)
@ PlateauDuration
Duration in ms of closing both valves to effectively measure plateau pressure in volume control modes...