P2UWaterJiangXi/app/UWater_key_app.h

57 lines
1.7 KiB
C
Raw Permalink Normal View History

2024-06-03 15:49:39 +08:00
/*
* File: __GP22Gas_KEY_APP_H
* Author:
*
* Created on<EFBFBD><EFBFBD>2015-5-18
*/
#ifndef __UWater_KEY_APP_H
#define __UWater_KEY_APP_H
#include "type.h"
#include "UWater_key_driver.h"
#include "UWater_lcd_app.h"
#ifdef __cplusplus
extern "C" {
#endif
/*------------------------------- Variable Define -----------------------------------*/
#define KEY_SYS_S0 0 //<2F><><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>״̬<D7B4><CCAC>״̬<D7B4><CCAC>
#define KEY_SYS_S1 1
//#define MENU_TWO 0b10 // <20><>2<EFBFBD><32><EFBFBD>˵<EFBFBD>MSG
//#define MENU_ONE 0b01 // <20><>1<EFBFBD><31><EFBFBD>˵<EFBFBD>MSG
//#define MENU_DEFAULT 0b100 //<2F><>Ĭ<EFBFBD>ϲ˵<CFB2>MSG
//#define MENU_TEST 0b1000 //<2F>м춨״̬<D7B4>˵<EFBFBD>MSG
//#define MENU_TEST_GP30 0b10000 //<2F>в<EFBFBD><D0B2>Բ˵<D4B2>MSG
//#define MENU_ACTIVE_RF 0b100000 //<2F><><EFBFBD>߻<EFBFBD>ԾMSG <20>ݴ<EFBFBD>
//#define MENU_ACTIVE_RF_APP 0b1000000 //<2F><><EFBFBD>߻<EFBFBD>ԾMSG С<><D0A1><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>
#define MENU_TWO 0x01//0b01 // <20><>2<EFBFBD><32><EFBFBD>˵<EFBFBD>MSG
#define MENU_ONE 0x02//0b10 // <20><>1<EFBFBD><31><EFBFBD>˵<EFBFBD>MSG
#define MENU_DEFAULT 0x04//0b100 //<2F><>Ĭ<EFBFBD>ϲ˵<CFB2>MSG
#define MENU_TEST 0x08//0b1000 //<2F>м춨״̬<D7B4>˵<EFBFBD>MSG
#define MENU_ACTIVE_RF 0x20//0b100000 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>GSM
/*-------------------------------- <20>ⲿ<EFBFBD>ӿں<D3BF><DABA><EFBFBD> ---------------------------------*/
void KeyInitApp(void); //Ӧ<>ò㰴<C3B2><E3B0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC>
void KeyMachineApp(void); //Ӧ<>ò㽨<C3B2><E3BDA8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӿ<EFBFBD>
u8 KeyCheckLcdMsgApp(u8 msg); //<2F><>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>LCD<43><44>MSG<53><47><EFBFBD><EFBFBD>
u8 KeyClearLcdMsgApp(u8); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>LCD<43><44>MSG<53><47><EFBFBD><EFBFBD>
void KeySetLcdMsgApp(u8 msg);
u8 KeyIfSleepApp(void); //<2F><>ѯģ<D1AF><C4A3><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void KeySetIrOpenMsg(void);
u8 KeyCheckIrOpenMsg(void);
void KeyClearIrOpenMsg(void);
#ifdef __cplusplus
}
#endif //#ifndef __cplusplus
#endif /* __UWater_KEY_APP_H */