keypad.h

来自「《OSEK/VDX汽车电子嵌入式软件编程技术》中光盘的资料」· C头文件 代码 · 共 39 行

H
39
字号
/************************************************
*
*	$Copyright    2001 Joseph J. Lemieux  ALL RIGHTS RESERVED. $
*
*	$Filename: C:\OSEKBook\src\CH06\inc\keypad.h $
*
*	Description: Header file for Keypad handling module.	
*
************************************************/
#ifndef KEYPADH
#define KEYPADH

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

#define KEY_DEBOUNCE_TIME 4
#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);

#endif

⌨️ 快捷键说明

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