73 lines
2.4 KiB
C
73 lines
2.4 KiB
C
/********************************************************************************************************
|
||
** HY3106끽鑒宅綾넋埼땍屢庫匡숭
|
||
**
|
||
** Copyright (c) Siargo, Ltd. 2011
|
||
** All Rights Reserved.
|
||
**
|
||
**-------------------------------------------------------------------------------------------------------
|
||
********************************************************************************************************/
|
||
#ifndef __UnitConverterDefine_h__
|
||
#define __UnitConverterDefine_h__
|
||
|
||
/******************************************************************************
|
||
데貫:(BIT0-BIT7)
|
||
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 侊똑데貫: 0-→,1-쭴
|
||
BIT10 嫁똑데貫: 0-%RH
|
||
BIT12-BIT13 箕제데貫:
|
||
00-kPa,
|
||
01-PSI
|
||
10-bar
|
||
BIT14 큠똑데貫: 0-%,1-PPM
|
||
*******************************************************************************/
|
||
//******************************************************************************
|
||
//데貫瘻뻣
|
||
//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 |