Created the watch settings persistency file containing the watch settings to save and retrieve

This commit is contained in:
Th3maz1ng 2023-01-06 19:32:42 +01:00
parent 59bf4c98bc
commit f53ec9b5db

View File

@ -0,0 +1,44 @@
#ifndef WATCH_SETTINGS_H
#define WATCH_SETTINGS_H
#include "wm_type_def.h"
#define HOUR_FORMAT(X) ((X) & 0x01)
#define DATE_FORMAT(X) (((X) & 0x0E) >> 1)
#define AUTOMATIC_TIME_AND_DATE(X) (((X) & 0x10) >> 4)
/* Time and Date Settings */
typedef struct TimeAndDate
{
uint32_t config;
} TimeAndDate_t;
/* Display Settings */
typedef struct Display
{
uint8_t brightness;
uint8_t sleep_timeout;
} Display_t;
/* Connectivity Settings */
typedef struct Connectivity
{
} Connectivity_t;
/* Language and UI Settings */
typedef struct LanguageAndUI
{
} LanguageAndUI_t;
/* Main setting structure */
typedef struct WatchSettings
{
TimeAndDate_t timeAndDate;
Display_t display;
Connectivity_t connectivity;
LanguageAndUI_t languageAndUI;
} WatchSettings_t;
#endif //WATCH_SETTINGS_H