comparison 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
comparison
equal deleted inserted replaced
739:4a6bffaa38b3 740:5078da3845c0
89 ACTION_PITCH_POS, 89 ACTION_PITCH_POS,
90 ACTION_PITCH_NEG, 90 ACTION_PITCH_NEG,
91 ACTION_END 91 ACTION_END
92 } SAction; 92 } SAction;
93 93
94 typedef enum
95 {
96 LOCK_OFF = 0,
97 LOCK_FIRST_PRESS,
98 LOCK_1,
99 LOCK_2,
100 LOCK_3,
101 LOCK_UNLOCKED
102 } SButtonLock;
103
94 /* Exported macro ------------------------------------------------------------*/ 104 /* Exported macro ------------------------------------------------------------*/
95 /* Exported functions ------------------------------------------------------- */ 105 /* Exported functions ------------------------------------------------------- */
96 106
97 uint32_t get_globalState(void); 107 uint32_t get_globalState(void);
98 void set_globalState(uint32_t newID); 108 void set_globalState(uint32_t newID);
108 void set_globalState_Log_Page(uint8_t pageIsLine); 118 void set_globalState_Log_Page(uint8_t pageIsLine);
109 void set_returnFromComm(void); 119 void set_returnFromComm(void);
110 uint8_t font_update_required(void); 120 uint8_t font_update_required(void);
111 void set_Backlight_Boost(uint8_t level); 121 void set_Backlight_Boost(uint8_t level);
112 void StoreButtonAction(uint8_t action); 122 void StoreButtonAction(uint8_t action);
123 SButtonLock get_ButtonLock(void);
113 124
114 #endif /* BASE_H */ 125 #endif /* BASE_H */
115 126
116 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 127 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/