📄 kbd.h
字号:
//**********************************************************************
//
// Filename: kbd.h
//
// Description:
// Definitions and prototypes for the common level keypad driver.
// Most of these methods are exposed for external access.
// These driver methods must be supported at an OS driver level.
// refer to the kbd.cpp for an example of usage.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
// Copyright(c) Cirrus Logic Corporation 2001, All Rights Reserved
//
//**********************************************************************
#ifndef _H_KBD
#define _H_KBD
/*=============================================================================
> PROTOTYPES <
-----------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C"
{
#endif // __cplusplus
void GKBD_SetBase(unsigned long* pKbdBase);
volatile unsigned long* GKBD_GetBase(void);
// Synopsis: enables/disables the KBD IRQ
void GKBD_Enable(unsigned char bState);
// gets the driver curent version number
unsigned long GKBD_GetVersionNumber(void);
// Synopsis: Keyboard IRQ Handler
void GKBD_HandleIrq(void);
// Synopsis: sets the debounce level.
void GKBD_SetDebounce(unsigned char nDebounce);
// Synopsis: Get current debounce setting
unsigned char GKBD_GetDebounce(void);
// Synopsis: Enable/disable three-key reset feature
void GKBD_Enable3KeyReset(unsigned char bState);
// Synopsis: used to check the 3 key reset enable status.
unsigned char GKBD_Is3KeyEnabled(void);
// Synopsis: used to enable or disable key scan back driving
void GKBD_SetBackDriving(unsigned char bState);
// Synopsis: use to get enabled state of key scan back driving
unsigned char GKBD_GetBackDriving(void);
// Synopsis: sets the row/col counter pre-scale counter value
void GKBD_SetPreScale(unsigned short nScale);
// Synopsis: gets the row/col counter pre-scale counter
unsigned short GKBD_GetPreScale(void);
// Synopsis: Gets global row of the first or only key last pressed
unsigned char GKBD_GetLastR1(void);
// Synopsis: Gets global column of the first or only key last pressed
unsigned char GKBD_GetLastC1(void);
// Synopsis: Gets global row of the second key's last press of a 2-key press
unsigned char GKBD_GetLastR2(void);
// Synopsis: Gets global column of the second key's last press of a 2-key press
unsigned char GKBD_GetLastC2(void);
// Synopsis:
unsigned char GKBD_GetLastKeyStatus(void);
#ifdef __cplusplus
}
#endif // __cplusplus
#endif // _H_KBD
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -