39 lines
1.8 KiB
C
39 lines
1.8 KiB
C
/********************************************************************************************************
|
|
** HY3106常数与子程序定义头文件
|
|
**
|
|
** 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 |