73 lines
2.4 KiB
C
73 lines
2.4 KiB
C
|
|
/********************************************************************************************************
|
|||
|
|
** HY3106<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD>ļ<EFBFBD>
|
|||
|
|
**
|
|||
|
|
** Copyright (c) Siargo, Ltd. 2011
|
|||
|
|
** All Rights Reserved.
|
|||
|
|
**
|
|||
|
|
**-------------------------------------------------------------------------------------------------------
|
|||
|
|
********************************************************************************************************/
|
|||
|
|
#ifndef __UnitConverterDefine_h__
|
|||
|
|
#define __UnitConverterDefine_h__
|
|||
|
|
|
|||
|
|
/******************************************************************************
|
|||
|
|
<EFBFBD><EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>BIT0-BIT7<EFBFBD><EFBFBD>
|
|||
|
|
0--FR: sccm, Acc: SL
|
|||
|
|
1--FR: SLPM, Acc: NM3
|
|||
|
|
2--FR: NM3/h Acc: NM3
|
|||
|
|
3--FR: SCFH Acc: SCF
|
|||
|
|
4--NC
|
|||
|
|
5---
|
|||
|
|
6--FR: KG/h Acc: KG
|
|||
|
|
7--FR: SLPM Acc: SL
|
|||
|
|
8---
|
|||
|
|
9--FR: SCFM Acc: SCF
|
|||
|
|
|
|||
|
|
BIT8 <EFBFBD>¶ȵ<EFBFBD>λ: 0-<EFBFBD>棬1-<EFBFBD>H
|
|||
|
|
BIT10 ʪ<EFBFBD>ȵ<EFBFBD>λ: 0-%RH
|
|||
|
|
BIT12-BIT13 ѹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ:
|
|||
|
|
00-kPa<EFBFBD><EFBFBD>
|
|||
|
|
01-PSI
|
|||
|
|
10-bar
|
|||
|
|
BIT14 Ũ<EFBFBD>ȵ<EFBFBD>λ: 0-%<EFBFBD><EFBFBD>1-PPM
|
|||
|
|
*******************************************************************************/
|
|||
|
|
//******************************************************************************
|
|||
|
|
//<2F><>λת<CEBB><D7AA>
|
|||
|
|
//Unit conversion
|
|||
|
|
#define SCCM_SL 0
|
|||
|
|
#define SLPM_NM3 1
|
|||
|
|
#define NCMH_NM3 2
|
|||
|
|
#define SCFH_SCF 3
|
|||
|
|
#define PPM_PPM 4
|
|||
|
|
//#define CMH_M3 5
|
|||
|
|
#define KGH_KG 6
|
|||
|
|
#define SLPM_SL 7
|
|||
|
|
//#define SLPM_M3 8
|
|||
|
|
#define SCFM_SCF 9
|
|||
|
|
#define UNIT_MAX SCFM_SCF
|
|||
|
|
#define UNIT_MASK 0x00FF
|
|||
|
|
|
|||
|
|
//------------------------------------------------------------------------------
|
|||
|
|
// for flowrate
|
|||
|
|
#define SCCM 0
|
|||
|
|
#define SLPM 1
|
|||
|
|
#define NCMH 2
|
|||
|
|
#define SCFM 3
|
|||
|
|
#define KGH 4
|
|||
|
|
#define SCFH 5
|
|||
|
|
|
|||
|
|
//------------------------------------------------------------------------------
|
|||
|
|
// for acc
|
|||
|
|
#define ML 0
|
|||
|
|
#define SL 1
|
|||
|
|
#define NM3 2
|
|||
|
|
#define SCF 3
|
|||
|
|
#define KG 4
|
|||
|
|
|
|||
|
|
//------------------------------------------------------------------------------
|
|||
|
|
// for PRESS
|
|||
|
|
#define KPA 0
|
|||
|
|
#define PSI BIT12
|
|||
|
|
#define BAR BIT13
|
|||
|
|
#define PRESS_UNIT_MASK (BIT12+BIT13)
|
|||
|
|
|
|||
|
|
#endif
|