aboutsummaryrefslogtreecommitdiffstats
path: root/src/policy_manager/zipc/dummy_stm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/policy_manager/zipc/dummy_stm.h')
-rw-r--r--src/policy_manager/zipc/dummy_stm.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/policy_manager/zipc/dummy_stm.h b/src/policy_manager/zipc/dummy_stm.h
index 38d3912..4c71ac7 100644
--- a/src/policy_manager/zipc/dummy_stm.h
+++ b/src/policy_manager/zipc/dummy_stm.h
@@ -28,11 +28,13 @@
#define STM_EVT_NO_DEACTIVATE 0x02
#define STM_EVT_NO_PARKING_BRAKE_OFF 0x03
#define STM_EVT_NO_PARKING_BRAKE_ON 0x04
-#define STM_EVT_NO_CAR_STOP 0x05
-#define STM_EVT_NO_CAR_RUN 0x06
-#define STM_EVT_NO_TIMER_EXPIRED 0x07
-#define STM_EVT_NO_LAMP_OFF 0x08
-#define STM_EVT_NO_LAMP_ON 0x09
+#define STM_EVT_NO_ACCEL_PEDAL_OFF 0x05
+#define STM_EVT_NO_ACCEL_PEDAL_ON 0x06
+#define STM_EVT_NO_CAR_STOP 0x07
+#define STM_EVT_NO_CAR_RUN 0x08
+#define STM_EVT_NO_TIMER_EXPIRED 0x09
+#define STM_EVT_NO_LAMP_OFF 0x0A
+#define STM_EVT_NO_LAMP_ON 0x0B
// Category number
#define STM_CTG_NO_HOMESCREEN 0x0100
@@ -59,9 +61,9 @@
#define STM_MSK_ARA_NO 0xFF0000
// Number of events, categories and areas
-#define STM_NUM_EVT 9
-#define STM_NUM_CTG 7
-#define STM_NUM_ARA 8
+#define STM_NUM_EVT 11
+#define STM_NUM_CTG 7
+#define STM_NUM_ARA 8
// Enum for state
enum stm_parking_brake_state_ {
@@ -69,6 +71,11 @@ enum stm_parking_brake_state_ {
gStmParkingBrakeStateNoOn
};
+enum stm_accel_pedal_state_ {
+ gStmAccelPedalStateNoOff = 0,
+ gStmAccelPedalStateNoOn
+};
+
enum stm_car_state_ {
gStmCarStateNoStop = 0,
gStmCarStateNoRun
@@ -105,6 +112,7 @@ extern const int gStmAreaNo[];
// String for state
extern const char* gStmParkingBrakeStateNo2Name[];
+extern const char* gStmAccelPedalStateNo2Name[];
extern const char* gStmCarStateNo2Name[];
extern const char* gStmLampStateNo2Name[];
extern const char* gStmLayoutNo2Name[];
@@ -124,6 +132,7 @@ typedef struct stm_layer_state_ {
typedef struct {
stm_base_state parking_brake;
+ stm_base_state accel_pedal;
stm_base_state car;
stm_base_state lamp;
stm_layer_state layer;