141 lines
4.8 KiB
C
141 lines
4.8 KiB
C
|
||
#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 */
|
||
|
||
|
||
|