diff Common/Inc/data_central.h @ 949:c6b858f2e025 Evo_2_23

GNSS UTC in Date-Time menu: The UTC time provided by the gnss module is not shown in the date-time settings menu. If a valid time signal is available then the OSTC RTC may be set to it by selecting the UTC menu entry. The time zone has to be selected manually. This is possible using a separate edit line.
author Ideenmodellierer
date Sun, 22 Dec 2024 21:19:21 +0100
parents aad1a6b9aaec
children
line wrap: on
line diff
--- a/Common/Inc/data_central.h	Sun Dec 22 21:15:05 2024 +0100
+++ b/Common/Inc/data_central.h	Sun Dec 22 21:19:21 2024 +0100
@@ -171,6 +171,17 @@
 	float fLon;
 }SGnssCoord;
 
+
+typedef struct
+{
+	uint8_t year;
+	uint8_t month;
+	uint8_t day;
+	uint8_t hour;
+	uint8_t min;
+	uint8_t sec;
+}SDateTime;
+
 typedef struct
 {
 	SGnssCoord coord;
@@ -178,6 +189,7 @@
 	uint8_t fixType;
 	uint8_t numSat;			/* number of available satellites */
 	uint8_t signalQual[4];	/* signal quality indicator for x sats */
+	SDateTime DateTime;		/* UTC time information */
 } SGnssInfo;
 
 typedef enum
@@ -577,6 +589,7 @@
 
 void convertStringOfDate_DDMMYY(char* pString, uint8_t strLen, uint8_t day, uint8_t month, uint8_t year);
 void getStringOfFormat_DDMMYY(char* pString, uint8_t strLen);
+void convertUTCToLocal(uint8_t utcHours, uint8_t utcMinutes, uint8_t* pLocalHours, uint8_t* pLocalMinutes);
 
 uint8_t calculateSlowExit(uint16_t* pCountDownSec, float* pExitDepthMeter, uint8_t* pColor);