CH552/src/keil/HID/usr/Key.h

40 lines
1.2 KiB
C
Raw Normal View History

2019-05-24 05:16:18 +02:00
#define INTERRUPT_TouchKey 0 //<2F><><EFBFBD><EFBFBD>Key<65>жϷ<D0B6>ʽ
#define L_WIN 0X08
#define L_ALT 0X04
#define L_SHIFT 0X02
#define L_CTL 0X01
#define R_WIN 0X80
#define R_ALT 0X40
#define R_SHIFT 0X20
#define R_CTL 0X10
#define SPACE 0X2C
#define ENTER 0X28
#define MOUSE 0
/*******************************************************************************
* Function Name : TouchKeyQueryCylSet(UINT8 cyl)
* Description : <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* Input : UINT8 cyl ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
1 2ms
0 1ms
* Output : None
* Return : None
*******************************************************************************/
void TouchKeyQueryCylSet1Or2ms(UINT8 cyl);
/*******************************************************************************
* Function Name : TouchKeyChanelSelect(UINT8 ch)
* Description : <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD>
* Input : UINT8 ch <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD><EFBFBD>
* Output : None
* Return : <EFBFBD>ɹ<EFBFBD> SUCCESS
ʧ<EFBFBD><EFBFBD> FAIL
*******************************************************************************/
UINT8 TouchKeyChanelSelect(UINT8 ch);