keypad.h

来自「< OSEKVDX汽车电子嵌入式软件编程技术>>配套光盘,搞汽」· C头文件 代码 · 共 52 行

H
52
字号
/************************************************
*
*	$Copyright    2001 Joseph J. Lemieux  ALL RIGHTS RESERVED. $
*
*	$Filename: C:\OSEKBook\src\CH09\inc\keypad.h $
*
*	Description:	
*
************************************************/
#ifndef KEYPADH
#define KEYPADH

/***
*
* Define Keypad Debounce Time
*
***/

#define KEY_BUFFER_SIZE 8

/************************************************
*
*   Function:     GetKeyValue
*
*   Inputs:       none
*
*   Outputs:      none
*
*   Returns:      Character pressed.
*
*   Description:  This routine pulls the oldest character from
*                 the buffer of key presses from the keypad.
*
************************************************/
char GetKeyValue(void);
/************************************************
*
*   Function:     InitKeypad
*
*   Inputs:       type - type of initialization occurring.
*
*   Outputs:      none
*
*   Returns:      void
*
*   Description:  Initialize the Keypad module
*
************************************************/
void InitKeypad(InitType type);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?