/****************************************************************************** * 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