forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

jinlicong
2024-06-03 71f8bdb7c63acc381d71105bb950411029f4250f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
 * File      : lcd_cfg_api.c
 * This file is part of Sizhu Ultrasonic Gas-Meter
 * COPYRIGHT (C) 2022,Sizhu Ultrasonic Gas-Meter Development Team
 *
 * Brief     : Header file of lcd_cfg_api.
 * http://www.ideacreated.com/
 *
 * Change Logs:
 * Date           Author            Notes
 * 2022-08-22     Sizhu_J1anG       the first version
 * 2022-08-30     Sizhu_Ye          targeted modification
 */
 
#ifndef _LCD_CFG_API_H_
#define _LCD_CFG_API_H_
 
#include "define_all.h" 
#include "power_manage.h"
#include "valve_control.h"
 
#define LCD_PAGE_SWITCH_TIME     3 * 1000 //3Ãë
 
#pragma pack(1)
 
typedef struct{
    __IO uint8_t switch_flag; //Çл»±ê־λ
    __IO uint32_t tick_start;//µÎ´ð¿ªÊ¼
}LCD_PAGE_SWITCH_PARA_T;
 
 
 
#pragma pack()
 
 
 
ErrorStatus_STM32 Lcd_ModeConversion_ShowErrTime(LCD_PAGE_SWITCH_PARA_T * lcd_page_switch_para_p);
 
void Lcd_Battery(PWR_VOL_T pwr_para_in);
void Lcd_ValveShow(VALVE_STATUS valve_state,uint16_t valve_close_ID,VALVE_LOCK_STATE_T valve_lock_status);
void Lcd_WrcShow(FlagStatus wrc_running_status,ErrorStatus last_wrc_result,uint8_t flag_4g,uint8_t signal_intensity);
void Lcd_WaringShow(uint8_t list_cnt,uint8_t sec_bcd);
void Lcd_BillingShow(uint8_t bill_mode,uint8_t ladder_now);
    
 
void Lcd_NormalPage_1(float instant_sc,double cumulate_sc);
void Lcd_NormalPage_2(float price,float balance,uint8_t price_mode);
void Lcd_NormalPage_3(float temp,double cumulate_sc);
void Lcd_NormalPage_4(float press,double cumulate_sc);
void Lcd_NormalPage_5(float instant_wc,double cumulate_wc);
 
void Lcd_CalibPage(float cal_instant_wc,double cumulate_wc);
 
void Lcd_ParaPage_MeterNum(uint8_t pMeterNum_bcd[]);
void Lcd_ParaPage_ThirdParty_MeterNum(uint8_t third_flag,uint16_t * pMeterNum);
void Lcd_Show_time(u8 year,u8 month,u8 day,u8 hour,u8 minute,u8 second);
void Lcd_ParaPage_IpPort(uint8_t * pIp,uint16_t * pPort);
void Lcd_ParaPage_ThirdParty_IpPort(uint8_t third_flag,uint8_t * pIp,uint16_t * pPort);
void Lcd_ParaPage_SoftVer(uint8_t * pSoftVer);
void Lcd_ParaPage_HardVer(uint8_t * pHardVer);
void Lcd_ParaPage_SoundVel(float sound_velocity);
 
void Lcd_SuccErrPage(ErrorStatus_STM32 result_flag_flag);
 
 
 
#endif