⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osd_trtbl.h

📁 LCD显示驱动控制程序
💻 H
字号:
////////////////////////////////////////////////////////////////////////////////
//    Genesis Microchip, Inc.
// This file was generated by Genesis Workbench. PLEASE DO NOT EDIT MANUALLY
////////////////////////////////////////////////////////////////////////////////

#ifndef OSD_TRTBL_H_DEFINED
#define OSD_TRTBL_H_DEFINED


extern BYTE ROM KEYPAD_DEBOUNCE_PERIOD;

/*

Begin block defined in libs


typedef BYTE KEY_INDEX;
typedef WORD GPIO_KEY_VALUE;

typedef struct ST_KEYPAD_STATEStruct
{
	KEY_INDEX	B_iButton;
	BYTE	B_iTimer;
} ST_KEYPAD_STATE;

typedef struct gmt_ST_TRANSLATION_TABLE_ENTRYStruct
{
	ST_KEYPAD_STATE	St_PreviousKS;
	ST_KEYPAD_STATE	St_CurrentKS;
	BYTE	B_iEvent;
	BYTE	B_iAutorepeatStartDelay;
	BYTE	W_iAutorepeatDelay : 6;
	BYTE	W_iAutorepeatEnable : 1;
	BYTE	W_iTableEnd : 1;
} gmt_ST_TRANSLATION_TABLE_ENTRY;

typedef struct gmt_ST_GPIOStruct
{
	BYTE	Port;
	BYTE	Bit;
} gmt_ST_GPIO;

typedef struct gmt_ST_GPIO_TRANSLATIONStruct
{
	GPIO_KEY_VALUE	KeyValue;
	KEY_INDEX	KeyIndex;
} gmt_ST_GPIO_TRANSLATION;




End block defined in libs*/


//Translation Table ID defenition

extern gmt_ST_TRANSLATION_TABLE_ENTRY ROM * ROM GlobalTranslTableSet [];

typedef enum TranslTblIDEnum
{
	TTID_PowerOffStateTbl,
	TTID_GeneralTrTable,
	TTID_ValidModeTrTable,
	TTID_NoSyncTrTable,
	TTID_SleepStateTrTable
} TranslTblID;

typedef enum Keys
{
	Key_None,// No keys Pressed
	Key1,// PowerKey
	Key2,// One
	Key3,// Left
	Key4,// Right
	Key5,// Two
	Key6,// I_key
	Key7,// Right, Left
	Key8,// Right, Two
	Key9,// I_key, One
	Key10// I_key, Two, One
} KeysEnum;

// Keypad Buttons defenition
typedef enum KeypadButtonsEnum
{
	I_key = 1,
	Left = 2,
	One = 4,
	PowerKey = 8,
	Right = 16,
	Two = 32
} KeypadButtons;


extern gmt_ST_GPIO ROM KeyMapping[6];

extern BYTE ROM NUMBER_OF_SCAN_KEY;

extern gmt_ST_GPIO_TRANSLATION ROM GPIOValues[];

extern BYTE ROM NUMBER_OF_GPIOValues;


#endif  // ifndef OSD_TRTBL_H_DEFINED

⌨️ 快捷键说明

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