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

39
user/Compute/ATypeFlowRate.h Executable file
View File

@@ -0,0 +1,39 @@
/********************************************************************************************************
** 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 __ATypeFlowRate_h__
#define __ATypeFlowRate_h__
//******************************************************************************
// for memory WIDTH
#define P0_0_RH_WIDTH 3
#define P0_50_RH_WIDTH 3
#define RH_0_WIDTH 3
#define RH_50_WIDTH 3
#define ATYPE_FR_BASE_WIDTH 12
//******************************************************************************
// for memory CRC
#define P0_0_RH_CRC (P0_0_RH_WIDTH-1)
#define P0_50_RH_CRC (P0_50_RH_WIDTH-1)
#define RH_0_CRC (RH_0_WIDTH-1)
#define RH_50_CRC (RH_50_WIDTH-1)
//******************************************************************************
// for memory address
#define P0_0_RH ATYPE_FR_BASE
#define P0_50_RH (P0_0_RH + P0_0_RH_WIDTH)
#define RH_0 (P0_50_RH + P0_50_RH_WIDTH)
#define RH_50 (RH_0 + RH_0_WIDTH)
/******************************************************************************/
extern unsigned short P0RhLow, P0RhHigh;
extern float PHeater, P0Heater, A0Heater, B0Heater;
extern unsigned short switchFIndex, ATypeIndexGain, GDCFactorAType;
/******************************************************************************/
void ComputeABParameter(void);
void ATypeFlowRateInit(void);
void ComputeATypeIndex(void);
#endif