📄 keypad.h
字号:
/****************************************************************************/
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -