diff options
Diffstat (limited to 'include/physical_presence.h')
-rw-r--r-- | include/physical_presence.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/physical_presence.h b/include/physical_presence.h index f2678993fc..0acbc65691 100644 --- a/include/physical_presence.h +++ b/include/physical_presence.h @@ -61,4 +61,16 @@ int physical_detect_press(void); */ void board_physical_presence_enable(int enable); +/** + * An API to report physical presence FSM state to an external entity. Of + * interest are states when key press is currently required or is expected + * soon. + */ +enum pp_fsm_state { + PP_OTHER = 0, + PP_AWAITING_PRESS = 1, + PP_BETWEEN_PRESSES = 2, +}; +enum pp_fsm_state physical_presense_fsm_state(void); + #endif /* __CROS_EC_PHYSICAL_PRESENCE_H */ |