This commit is contained in:
2026-03-20 21:16:58 +08:00
parent 286ff98b8e
commit 90c3d919df
248 changed files with 94554 additions and 0 deletions

33
user/Compute/PipeFlowRate.h Executable file
View File

@@ -0,0 +1,33 @@
/********************************************************************************************************
** HY3106<30><36><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӳ<EFBFBD><D3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD>ļ<EFBFBD>
**
** Copyright (c) Siargo, Ltd. 2011
** All Rights Reserved.
**
**-------------------------------------------------------------------------------------------------------
********************************************************************************************************/
#ifndef __PipeFlowRate_h__
#define __PipeFlowRate_h__
//******************************************************************************
// for memory WIDTH
#define CALIB_DIAMETER_WIDTH 3
#define WORK_DIAMETER_WIDTH 3
#define PIPE_BASE_WIDTH 6
//******************************************************************************
// for memory CRC
#define CALIB_DIAMETER_CRC (CALIB_DIAMETER_WIDTH-1)
#define WORK_DIAMETER_CRC (WORK_DIAMETER_WIDTH-1)
//******************************************************************************
// for memory address
#define CALIB_DIAMETER PIPE_BASE
#define WORK_DIAMETER (PIPE_BASE + CALIB_DIAMETER_WIDTH)
//******************************************************************************
#define CALIB_DIAMETER_DEFAULT 100
#define WORK_DIAMETER_DEFAULT 100
//******************************************************************************
extern unsigned short calibDiameter, workDiameter;
//******************************************************************************
unsigned long int CorrectTubeFlowrate(unsigned long int correctFlowRate);
void PipeFlowRateComputeInit(void);
#endif