NULL
This commit is contained in:
54
user/Interface/AlarmOutputDefine.h
Executable file
54
user/Interface/AlarmOutputDefine.h
Executable file
@@ -0,0 +1,54 @@
|
||||
#ifndef __AlarmOutputDefine_h__
|
||||
#define __AlarmOutputDefine_h__
|
||||
|
||||
//==============================================================================
|
||||
// for alarm function
|
||||
#define EN_ACC_ALARM BIT0
|
||||
#define EN_FR_ALARM BIT1
|
||||
#define EN_SUPPERSSSION BIT2 // 1: <20><>Ч1
|
||||
#define EN_PRESS_ALARM BIT3
|
||||
|
||||
#define SET_IO_LEVEL BIT11 // 1: <20>ߵ<EFBFBD>ƽ
|
||||
|
||||
#define DISABLE_FR_ALARM 0
|
||||
#define DISABLE_PRESS_ALARM 0
|
||||
//------------------------------------------------------------------------------
|
||||
// for output IO Config
|
||||
#define IO_USE_BIT (BIT12 + BIT13 + BIT14 + BIT15)
|
||||
#define IOH_USE_BIT (BIT14 + BIT15)
|
||||
#define IOL_USE_BIT (BIT12 + BIT13)
|
||||
|
||||
// PB12 = LATCH
|
||||
// PB13 = PULSE
|
||||
//ALARM_LOW_Pin = pulse pin
|
||||
//#define IOL_USE_TO_FR 0 // 0
|
||||
//#define IOL_USE_TO_PRESS BIT12 // 1
|
||||
//#define IOL_USE_TO_PULSE BIT13 // 2
|
||||
#define IOL_USE_TO_FR 0 // 0
|
||||
#define IOL_USE_TO_PRESS BIT12 // 1
|
||||
|
||||
//ALARM_high_Pin = 4-20mA LATH pin
|
||||
//#define IOH_USE_TO_FR 0 // 0
|
||||
//#define IOH_USE_TO_PRESS BIT14 // 1
|
||||
//#define IOH_USE_TO_LATH BIT15 // 2
|
||||
|
||||
#define IOH_USE_TO_FR 0 // 0
|
||||
#define IOH_USE_TO_PRESS BIT14 // 1
|
||||
#define IOH_USE_TO_PULSE BIT15 // 2
|
||||
|
||||
//==============================================================================
|
||||
#define IO_ALARM_LOW SET_IO_LEVEL
|
||||
#define IO_ALARM_HIGH 0
|
||||
//==============================================================================
|
||||
// for alarm state2
|
||||
#define VALVE_STATE BIT0
|
||||
#define UPPER_PRESS_STATE BIT11
|
||||
#define LOWER_PRESS_STATE BIT12
|
||||
#define UPPER_FR_STATE BIT13 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD><DEB1><EFBFBD>
|
||||
#define LOWER_FR_STATE BIT14 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD><DEB1><EFBFBD>
|
||||
#define ACC_ALARM_STATE BIT15 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
#define MAX_DLEAY_ALARM_TIME 180
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user