keypad.h
来自「IT projecotr reference design.」· C头文件 代码 · 共 52 行
H
52 行
/****************************************************************************/
/* TEXAS INSTRUMENTS PROPRIETARY INFORMATION */
/* */
/* (c) Copyright, Texas Instruments Incorporated, 2006. */
/* All Rights Reserved. */
/* */
/* Property of Texas Instruments Incorporated. Restricted Rights - */
/* Use, duplication, or disclosure is subject to restrictions set */
/* forth in TI's program license agreement and associated documentation. */
/****************************************************************************/
/****************************************************************************/
/* keypad.h */
/* */
/* Keypad key and LED interface. */
/****************************************************************************/
#ifndef __KEYPAD_H
#define __KEYPAD_H
#include "common.h"
#include "sysmon.h"
#define KEYPAD_PERIOD 10 /* 10 milliseconds callback period */
/****************************************************/
/* Keypad LED identifiers used by kpadfunc_LED(). */
/****************************************************/
typedef enum
{
KPLED_POWER, /* Power (top LED) */
KPLED_LAMP, /* Lamp overtemp (middle LED) */
KPLED_TEMP /* Projector overtemp (bottom LED) */
}
KPLED_ID;
/****************************************************************************/
/* Interface functions. */
/****************************************************************************/
EXEC_CC_ENUM keypad_init( void ); /* reset */
void keypad_LED( KPLED_ID id, BOOL state ); /* LED function */
void keypad_menuMode( BOOL isMenuMode ); /* set keypad mode */
int16 keypad_poll( uint16 tick ); /* keypad scan callback */
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?