diff options
Diffstat (limited to 'src/policy_manager/zipc/dummy_stm.h')
-rw-r--r-- | src/policy_manager/zipc/dummy_stm.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/src/policy_manager/zipc/dummy_stm.h b/src/policy_manager/zipc/dummy_stm.h index 42c5148..bb99af7 100644 --- a/src/policy_manager/zipc/dummy_stm.h +++ b/src/policy_manager/zipc/dummy_stm.h @@ -26,13 +26,15 @@ // Event number #define STM_EVT_NO_ACTIVATE 0x01 #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_ACCEL_PEDAL_OFF 0x05 -#define STM_EVT_NO_ACCEL_PEDAL_ON 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_TRANS_GEAR_N 0x03 +#define STM_EVT_NO_TRANS_GEAR_NOT_N 0x04 +#define STM_EVT_NO_PARKING_BRAKE_OFF 0x05 +#define STM_EVT_NO_PARKING_BRAKE_ON 0x06 +#define STM_EVT_NO_ACCEL_PEDAL_OFF 0x07 +#define STM_EVT_NO_ACCEL_PEDAL_ON 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,11 +61,16 @@ #define STM_MSK_ARA_NO 0xFF0000 // Number of events, categories and areas -#define STM_NUM_EVT 9 +#define STM_NUM_EVT 11 #define STM_NUM_CTG 7 #define STM_NUM_ARA 8 // Enum for state +enum stm_trans_gear_state_ { + gStmTransGearStateNoN = 0, + gStmTransGearStateNoNotN +}; + enum stm_parking_brake_state_ { gStmParkingBrakeStateNoOff = 0, gStmParkingBrakeStateNoOn @@ -129,6 +136,7 @@ typedef struct stm_layer_state_ { } stm_layer_state; typedef struct { + stm_base_state trans_gear; stm_base_state parking_brake; stm_base_state accel_pedal; stm_base_state car; |