diff Discovery/Inc/tStructure.h @ 1027:158100a84ebd GasConsumption

New profile feature: In the past the OSTC provide just one instance for settings. If for example a diver switched from OC to CCR configuration several settings had to be modified. To improve this and to be more flexible in adapting the OSTC to differend dive scenarions the usage of up to 4 profiles has beem introduced. The profiles are copies of the common settings but stored in a separate, previously not used, flash section => no impact to existings settings handling. For access to the profiles the existing setting flash functions are reused. To enable this a parameter war introduced which defines the target of the operation (common settings or profiles).
author Ideenmodellierer
date Sun, 07 Sep 2025 19:03:44 +0200
parents 5924a2d1d3ba
children 2af07aa38531
line wrap: on
line diff
--- a/Discovery/Inc/tStructure.h	Sun Sep 07 18:55:45 2025 +0200
+++ b/Discovery/Inc/tStructure.h	Sun Sep 07 19:03:44 2025 +0200
@@ -313,34 +313,44 @@
 #define StMSYS1_GNSSDT  _MB(2,8,1,5,0)
 #define StMSYS1_ZONE	_MB(2,8,1,6,0)
 
-#define StMSYS2_English	_MB(2,8,2,1,0)
-#define StMSYS2_German	_MB(2,8,2,2,0)
-#define StMSYS2_French	_MB(2,8,2,3,0)
-#define StMSYS2_Italian	_MB(2,8,2,4,0)
-#define StMSYS2_Espanol	_MB(2,8,2,5,0)
+#define StMSYS_Profile		_MB(2,8,2,0,0)
+#define StMSYS_ProfileA 	_MB(2,8,2,1,0)
+#define StMSYS_ProfileB 	_MB(2,8,2,2,0)
+#define StMSYS_ProfileC 	_MB(2,8,2,3,0)
+#define StMSYS_ProfileD 	_MB(2,8,2,4,0)
 
-#define StMSYS3_Units	_MB(2,8,3,1,0)
-#define StMSYS3_Colors	_MB(2,8,3,2,0)
-#define StMSYS3_Debug	_MB(2,8,3,3,0)
+#define StMSYS2_English	_MB(2,8,3,1,0)
+#define StMSYS2_German	_MB(2,8,3,2,0)
+#define StMSYS2_French	_MB(2,8,3,3,0)
+#define StMSYS2_Italian	_MB(2,8,3,4,0)
+#define StMSYS2_Espanol	_MB(2,8,3,5,0)
 
-#define StMSYS4_Info	_MB(2,8,4,1,0)
+#define StMSYS3_Units	_MB(2,8,4,1,0)
+#define StMSYS3_Colors	_MB(2,8,4,2,0)
+#ifdef HAVE_DEBUG_VIEW
+#define StMSYS3_Debug	_MB(2,8,4,3,0)
+#endif
 
-#define StMSYS5_Exit			_MB(2,8,5,1,0)
-#define StMSYS5_LogbookOffset	_MB(2,8,5,7,0)
-#define StMSYS5_ResetAll		_MB(2,8,5,2,0)
-#define StMSYS5_ResetDeco		_MB(2,8,5,3,0)
-#define StMSYS5_Reboot			_MB(2,8,5,4,0)
-#define StMSYS5_Maintenance		_MB(2,8,5,5,0)
-#define StMSYS5_ResetLogbook	_MB(2,8,5,6,0)
-#define StMSYS5_SetBattCharge	_MB(2,8,5,7,0)
-#define StMSYS5_RebootRTE		_MB(2,8,5,8,0)
-#define StMSYS5_RebootMainCPU	_MB(2,8,5,9,0)
-#define StMSYS5_ScreenTest		_MB(2,8,5,10,0)
-#define StMSYS5_SetFactoryBC	_MB(2,8,5,11,0)
-#define StMSYS5_ResetBluetooth	_MB(2,8,5,12,0)
-#define StMSYS5_SetSampleIndx   _MB(2,8,5,13,0)
-#define StMSYS5_AdjustSurfPres  _MB(2,8,5,14,0)
-#define StMSYS5_FlashBoot		_MB(2,8,5,15,0)
+ #define StMSYS4_Info	_MB(2,8,5,1,0)
+
+#define StMSYS5_Exit			_MB(2,8,6,1,0)
+#define StMSYS5_LogbookOffset	_MB(2,8,6,7,0)
+#define StMSYS5_ResetAll		_MB(2,8,6,2,0)
+#define StMSYS5_ResetDeco		_MB(2,8,6,3,0)
+#define StMSYS5_Reboot			_MB(2,8,6,4,0)
+#define StMSYS5_Maintenance		_MB(2,8,6,5,0)
+#define StMSYS5_ResetLogbook	_MB(2,8,6,6,0)
+#define StMSYS5_SetBattCharge	_MB(2,8,6,7,0)
+#define StMSYS5_RebootRTE		_MB(2,8,6,8,0)
+#define StMSYS5_RebootMainCPU	_MB(2,8,6,9,0)
+#define StMSYS5_ScreenTest		_MB(2,8,6,10,0)
+#define StMSYS5_SetFactoryBC	_MB(2,8,6,11,0)
+#define StMSYS5_ResetBluetooth	_MB(2,8,6,12,0)
+#define StMSYS5_SetSampleIndx   _MB(2,8,6,13,0)
+#define StMSYS5_AdjustSurfPres  _MB(2,8,6,14,0)
+#define StMSYS5_FlashBoot		_MB(2,8,6,15,0)
+
+
 
 #define StMSYS_Custom0			_MB(2,8,1,0,0)
 #define StMSYS_Custom1			_MB(2,8,2,0,0)