15 #include "../includes/keyboard.h"
18 #include <OneButton.h>
21 #include "../includes/activation.h"
22 #include "../includes/buzzer.h"
23 #include "../includes/calibration.h"
24 #include "../includes/config.h"
25 #include "../includes/debug.h"
26 #include "../includes/main_controller.h"
27 #include "../includes/parameters.h"
106 #define SM_DEBOUNCE 2u
107 #define SM_REPEAT 20u
108 #define SM_PERIOD 15u
224 #ifndef DISABLE_BUTTONS
ActivationController activationController
Instance of the activation controller.
AlarmController alarmController
Instance of the alarm controller.
bool Calibration_Started()
Check if calibration mode is started.
void Calibration_Restart()
Restart calibration process.
void onStopButton()
Callback to call each time the stop button is pushed.
void onStartButton()
Callback to call each time the start button is pushed.
void snooze()
Snooze alarm for 2 minutes.
void onPeakPressureIncrease()
Increase the desired peak pressure.
void onPeakPressureDecrease()
Decrease the desired peak pressure.
void onCycleIncrease()
Increase the desired number of cycles per minute.
void onPlateauPressureIncrease()
Increase the desired plateau pressure.
void onCycleDecrease()
Decrease the desired number of cycles per minute.
void onPeepPressureIncrease()
Increase the minimal PEEP desired.
void onPeepPressureDecrease()
Decrease the minimal PEEP desired.
void onPlateauPressureDecrease()
Decrease the desired plateau pressure.
void onStart()
Handler of the button to start.
uint16_t scanMatrixCounterC2R2
uint16_t scanMatrixCurrentColumn
void onCycleIncrease()
Handler of the button to increase the number of breathing cycles.
static OneButton buttonAlarmOff(PIN_BTN_ALARM_OFF, false, false)
void onAlarmOff()
Handler of the button to stop alarm.
uint16_t scanMatrixCounterC1R3
void onStop()
Handler of the button to stop.
void onPlateauPressureDecrease()
Handler of the button to decrease the plateau pressure.
void onPeepPressureIncrease()
Handler of the button to increase the PEP pressure.
uint16_t scanMatrixCounterC3R2
uint16_t scanMatrixCounterC3R3
void calibrateButtons()
Helper to calibrate analog values of buttons.
static OneButton buttonStart(PIN_BTN_START, false, false)
static OneButton buttonStop(PIN_BTN_STOP, false, false)
void initKeyboard()
Initialize keyboard abstraction.
uint16_t scanMatrixCounterC2R3
uint16_t scanMatrixCounterC1R2
void onCycleDecrease()
Handler of the button to decrease the number of breathing cycles.
uint16_t scanMatrixCounterC2R1
void onPeepPressureDecrease()
Handler of the button to decrease the PEP pressure.
void onPlateauPressureIncrease()
Handler of the button to increase the plateau pressure.
void onPeakPressureIncrease()
Handler of the button to increase the crete pressure.
void onPeakPressureDecrease()
Handler of the button to decrease the crete pressure.
uint16_t scanMatrixCounterC3R1
void keyboardLoop()
Handle button events.
uint16_t scanMatrixCounterC1R1
MainController mainController
#define PIN_BTN_ALARM_OFF