Created the watch settings persistency file containing the watch settings to save and retrieve
This commit is contained in:
parent
59bf4c98bc
commit
f53ec9b5db
44
src/W800 SDK v1.00.08/app/persistency/watch_settings.h
Normal file
44
src/W800 SDK v1.00.08/app/persistency/watch_settings.h
Normal 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
|
Loading…
Reference in New Issue
Block a user