software:firmware
MakAir Firmware
pc_ac_controller.h
Go to the documentation of this file.
1
8
#pragma once
9
10
#include "../includes/parameters.h"
11
#include "../includes/pc_cmv_controller.h"
12
14
class
PC_AC_Controller
final :
public
PC_CMV_Controller
{
15
public
:
17
void
exhale
()
override
;
18
20
struct
Alarms
enabledAlarms
() const override {
21
struct
Alarms
a = {
RCM_SW_1
,
RCM_SW_2
,
RCM_SW_3
,
RCM_SW_4
,
RCM_SW_5
,
22
RCM_SW_6
,
RCM_SW_7
,
RCM_SW_8
,
RCM_SW_9
, 0u,
23
RCM_SW_11
,
RCM_SW_12
,
RCM_SW_14
,
RCM_SW_15
,
RCM_SW_16
,
24
RCM_SW_18
,
RCM_SW_19
,
RCM_SW_20
,
RCM_SW_21
,
RCM_SW_22
,
25
RCM_SW_23
};
26
return
a;
27
}
28
};
29
30
extern
PC_AC_Controller
pcAcController
;
RCM_SW_11
#define RCM_SW_11
Definition:
alarm_controller.h:23
RCM_SW_20
#define RCM_SW_20
Definition:
alarm_controller.h:39
RCM_SW_12
#define RCM_SW_12
Definition:
alarm_controller.h:24
RCM_SW_15
#define RCM_SW_15
Definition:
alarm_controller.h:26
RCM_SW_3
#define RCM_SW_3
Definition:
alarm_controller.h:22
RCM_SW_5
#define RCM_SW_5
Definition:
alarm_controller.h:32
RCM_SW_18
#define RCM_SW_18
Definition:
alarm_controller.h:28
RCM_SW_23
#define RCM_SW_23
Definition:
alarm_controller.h:42
RCM_SW_19
#define RCM_SW_19
Definition:
alarm_controller.h:29
RCM_SW_6
#define RCM_SW_6
Definition:
alarm_controller.h:33
RCM_SW_16
#define RCM_SW_16
Definition:
alarm_controller.h:27
RCM_SW_1
#define RCM_SW_1
Definition:
alarm_controller.h:20
RCM_SW_9
#define RCM_SW_9
Definition:
alarm_controller.h:36
RCM_SW_14
#define RCM_SW_14
Definition:
alarm_controller.h:25
RCM_SW_8
#define RCM_SW_8
Definition:
alarm_controller.h:35
RCM_SW_4
#define RCM_SW_4
Definition:
alarm_controller.h:31
RCM_SW_21
#define RCM_SW_21
Definition:
alarm_controller.h:40
RCM_SW_2
#define RCM_SW_2
Definition:
alarm_controller.h:21
RCM_SW_22
#define RCM_SW_22
Definition:
alarm_controller.h:41
RCM_SW_7
#define RCM_SW_7
Definition:
alarm_controller.h:34
PC_AC_Controller
Controller for the AC mode.
Definition:
pc_ac_controller.h:14
PC_AC_Controller::enabledAlarms
struct Alarms enabledAlarms() const override
List of alarms that must be enabled for this mode.
Definition:
pc_ac_controller.h:20
PC_AC_Controller::exhale
void exhale() override
Control the exhalation.
Definition:
pc_ac_controller.cpp:28
PC_CMV_Controller
Controller for the CMV mode.
Definition:
pc_cmv_controller.h:14
pcAcController
PC_AC_Controller pcAcController
Definition:
pc_ac_controller.cpp:24
Alarms
List of alarms (named by their code)
Definition:
alarm_controller.h:45
includes
pc_ac_controller.h
Generated by
1.9.1