forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

周巍
2024-04-11 91ef77c00ed797b1048c5187f416e351e646a009
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
 
/******************************************************************************
 * Copyright (C) 2014-2015 HangZhou SiZhu Co.,LTD.
 *
 *-----------------------------------------------------------------------------
 * File:                 pressure.h
 * Description:        head file of pressure.c used to output and display pressure  
 * Author:              Lishoujian (867693272@qq.com)
 * Date:                Jan 8, 2015
 *****************************************************************************/
 
/* ----------------------- Platform includes --------------------------------*/
#ifndef __pressure_H
#define __pressure_H    
#include "sys.h"
 
 
//85-500A-4R: span@1.5mA:100mV == 500Psi == 34.48Bar  =>2.9mv == 1bar
//85-300A-4R
 
#define    minvol               26      //10bar = 26mv(decide by the type of pressure sensor)
#define    op                   50          //magnification of sampling the voltage
#define        PRESSURE_ERROR_DATA                800
 
 
float get_pressure(void);
float Get_kb_pressure(float pre_vol);
#endif