#ifndef __UWater_LCD_APP_H #define __UWater_LCD_APP_H #include "sys_config.h" #include "type.h" #ifdef __cplusplus extern "C" { #endif #define A1 1 #define A2 2 #define A3 3 #define A4 4 #define A5 5 #define AB0 0 #define AU 3 #define A1B1 1 #define A1B2 2 #define A1B3 3 #define A1B4 4 #define A1B5 5 #define B1U 5 #define A2B1 1 #define A2B2 2 #define A2B3 3 #define A2B4 4 #define A2B5 5 #define A2B6 6 #define A2B7 7 #define A2B8 8 #define A2B9 9 #define A2B10 10 #define A2B11 11 #define A2B12 12 #define A2B13 13 #define A2B14 14 #define B2U 14 #define A3B1 1 #define A3B2 2 #define B3U 2 #define A4B1 1 #define A4B2 2 #define A4B3 3 #define A4B4 4 #define A4B5 5 #define A4B6 6 #define B4U 6 #define LCD_RF_TIME 10 //单位100ms #define LCD_UPDATE_TIME 1 //单位1s //#define LCD_RAM_TIME 10 //单位100ms //#define LCD_A1_TIME 10 //单位s //#define LCD_A23_TIME 60 //单位s #define LCD_A4_TIME 10800 //3*60*60 //单位s //#define LCD_VAL_TIME 1 //单位s //固化字符界面定义 //A1菜单 #define A1_ACCUMULATE_FLOW ( FUN_M3 )//累计流量(m3)(显示分辨率为0.001M3/H) #define A1_ACCUMULATE_FLOW_REVERSE ( FUN_REVERSE | FUN_M3 ) #define A1_TIME_FLOW ( FUN_M3 | FUN_FH | FUN_HOUR )//瞬时流量(显示分辨率为0.001M3/H) #define A1_ACCUMULATE_TIME ( FUN_HOUR ) //累计运行时间 //#define A1_UNITP ( FUN_YUAN )//单价 //#define A1_REMAIN (FUN_SY | FUN_YUAN) //剩余金额 //#define A1_PURCJASE (FUN_GR| FUN_YUAN) //购入 //#define A1_W_COMUNICATION (FUN_GPRSING) //无线中心频率 //A2菜单 //#define A1_ACCUMULATE_TIME ( FUN_M3)//累计流量(m3) //A4菜单共计 4屏不同的固化字符(检定模式) #define A4_ACCUMULATE_FLOW (FUN_TEST | FUN_M3)//累计流量(L)(检定时显示分辨率为0.0001M3/H显示单位改为L,即0.01L) #define A4_TIME_FLOW (FUN_TEST | FUN_FH | FUN_M3 | FUN_HOUR)//瞬时流量(m3/h)(分辨率为0.0001M3/H) #define A4_TOF_TIME (FUN_TEST | FUN_HOUR )//TOF时间差(分辨率为1h) #define A4_SINGLE_TIME (FUN_TEST | FUN_HOUR )//单程时间up(分辨率为1h) //#define A4_Pressure (FUN_TEST | FUN_PASCAL)//压力 #define A4_Tem (FUN_TEST | FUN_TEMPERATURE)//温度 #define A4_ACCUMULATE_FLOW_NOTEST (FUN_M3)//累计流量(L)(检定时显示分辨率为0.0001M3/H显示单位改为L,即0.01L) #define A4_TIME_FLOW_NOTEST (FUN_FH | FUN_M3 | FUN_HOUR)//瞬时流量(m3/h)(分辨率为0.0001M3/H) #define A4_TOF_TIME_NOTEST (FUN_HOUR )//TOF时间差(分辨率为1h) #define A4_SINGLE_TIME_NOTEST (FUN_HOUR )//单程时间up(分辨率为1h) //#define A4_Pressure_NOTEST (FUN_PASCAL)//压力 #define A4_Tem_NOTEST (FUN_TEMPERATURE)//温度 //检定状态 共分四种状态 /***************************************************/ //#define ACCUMULATE_FLOW 0x00 //#define TIME_FLOW 0x01 //#define TOF_TIME 0x02 //#define SINGLE_TIME 0x03 //#define LCD_Pressure 0x04 //#define LCD_Tem 0x05 /******************************************************/ //A1菜单共计0屏不同的固化字符(开发环境) #define A1_TOTAL_DISPLAY_4_D 1000//10方 #define A1_TOTAL_DISPLAY_3_D 100000 #define A1_TOTAL_DISPLAY_2_D 1000000 #define A1_TOTAL_DISPLAY_1_D 10000000 #define A1_TOTAL_DISPLAY_0_D 100000000 //接口查询输入参数 /***************************************************/ //#define GP22_APP_INS_FLOW 1//瞬时流量 //#define GP22_APP_TOTAL_FLOW 2//累计流量 /******************************************************/ typedef union //强制转化为浮点变量 { u32 gp22_u32; float gp22_float; } To_lcd_Float; //工作接口函数 extern u8 LcdIfSleepApp(void); extern u8 LcdCheckStateApp(void); extern u16 LcdCheckMeumApp(void); extern void LcdMachineApp(void); extern void LcdInitApp(void); #ifdef __cplusplus } #endif #endif /* __UWater_LCD_APP_H */