49 lines
905 B
C
49 lines
905 B
C
#ifndef WATCH_SETTINGS_H
|
|
#define WATCH_SETTINGS_H
|
|
|
|
#include "wm_type_def.h"
|
|
|
|
/* Time and Date Settings */
|
|
typedef struct TimeAndDate
|
|
{
|
|
uint32_t hour_format:1;
|
|
uint32_t date_format:2;
|
|
uint32_t automatic_time_and_date:1;
|
|
} TimeAndDate_t;
|
|
|
|
/* Display Settings */
|
|
typedef struct Display
|
|
{
|
|
uint8_t brightness;
|
|
uint8_t sleep_timeout;
|
|
uint8_t orientation:2;
|
|
} 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;
|
|
|
|
WatchSettings_t *persistency_get_settings(void);
|
|
|
|
bool persistency_save_settings(void);
|
|
|
|
bool persistency_load_settings(void);
|
|
|
|
#endif //WATCH_SETTINGS_H
|