diff Discovery/Inc/base.h @ 740:5078da3845c0

Added button lock after wakeup in surface mode: During setup of diveequipment the OSTC4 is sometimes operated unintended (e.g. while equipping the jaket). To avoid this it is now possible to activate a button lock in the button lock sensitivity menu. The OSTC4 will then wakeup as usuall but if the diver wants to oerate the menus he has to press the buttons in a certain order. The button to be pressed is indicated by a blue bar. The button lock is deactivated in dive mode.
author Ideenmodellierer
date Thu, 02 Feb 2023 17:35:38 +0100
parents 916998f90e39
children 45b8f3c2acce
line wrap: on
line diff
--- a/Discovery/Inc/base.h	Thu Feb 02 17:26:54 2023 +0100
+++ b/Discovery/Inc/base.h	Thu Feb 02 17:35:38 2023 +0100
@@ -91,6 +91,16 @@
 	ACTION_END
 } SAction;
 
+typedef enum
+{
+	LOCK_OFF = 0,
+	LOCK_FIRST_PRESS,
+	LOCK_1,
+	LOCK_2,
+	LOCK_3,
+	LOCK_UNLOCKED
+} SButtonLock;
+
 /* Exported macro ------------------------------------------------------------*/
 /* Exported functions ------------------------------------------------------- */
 
@@ -110,6 +120,7 @@
 uint8_t font_update_required(void);
 void set_Backlight_Boost(uint8_t level);
 void StoreButtonAction(uint8_t action);
+SButtonLock get_ButtonLock(void);
 
 #endif /* BASE_H */