#ifndef __MXC_METER_H__ #define __MXC_METER_H__ typedef void (*btn_event_func)(lv_obj_t *obj); #define LV_KEY_Q 113 #define LV_KEY_W 119 //liulin 2024.3.5 用于发电机项目切换各个界面 typedef enum _ENUM_CONTROL_WIN_ID_GTOR { GTOR_MAINUI_WIN_ID, GTOR_SUBUI_GTOR_WIN_ID, GTOR_SUBUI_ERROR_WIN_ID }ENUM_CONTROL_WIN_ID_GTOR; typedef enum _ENUM_CONTROL_WIN_ID { IDLE_CONTROL_WIN_ID, // 0, PAGE_MAINMENU_WIN_ID, // SUBMENU_SET_THEME, SUBMENU_SET_LIGHT, // SUBMENU_SET_BLUETOOTH, // 4 SUBMENU_SET_OTHER, SUBMENU_SET_INFORMATION, SUBMENU_SET_PRESSURE, // SUBMENU_SET_FAULT_CODE, //8 SUBMENU_THEME_SELECT, SUBMENU_THEME_BG, SUBMENU_OTHER_TIME, SUBMENU_OTHER_LANGUAGE, SUBMENU_OTHER_UINT, // 13 MOTO_WIN_ID_MAX, } ENUM_CONTROL_WIN_ID; typedef struct { uint8_t engine; //���������� uint8_t machine_oil; //���ͱ��� uint8_t abs; //abs������ uint8_t tcs; //tcsǣ����ϵͳ uint8_t fan; //���� uint8_t null; //�յ� }warning_t; typedef struct { uint16_t ucYear; uint8_t ucMonth; uint8_t ucDate; uint8_t ucHour; uint8_t ucMinute; uint8_t ucSecond; }stTime_type; typedef struct { uint8_t factory_reset; //�������� uint8_t language; //���� uint8_t display_uint; //��λ uint8_t theme; //��ǰ���� uint8_t theme_state; //����״̬ uint8_t light_value; //���� uint8_t bt_on_off; //���� uint8_t bt_state; //״̬ }save_info_t; typedef struct { uint8_t softwar_host; //���汾�� uint8_t softwar_order; //�ΰ汾�� uint8_t ui_page_id; //time stTime_type time; save_info_t save_info; uint8_t veer; //ת�� uint8_t veer_hint; //ת����ʾ uint8_t lamplight; //�ƹ� uint8_t power_on_self_test; //�����Լ� uint8_t light_perception_value; //������� uint8_t light; //�����light_valueֵ uint8_t return_demo; uint16_t velocity; //�ٶ� uint16_t veer_velocity; //ת�� uint8_t grade; //��λ uint8_t oil; //���� uint8_t temp; //�¶� double trip_mileage; //С������� uint32_t total_mileage; //�ܼ������ double voltage; //��ص�ѹ warning_t warning; //����ͼ�� uint16_t max_velocity; //���ʱ�� uint16_t verage_velocity; //ƽ��ʱ�� char uuid[32]; char bt_name[32]; uint32_t now_defect_code; //��ǰ������ uint32_t his_defect_code; //��ʷ������ uint8_t ttrb; //��������Ƿ��ȡ��ʱ��ı�־ uint8_t ttrb_time; //��ʩʱ������Ƿ���������ʱ��ı�־ uint8_t odo_reset; //С�������������Ƿ���������ʱ��ı�־ uint8_t demo_position; //�Ƿ���demoչʾ����ı�־ uint16_t plan; //�����ܽ��ȱ�־ uint16_t pace; //�����ֽ��ȱ�־ uint8_t upgrade; //�����ڴ濽����־ }daily_data_t; extern daily_data_t custom_data; daily_data_t *daily_get_UiData(void); ENUM_CONTROL_WIN_ID get_top_history_win(void); void Set_UI_page_id(ENUM_CONTROL_WIN_ID id); void system_date_init(void); void updateCurTime(); stTime_type * getCurrentTime(); daily_data_t* GetDailyData(void); char * GetCurTimeString(); #endif