#ifndef MODULE_LCM_CTRL_H_ #define MODULE_LCM_CTRL_H_ //------------------------------------------------------------------------------ #define DEFAULT_AC_INDEX (2) #define TIME_MAX_SEC (2592000) // 一個月,秒數 #define POWER_MAX_KW (5000) #define ENERGY_MAX_KWH (5000) #define CMD_TITLE_1 (0x5A) #define CMD_TITLE_2 (0xA5) #define CMD_READ (0x80) #define CMD_WRITE (0x81) #define CMD_MULTI_WRITE (0x82) #define CMD_MULTI_READ (0x83) #define CMD_BACKLIGHT (0x01) #define CMD_REGISTER (0x03) //#define NOODOE_QR_CODE_URL "https://ev-alpha-test.noodoe.com/station?id=" ////For Audi #define NOODOE_QR_CODE_URL "https://ev.noodoe.com/station?id=" ////For Audi #define LEFT_GUN_LOCAL_NAME "1A" #define RIGHT_GUN_LOCAL_NAME "1B" // Page #define __VIEW_ALL_IDLE_ 0x0001 #define __VIEW_LEFT_CHARGE_ 0x0002 #define __VIEW_RIGHT_CHARGE_ 0x0003 #define __VIEW_ALL_CHARGE_ 0x0004 #define __START_SCAN_ 0x0005 #define __START_AUTHORIZE_ 0x0006 #define __START_AUTHORIZE_FAIL_ 0x0007 #define __WAIT_PLUGIN_ 0x0008 #define __LINKING_ERROR_ 0x0009 #define __PRE_CHARGE_ 0x000A #define __DETAIL_VIEW_ 0x000B #define __STOP_SCAN_RFID_ 0x000C #define __STOP_SCAN_APP_ 0x000D #define __STOP_AUTHORIZE_ 0x000E #define __STOP_RFID_FAIL_ 0x000F #define __WAIT_PLUGOUT_ 0x0010 #define __SUMMARY_ 0x0011 #define __EMERGENCY_BUTTON_ 0x0012 #define __MAINTAIN_PAGE_ 0x0013 #define __ERROR_PAGE_ 0x0014 #define __SHOW_CABIENT_VERSION 0x0015 #define __SHOW_DISPENSER_VERASION 0x0016 // ICON Map Address #define _LeftGun_type_pic_U 0x0001 #define _LeftGun_type_pic_L 0x0003 #define _LeftGun_type_name 0x0005 #define _LeftGun_type_speed 0x0007 #define _LeftGun_Soc_Digits 0x0009 #define _LeftGun_Soc_Tens 0x000B #define _LeftGun_Soc_Hundreds 0x000D #define _RightGun_type_pic_U 0x0011 #define _RightGun_type_pic_L 0x0013 #define _RightGun_type_name 0x0015 #define _RightGun_type_speed 0x0017 #define _RightGun_Soc_Digits 0x0019 #define _RightGun_Soc_Tens 0x001B #define _RightGun_Soc_Hundreds 0x001D #define _Confirm_Gun_Left_symbol 0x0021 #define _Confirm_Gun_Right_symbol 0x0023 #define _ProgressBar_LEVEL 0x0025 #define _Percent_Number_Digits 0x0031 #define _Percent_Number_Tens 0x0033 #define _Percent_Number_Hundreds 0x0035 // String Map Address #define _LeftGun_location 0x0100 #define _LeftGun_info_power 0x0110 #define _LeftGun_info_time 0x0120 #define _LeftGun_info_cap 0x0130 #define _LeftGun_info_money 0x0140 #define _LeftGun_info_power_number 0x0150 #define _RightGun_location 0x0200 #define _RightGun_info_power 0x0210 #define _RightGun_info_time 0x0220 #define _RightGun_info_cap 0x0230 #define _RightGun_info_money 0x0240 #define _RightGun_info_power_number 0x0250 #define _Confirm_Gun_Left_name 0x0300 #define _Confirm_Gun_Right_name 0x0310 #define _Count_Down_Time 0x0320 #define _Detail_Power_Num 0x0330 #define _Detail_Time_Num 0x0340 #define _Detail_Cap_Num 0x0350 #define _Detail_Money_Num 0x0360 #define _Summary_total_money 0x0400 #define _Summary_Start_time_hr 0x0410 #define _Summary_Start_time_min 0x0420 #define _Summary_end_time_hr 0x0430 #define _Summary_end_time_min 0x0440 #define _Summary_duration_time 0x0450 #define _Summary_max_power 0x0460 #define _Summary_average_power 0x0470 #define _Summary_cap 0x0480 #define _Summary_cal_Total_money 0x0490 #define _Summary_cal_discount 0x04A0 #define _Summary_cal_Settlement 0x04B0 enum _ICON_LIST_ { _ICON_Empty, _ICON_CCS1_GUN_U = 1, _ICON_CCS1_GUN_L, _ICON_CCS2_GUN_U, _ICON_CCS2_GUN_L, _ICON_CCS1_Name, _ICON_CCS2_Name, _ICON_Speed, _ICON_High_Speed, _ICON_CCS1_Symbol, _ICON_CCS2_Symbol, _ICON_Power_Symbol, _ICON_Red_Num_0 = 31, _ICON_Red_Num_1, _ICON_Red_Num_2, _ICON_Red_Num_3, _ICON_Red_Num_4, _ICON_Red_Num_5, _ICON_Red_Num_6, _ICON_Red_Num_7, _ICON_Red_Num_8, _ICON_Red_Num_9, _ICON_Red_Percent, _ICON_White_Num_0, _ICON_White_Num_1, _ICON_White_Num_2, _ICON_White_Num_3, _ICON_White_Num_4, _ICON_White_Num_5, _ICON_White_Num_6, _ICON_White_Num_7, _ICON_White_Num_8, _ICON_White_Num_9, _ICON_White_Percent, _ICON_Card_Power, _ICON_Card_Time, _ICON_Card_Cap, _ICON_Card_Money, _ICON_ProgressBar_10 = 60, _ICON_ProgressBar_10_cantrary, _ICON_ProgressBar_20, _ICON_ProgressBar_20_cantrary, _ICON_ProgressBar_30, _ICON_ProgressBar_30_cantrary, _ICON_ProgressBar_40, _ICON_ProgressBar_40_cantrary, _ICON_ProgressBar_50, _ICON_ProgressBar_50_cantrary, _ICON_ProgressBar_60, _ICON_ProgressBar_60_cantrary, _ICON_ProgressBar_70, _ICON_ProgressBar_70_cantrary, _ICON_ProgressBar_80, _ICON_ProgressBar_80_cantrary, _ICON_ProgressBar_90, _ICON_ProgressBar_90_cantrary, _ICON_ProgressBar_100, }; /* Show Version */ #define _Version_Cabient_Name_Text 0x0500 #define _Version_Cabient_BootLoader_Text 0x0510 #define _Version_Cabient_Kernel_Text 0x0520 #define _Version_Cabient_CSU_Text 0x0530 #define _Version_Cabient_Priamry_Text 0x0540 #define _Version_Cabient_Relay0_Text 0x0550 #define _Version_Cabient_Relay1_Text 0x0560 #define _Version_Cabient_Fan_Text 0x0570 #define _Version_Cabient_IPAddr_Text 0x0580 #define _Version_Cabient_PSU_Prim1_Text 0x0590 #define _Version_Cabient_PSU_Prim2_Text 0x05A0 #define _Version_Cabient_PSU_Prim3_Text 0x05B0 #define _Version_Cabient_PSU_Prim4_Text 0x05C0 #define _Version_Cabient_PSU_Prim5_Text 0x05D0 #define _Version_Cabient_PSU_Prim6_Text 0x05E0 #define _Version_Cabient_PSU_Sec1_Text 0x05F0 #define _Version_Cabient_PSU_Sec2_Text 0x0600 #define _Version_Cabient_PSU_Sec3_Text 0x0610 #define _Version_Cabient_PSU_Sec4_Text 0x0620 #define _Version_Cabient_PSU_Sec5_Text 0x0630 #define _Version_Cabient_PSU_Sec6_Text 0x0640 #define _Version_Cabient_Model_value 0x0650 #define _Version_Cabient_BootLoader_value 0x0660 #define _Version_Cabient_Kernel_value 0x0670 #define _Version_Cabient_CSU_value 0x0680 #define _Version_Cabient_Priamry_value 0x0690 #define _Version_Cabient_Relay0_value 0x06A0 #define _Version_Cabient_Relay1_value 0x06B0 #define _Version_Cabient_Fan_value 0x06C0 #define _Version_Cabient_IPAddr_value 0x06D0 #define _Version_Cabient_PSU_Prim1_value 0x06E0 #define _Version_Cabient_PSU_Prim2_value 0x06F0 #define _Version_Cabient_PSU_Prim3_value 0x0700 #define _Version_Cabient_PSU_Prim4_value 0x0710 #define _Version_Cabient_PSU_Prim5_value 0x0720 #define _Version_Cabient_PSU_Prim6_value 0x0730 #define _Version_Cabient_PSU_Sec1_value 0x0740 #define _Version_Cabient_PSU_Sec2_value 0x0750 #define _Version_Cabient_PSU_Sec3_value 0x0760 #define _Version_Cabient_PSU_Sec4_value 0x0770 #define _Version_Cabient_PSU_Sec5_value 0x0780 #define _Version_Cabient_PSU_Sec6_value 0x0790 #define _Version_Dispenser_Name_Text 0x07A0 #define _Version_Dispenser_BootLoader_Text 0x07B0 #define _Version_Dispenser_Kernel_Text 0x07C0 #define _Version_Dispenser_CSU_Text 0x07D0 #define _Version_Dispenser_Relay_Text 0x07E0 #define _Version_Dispenser_Fan_Text 0x07F0 #define _Version_Dispenser_Priamry_Text 0x0800 #define _Version_Dispenser_LCM_Text 0x0810 #define _Version_Dispenser_LED_Text 0x0820 #define _Version_Dispenser_Connector0_Text 0x0830 #define _Version_Dispenser_Connector1_Text 0x0840 #define _Version_Dispenser_IPAddr_Text 0x0850 #define _Version_Dispenser_Model_value 0x0860 #define _Version_Dispenser_BootLoader_value 0x0870 #define _Version_Dispenser_Kernel_value 0x0880 #define _Version_Dispenser_CSU_value 0x0890 #define _Version_Dispenser_Relay_value 0x08A0 #define _Version_Dispenser_Fan_value 0x08B0 #define _Version_Dispenser_Priamry_value 0x08C0 #define _Version_Dispenser_LCM_value 0x08D0 #define _Version_Dispenser_LED_value 0x08E0 #define _Version_Dispenser_Connector0_value 0x08F0 #define _Version_Dispenser_Connector1_value 0x0900 #define _Version_Dispenser_IPAddr_value 0x0910 #endif //MODULE_LCM_CTRL_H_