📄 keyprocess.h
字号:
// --------------------------------------------------------------------------
// Keyprocess.h
// --------------------------------------------------------------------------
#ifndef __KEYPROCESS_H__
#define __KEYPROCESS_H__
/*----------------------------------------------------------------------------+
| Type Definition & Macro |
+----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------+
| External Variables |
+----------------------------------------------------------------------------*/
extern BYTE LastKeyTimer; // 上一次按键到这一次按键之间的时间间隔,以10ms为单位
extern BYTE LastKey; // 上一次的按键
extern bit bKey_Hand_1;
extern bit bKey_Hand_2;
extern bit PKey_Hand_1;
extern bit PKey_Hand_2;
extern bit PKey_Unlock_1;
extern bit PKey_Unlock_2;
extern code BYTE KeyNum[];
extern code BYTE SetupTimeDispOrder[];
extern code BYTE ViewBeforeDispOrder[];
extern code BYTE CallBeforeDispOrder[];
extern code BYTE SetupAddTempCardDoorDispOrder[];
/*----------------------------------------------------------------------------+
| Type Definition & Macro |
+----------------------------------------------------------------------------*/
void InitKey(void);
void KeyRoutine(PMSG pMsg);
void KeyPressHandler(PMSG pMsg);
void NumberKeyPress(BYTE nKey);
void CancelKeyPress(void);
void EnterKeyPress(void);
void ViewKeyPress(void);
void CallKeyPress(void);
void UnlockKeyPress(void);
void FindKeyPress(void);
//UINT GetAlarmRecordFreeAddr(void);
void InitAlarmRecordArea(void);
BOOL SaveAlarmRecord(t_AlarmRecord *pSourceAlarm);
BOOL GetRouteInfoByDoorAddr(t_RouteInfo *RouteInfo);
BOOL GetRouteInfoByRouteAddr(t_RouteInfo *RouteInfo);
UINT FindRFCardByNum(BYTE *CardNum, UINT StartAddr, UINT nLength);
BOOL FindUnitCardAddress(UINT UnitAddr, UINT *StartAddr, UINT *nLength);
void EnterSetupSystemTime(void);
void EnterSetupSystemPassword(void);
void EnterAddTempCardByCard(void);
void EnterAddTempCardByNum(void);
void EnterDelTempCardByCard(void);
void EnterDelTempCardByNum(void);
void EnterDelTimeoutCard(void);
void EnterSetupDoubleClickTime(void);
void EnterSetupCheckIntervalTime(void);
void ReturnIdle(void);
void ChangeToTalkChannel(void);
void OpenAlarmPower(void);
void OpenRingPower(void);
void ClosePower(void);
void RFCardNumChange(void);
/*----------------------------------------------------------------------------+
| End of header file |
+----------------------------------------------------------------------------*/
#endif // __KEYPROCESS_H__
/*------------------------ Nothing Below This Line --------------------------*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -