diff Common/Inc/data_central.h @ 807:9e2ebfc72e8c

Zusammenf?hren
author heinrichsweikamp
date Sat, 26 Aug 2023 13:37:06 +0200
parents dd7ce655db26
children 2a8af51ab04d
line wrap: on
line diff
--- a/Common/Inc/data_central.h	Sat Aug 26 13:35:15 2023 +0200
+++ b/Common/Inc/data_central.h	Sat Aug 26 13:37:06 2023 +0200
@@ -360,6 +360,14 @@
 		CHARGER_lostConnection
 };
 
+typedef enum {
+    TIMER_STATE_OFF = 0,
+    TIMER_STATE_PRESTART,
+    TIMER_STATE_RUNNING,
+    TIMER_STATE_WAIT_FINISHED,
+    TIMER_STATE_FINISHED,
+} timerState_e;
+
 typedef struct
 {
 	SDiveSettings diveSettings;
@@ -390,6 +398,9 @@
 	uint8_t sensorErrorsRTE;
 
 	uint8_t lastKnownBatteryPercentage;
+
+    timerState_e timerState;
+    int timerStartedS;
 } 	SDiveState;
 
 
@@ -512,4 +523,6 @@
 void setCompassHeading(uint16_t heading);
 
 const SDecoinfo *getDecoInfo(void);
+
+void disableTimer(void);
 #endif // DATA_CENTRAL_H