case NV_SECTION_UI_ALARM:
return(NV_SECTION_LEN(NV_SECTION_UI_ALARM));
- case NV_SECTION_UI_VOICE_MSG:
- return(NV_SECTION_LEN(NV_SECTION_UI_VOICE_MSG));
+// case NV_SECTION_UI_VOICE_MSG:
+// return(NV_SECTION_LEN(NV_SECTION_UI_VOICE_MSG));
case NV_SECTION_UI_ENGINEER_MODE:
return(NV_SECTION_LEN(NV_SECTION_UI_ENGINEER_MODE));
- case NV_SECTION_UI_BLUETOOTH:
- return (NV_SECTION_LEN(NV_SECTION_UI_BLUETOOTH));
+// case NV_SECTION_UI_BLUETOOTH:
+// return (NV_SECTION_LEN(NV_SECTION_UI_BLUETOOTH));
- case NV_SECTION_UI_AUDIO_PLAYER:
- return (NV_SECTION_LEN(NV_SECTION_UI_AUDIO_PLAYER));
+// case NV_SECTION_UI_AUDIO_PLAYER:
+// return (NV_SECTION_LEN(NV_SECTION_UI_AUDIO_PLAYER));
case NV_SECTION_UI_DM:
return (NV_SECTION_LEN(NV_SECTION_UI_DM));
case NV_SECTION_UI_CALL_LOG:
return (NV_SECTION_LEN(NV_SECTION_UI_CALL_LOG));
- case NV_SECTION_UI_HR_BP_BO:
- return(NV_SECTION_LEN(NV_SECTION_UI_HR_BP_BO));
+// case NV_SECTION_UI_HR_BP_BO:
+// return(NV_SECTION_LEN(NV_SECTION_UI_HR_BP_BO));
case NV_SECTION_UI_PEDOMETER_STEP:
return(NV_SECTION_LEN(NV_SECTION_UI_PEDOMETER_STEP));
return (NV_SECTION_LEN(NV_SECTION_UI_CENTER_NUMBER));
case NV_SECTION_UI_VC_CONTACT:
return (NV_SECTION_LEN(NV_SECTION_UI_VC_CONTACT));
+ case NV_SECTION_UI_DO_NOT_DISTURB:
+ return (NV_SECTION_LEN(NV_SECTION_UI_DO_NOT_DISTURB));
//#endif
case NV_SECTION_UI_ALARM:
return (NV_SECTION_FILE_PATH(NV_SECTION_UI_ALARM));
- case NV_SECTION_UI_VOICE_MSG:
- return (NV_SECTION_FILE_PATH(NV_SECTION_UI_VOICE_MSG));
+// case NV_SECTION_UI_VOICE_MSG:
+// return (NV_SECTION_FILE_PATH(NV_SECTION_UI_VOICE_MSG));
case NV_SECTION_UI_ENGINEER_MODE:
return (NV_SECTION_FILE_PATH(NV_SECTION_UI_ENGINEER_MODE));
- case NV_SECTION_UI_BLUETOOTH:
- return (NV_SECTION_FILE_PATH(NV_SECTION_UI_BLUETOOTH));
+// case NV_SECTION_UI_BLUETOOTH:
+// return (NV_SECTION_FILE_PATH(NV_SECTION_UI_BLUETOOTH));
- case NV_SECTION_UI_AUDIO_PLAYER:
- return (NV_SECTION_FILE_PATH(NV_SECTION_UI_AUDIO_PLAYER));
+// case NV_SECTION_UI_AUDIO_PLAYER:
+// return (NV_SECTION_FILE_PATH(NV_SECTION_UI_AUDIO_PLAYER));
case NV_SECTION_UI_DM:
return (NV_SECTION_FILE_PATH(NV_SECTION_UI_DM));
case NV_SECTION_UI_CALL_LOG:
return (NV_SECTION_FILE_PATH(NV_SECTION_UI_CALL_LOG));
- case NV_SECTION_UI_HR_BP_BO:
- return (NV_SECTION_FILE_PATH(NV_SECTION_UI_HR_BP_BO));
+// case NV_SECTION_UI_HR_BP_BO:
+// return (NV_SECTION_FILE_PATH(NV_SECTION_UI_HR_BP_BO));
case NV_SECTION_UI_PEDOMETER_STEP:
return (NV_SECTION_FILE_PATH(NV_SECTION_UI_PEDOMETER_STEP));
return (NV_SECTION_FILE_PATH(NV_SECTION_UI_CENTER_NUMBER));
case NV_SECTION_UI_VC_CONTACT:
return (NV_SECTION_FILE_PATH(NV_SECTION_UI_VC_CONTACT));
+ case NV_SECTION_UI_DO_NOT_DISTURB:
+ return (NV_SECTION_FILE_PATH(NV_SECTION_UI_DO_NOT_DISTURB));
//#endif
nv_watch_sos_number_t * sos_number;
nv_watch_center_number_t * center_number;
nv_watch_vc_contact_t * vc_contact;
+ nv_watch_do_not_disturb_t * do_not_disturb;
//#endif
switch(SectionId) {
memset(alarm, 0, SectionLen);
TempData = (char *)alarm;
break;
- case NV_SECTION_UI_VOICE_MSG:
- voicemsg = lv_mem_alloc(SectionLen);
- memset(voicemsg, 0xFF, SectionLen);
- TempData = (char *)voicemsg;
- break;
+// case NV_SECTION_UI_VOICE_MSG:
+// voicemsg = lv_mem_alloc(SectionLen);
+// memset(voicemsg, 0xFF, SectionLen);
+// TempData = (char *)voicemsg;
+// break;
case NV_SECTION_UI_ENGINEER_MODE:
engineermode = lv_mem_alloc(SectionLen);
memset(engineermode, 0, SectionLen);
TempData = (char *)engineermode;
break;
- case NV_SECTION_UI_BLUETOOTH:
- bluetooth = lv_mem_alloc(SectionLen);
- memset(bluetooth, 0, SectionLen);
- TempData = (char *)bluetooth;
- break;
- case NV_SECTION_UI_AUDIO_PLAYER:
- audioplayer = lv_mem_alloc(SectionLen);
- memset(audioplayer, 0, SectionLen);
- TempData = (char *)audioplayer;
- break;
+// case NV_SECTION_UI_BLUETOOTH:
+// bluetooth = lv_mem_alloc(SectionLen);
+// memset(bluetooth, 0, SectionLen);
+// TempData = (char *)bluetooth;
+// break;
+// case NV_SECTION_UI_AUDIO_PLAYER:
+// audioplayer = lv_mem_alloc(SectionLen);
+// memset(audioplayer, 0, SectionLen);
+// TempData = (char *)audioplayer;
+// break;
case NV_SECTION_UI_DM:
dm = lv_mem_alloc(SectionLen);
memset(dm, 0, SectionLen);
memset(calllog, 0, SectionLen);
TempData = (char *)calllog;
break;
- case NV_SECTION_UI_HR_BP_BO:
- hr_bp_bo = lv_mem_alloc(SectionLen);
- memset(hr_bp_bo, 0, SectionLen);
- TempData = (char *)hr_bp_bo;
- break;
+// case NV_SECTION_UI_HR_BP_BO:
+// hr_bp_bo = lv_mem_alloc(SectionLen);
+// memset(hr_bp_bo, 0, SectionLen);
+// TempData = (char *)hr_bp_bo;
+// break;
case NV_SECTION_UI_PEDOMETER_STEP:
pedometer_step = lv_mem_alloc(SectionLen);
memset(pedometer_step, 0, SectionLen);
memset(vc_contact, 0x0, SectionLen);
TempData = (char *)vc_contact;
break;
+
+ case NV_SECTION_UI_DO_NOT_DISTURB:
+ do_not_disturb = lv_mem_alloc(SectionLen);
+ memset(do_not_disturb, 0x0, SectionLen);
+ TempData = (char *)do_not_disturb;
+ break;
+
//#endif
+
default:
TempData = NULL;
break;
//#ifdef __MMI_ZHSX_SUPPORT__
#define NV_WATCH_WECHAT_NUM_MAX (20)
-#define NV_WATCH_WECHAT_DATA_FILE_NAME_MAX (LV_FS_MAX_PATH_LENGTH / 2)
+#define NV_WATCH_WECHAT_DATA_FILE_NAME_MAX (64) // (LV_FS_MAX_PATH_LENGTH / 2)
typedef enum
{
} __packed nv_watch_vc_contact_t;
+//#ifdef __MMI_ZHSX_SUPPORT_DO_NOT_DISTURB__
+#define NV_WATCH_DO_NOT_DISTURB_ITEM_MAX (3)
+
+typedef struct
+{
+ uint8_t on_off; // 1: on, 0: off
+ uint8_t begin_hour; // [0, 23]
+ uint8_t begin_min; // [0, 59]
+ uint8_t end_hour; // [0, 23]
+ uint8_t end_min; // [0, 59]
+ uint8_t week_bitmap; /* Bit 7: reserved, Bit 0: Sunday, bit 1: Monday ... bit 6: Saturday */
+} __packed nv_watch_do_not_disturb_item_t;
+
+typedef struct
+{
+ nv_watch_do_not_disturb_item_t item_info[NV_WATCH_DO_NOT_DISTURB_ITEM_MAX];
+} __packed nv_watch_do_not_disturb_t;
+//#endif
+
+
+
//#endif
typedef struct
double altitude;
} __packed nv_watch_gps_aidpos_t;
-typedef struct
-{
- nv_watch_settings_t settings;
- nv_watch_phone_t phone;
- nv_watch_pedometer_t pedometer;
- nv_watch_launcher_t launcher;
- nv_watch_phonebook_t phonebook;
- nv_watch_factorymode_t factorymode;
- nv_watch_alarm_t alarm;
- nv_watch_voice_msg_t voicemsg;
- nv_watch_engineer_mode_t engineermode;
- nv_watch_bluetooth_t bluetooth;
- nv_watch_audio_player_t audioplayer;
- nv_watch_dm_t dm;
- nv_watch_call_log_t calllog;
- //Simware
- nv_watch_hr_bp_bo_t hr_and_bp;
- nv_watch_pedometer_step_t pedometer_step;
- nv_watch_agnss_t watch_agnss;
- nv_watch_sms_msg_t sms_msg;
- nv_watch_gps_aidpos_t gps_aidpos;
-} __packed nv_watch_stru_t;
+//typedef struct
+//{
+// nv_watch_settings_t settings;
+// nv_watch_phone_t phone;
+// nv_watch_pedometer_t pedometer;
+// nv_watch_launcher_t launcher;
+// nv_watch_phonebook_t phonebook;
+// nv_watch_factorymode_t factorymode;
+// nv_watch_alarm_t alarm;
+// nv_watch_voice_msg_t voicemsg;
+// nv_watch_engineer_mode_t engineermode;
+// nv_watch_bluetooth_t bluetooth;
+// nv_watch_audio_player_t audioplayer;
+// nv_watch_dm_t dm;
+// nv_watch_call_log_t calllog;
+// //Simware
+// nv_watch_hr_bp_bo_t hr_and_bp;
+// nv_watch_pedometer_step_t pedometer_step;
+// nv_watch_agnss_t watch_agnss;
+// nv_watch_sms_msg_t sms_msg;
+// nv_watch_gps_aidpos_t gps_aidpos;
+//} __packed nv_watch_stru_t;
enum
{
NV_SECTION_UI_PHONEBOOK, // nv_watch_phonebook_t
NV_SECTION_UI_FACTORYMODE, // nv_watch_factorymode_t
NV_SECTION_UI_ALARM, // nv_watch_alarm_t
- NV_SECTION_UI_VOICE_MSG, // nv_watch_voice_msg_t
+// NV_SECTION_UI_VOICE_MSG, // nv_watch_voice_msg_t
NV_SECTION_UI_ENGINEER_MODE, // nv_watch_engineer_mode_t
- NV_SECTION_UI_BLUETOOTH, // nv_watch_bluetooth_t
- NV_SECTION_UI_AUDIO_PLAYER, // nv_watch_audio_player_t
+// NV_SECTION_UI_BLUETOOTH, // nv_watch_bluetooth_t
+// NV_SECTION_UI_AUDIO_PLAYER, // nv_watch_audio_player_t
NV_SECTION_UI_DM, // nv_watch_dm_t
NV_SECTION_UI_CALL_LOG, // nv_watch_call_log_t
//Simware
- NV_SECTION_UI_HR_BP_BO, // nv_watch_hr_bp_bo_t
+// NV_SECTION_UI_HR_BP_BO, // nv_watch_hr_bp_bo_t
NV_SECTION_UI_PEDOMETER_STEP, // nv_watch_pedometer_step_t
NV_SECTION_UI_AGNSS, // nv_watch_agnss_t
NV_SECTION_UI_SMSMSG, // nv_watch_sms_msg_t
NV_SECTION_UI_SOS_NUMBER, // nv_watch_sos_number_t
NV_SECTION_UI_CENTER_NUMBER, // nv_watch_center_number_t
NV_SECTION_UI_VC_CONTACT, // nv_watch_vc_contact_t
+ //#ifdef __MMI_ZHSX_SUPPORT_DO_NOT_DISTURB__
+ NV_SECTION_UI_DO_NOT_DISTURB, // nv_watch_do_not_disturb_t
+ //#endif
+
//#endif
NV_SECTION_UI_MAX_NUM