forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

jinlicong
2024-04-18 de0f427ee76ab84d3afb22c92a2b065b1ce06d3e
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
#ifndef _CHECK_OUT_H_
#define _CHECK_OUT_H_
 
 
#include "define_all.h" 
 
 
#pragma pack(1)
 
typedef enum
{
    G6 = 1U,
    G10,
    G16,
    G25,
}CALIBER_TYPE;
 
 
 
typedef struct check_cal_inf
{
    
    uint8_t                device_type;
    uint8_t                pluse_flag;
    uint8_t                low_pluse_cnt;
    
    uint16_t            work_period;            //¹¤×÷ÖÜÆÚ
    
    
    double                check_fre;
    double                check_fre_low;
    double               check_fre_flow;
    
    double                workConInstantFlow;            
    double                stdConInstantFlow;            
    
    
    double                uvol;                // Á÷Á¿¼Æ¹¤¿öÁ÷Á¿
    double                cvol;                // Á÷Á¿¼Æ±ê¿öÁ÷Á¿
    
    double                 check_utotal;        // ¼ì²â¹¤¿öÀÛ¼ÆÁ÷Á¿
    double                 check_ctotal;        // ¼ì²â±ê¿öÀÛ¼ÆÁ÷Á¿
    
    double              low_pluse_out;    // 
}CHECK_CAL_INF;
 
#define            PERIOD                250
#define            LED_HIGH            PULSE_OUT_ON
#define            LED_LOW                PULSE_OUT_OFF
 
#pragma pack()
 
extern CHECK_CAL_INF     check_cal_g;
 
void  led_para_output_init(void);
uint16_t     led_pluse_out(double flow);
void     set_led_para_output_flag(uint8_t flag);
uint8_t    get_led_para_output_flag(void);
 
#endif