📄 pnlwdnew.h
字号:
/********************************************************************
* Copyright (C) 1999 Acer Labs, Inc. All Rights Reserved. *
* *
* File: pnl_msb.h(the first one from msb company.) *
* *
* Contents: *
* Platform dependent Header of Front Panel Control *
* (for msb company.) *
* *
* History: *
* Date By Reason *
* =========== ======== ====== *
* 03/22/2000 kenny creat *
********************************************************************/
/*---------------------------------------*/
/* MODULE DEFINITION : */
/* define the modules would be used */
/*---------------------------------------*/
#define PNL_MODULE_USED_SIGNAL
#define PNL_MODULE_USED_MSGSIG
#define PNL_MODULE_USED_TIME
#define PNL_MODULE_USED_MESSAGE
#define PNL_MODULE_USED_LIGHTDISC
#undef PNL_MODULE_USED_DGTMSG
/*------------------*/
/* FONTS DEFINITION */
/*------------------*/
/* Segment 7 LED definition */
#define SEG7_0 0x00
#define SEG7_A 0x40
#define SEG7_B 0x20
#define SEG7_C 0x04
#define SEG7_D 0x01
#define SEG7_E 0x02
#define SEG7_F 0x10
#define SEG7_G 0x08
#define SEG7_H 0x80
/* include standard fonts, then change the fonts when needed */
#include "pnlfonts.def"
/* following characters on TITLE/CHAPTER only!! */
#undef PNL_MSG_M
#define PNL_MSG_M (SEG7_A|SEG7_B|SEG7_C|SEG7_E|SEG7_F|SEG7_H)
#undef PNL_MSG_W
#define PNL_MSG_W (SEG7_B|SEG7_C|SEG7_D|SEG7_E|SEG7_F|SEG7_H)
#undef PNL_MSG_m
#define PNL_MSG_m (SEG7_A|SEG7_B|SEG7_C|SEG7_E|SEG7_F|SEG7_H)
#undef PNL_MSG_w
#define PNL_MSG_w (SEG7_B|SEG7_C|SEG7_D|SEG7_E|SEG7_F|SEG7_H)
/*------------------------*/
/* BLINK SPEED DEFINITION */
/*------------------------*/
/* system blink speed */
#define PNL_CLK_BLINK_SLOW 3000
#define PNL_CLK_BLINK_MIDDLE 2000
#define PNL_CLK_BLINK_FAST 1000
//Redefine "MARK"
#define PNL_MSG_MARK_M (SEG7_A|SEG7_B|SEG7_C|SEG7_E|SEG7_F|SEG7_H)
#define PNL_MSG_MARK_A PNL_MSG_A
#define PNL_MSG_MARK_R (SEG7_A|SEG7_B|SEG7_E|SEG7_F|SEG7_G|SEG7_H)
#define PNL_MSG_MARK_K (SEG7_A|SEG7_D|SEG7_G)
/*-------------------------------------------------------*/
/* COMPONENT DEFINITION : */
/* define the position & attribute of the component */
/*-------------------------------------------------------*/
#define PNL_NUM_GRID 6 /* the number of the grids */
#define PNL_NUM_BIT 24 /* the number of the bits */
#define PNL_POS_NULL {0, 0x0000}
/* DISC TYPE */
#define PNL_CLASS_DISC PNL_MODULE_SIGNAL
#undef PNL_POS_DISC_UNKOWN_DISC
#define PNL_ATTR_DISC_UNKOWN_DISC PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_DISC_DVD {4, 0x800000}
#define PNL_ATTR_DISC_DVD PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_DISC_DVD_AUDIO
#define PNL_ATTR_DISC_DVD_AUDIO PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_DISC_VCD10 {4, 0x200000}
#define PNL_ATTR_DISC_VCD10 PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_DISC_VCD20 {4, 0x200000}
#define PNL_ATTR_DISC_VCD20 PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_DISC_CDROM
#define PNL_ATTR_DISC_CDROM PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_DISC_CDDA {4, 0x400000}
#define PNL_ATTR_DISC_CDDA PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_DISC_SVCD {4, 0x200000}
#define PNL_ATTR_DISC_SVCD PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_DISC_CDI
#define PNL_ATTR_DISC_CDI PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_DISC_MP3 {4, 0x100000}
#define PNL_ATTR_DISC_MP3 PNL_LIGHT_ON|PNL_BLINK_OFF
/* AUDIO TYPE */
#define PNL_CLASS_AUDIO PNL_MODULE_SIGNAL
#define PNL_POS_AUDIO_AC3 {3,0x010000}
#define PNL_ATTR_AUDIO_AC3 PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_AUDIO_MPEG
#define PNL_ATTR_AUDIO_MPEG PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_AUDIO_MPEGI /* {3,0x010000} */
#define PNL_ATTR_AUDIO_MPEGI PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_AUDIO_MPEGII /* {3,0x010000} */
#define PNL_ATTR_AUDIO_MPEGII PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_AUDIO_LPCM
#define PNL_ATTR_AUDIO_LPCM PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_AUDIO_CDDA_AUDIO
#define PNL_ATTR_AUDIO_CDDA_AUDIO PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_AUDIO_DTS {3, 0x020000}/*rockman*/
#define PNL_ATTR_AUDIO_DTS PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_AUDIO_SDDS
#define PNL_ATTR_AUDIO_SDDS PNL_LIGHT_ON|PNL_BLINK_OFF
/* TV TYPE */
#define PNL_CLASS_TV PNL_MODULE_SIGNAL
#undef PNL_POS_TV_NTSC
#define PNL_ATTR_TV_NTSC PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_TV_PAL
#define PNL_ATTR_TV_PAL PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_TV_AUTO
#define PNL_ATTR_TV_AUTO PNL_LIGHT_ON|PNL_BLINK_OFF
/* PLAYBACK CONTROL */
#define PNL_CLASS_PLAYBACK PNL_MODULE_SIGNAL
#define PNL_POS_PC_PLAY {3, 0x200000}
#define PNL_ATTR_PC_PLAY PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_PC_PAUSE {3, 0x100000}
#define PNL_ATTR_PC_PAUSE PNL_LIGHT_ON|PNL_BLINK_ON
#define PNL_POS_PC_STEP {3, 0x100000}
#define PNL_ATTR_PC_STEP PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_PC_FF {3, 0x200000}
#define PNL_ATTR_PC_FF PNL_LIGHT_ON|PNL_BLINK_ON
#define PNL_POS_PC_FR {3, 0x200000}
#define PNL_ATTR_PC_FR PNL_LIGHT_ON|PNL_BLINK_ON
#define PNL_POS_PC_SF {3, 0x200000}
#define PNL_ATTR_PC_SF PNL_LIGHT_ON|PNL_BLINK_ON
#define PNL_POS_PC_SR {3, 0x200000}
#define PNL_ATTR_PC_SR PNL_LIGHT_ON|PNL_BLINK_ON
/* REPEAT CONTROL */
#define PNL_CLASS_REPEAT PNL_MODULE_SIGNAL
#define PNL_POS_RC_REPEAT {3, 0x400000}
#define PNL_ATTR_RC_REPEAT PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_RC_REPEAT1 {3, 0x400000}
#define PNL_ATTR_RC_REPEAT1 PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_RC_REPEATA {3, 0x400000}
#define PNL_ATTR_RC_REPEATA PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_RC_REPEATAB {3, 0x400000}
#define PNL_ATTR_RC_REPEATAB PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_RC_REPEATALL {3, 0xc00000}
#define PNL_ATTR_RC_REPEATALL PNL_LIGHT_ON|PNL_BLINK_OFF
#undef PNL_POS_RC_RANDOM /* {4, 0x000001} */
#define PNL_ATTR_RC_RANDOM PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_RC_PROGRAM {1, 0x000100}
#define PNL_ATTR_RC_PROGRAM PNL_LIGHT_ON|PNL_BLINK_OFF
/* KARAOK VOICE CONTROL */
#define PNL_CLASS_KARAOK PNL_MODULE_SIGNAL
#define PNL_POS_KARAOK_LEFT {3, 0x080000}
#define PNL_ATTR_KARAOK_LEFT PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_KARAOK_RIGHT {3, 0x080000}
#define PNL_ATTR_KARAOK_RIGHT PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_POS_KARAOK_ALL {3, 0x080000}
#define PNL_ATTR_KARAOK_ALL PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_ATTR_KARAOK_MUTE PNL_LIGHT_ON|PNL_BLINK_OFF
/* PBC SIGNAL */
#define PNL_CLASS_PBC PNL_MODULE_SIGNAL
#undef PNL_POS_PBC /* {4, 0x000080} */
#define PNL_ATTR_PBC PNL_LIGHT_ON|PNL_BLINK_OFF
/* ANGLE SIGNAL */
#define PNL_CLASS_ANGLE PNL_MODULE_SIGNAL
#define PNL_POS_ANGLE {4, 0x000001}
#define PNL_ATTR_ANGLE PNL_LIGHT_ON|PNL_BLINK_OFF
/* REMAIN SIGNAL */
#define PNL_CLASS_REMAIN PNL_MODULE_SIGNAL
#undef PNL_POS_REMAIN
#define PNL_ATTR_REMAIN PNL_LIGHT_ON|PNL_BLINK_OFF
/* INTRO SIGNAL */
#define PNL_CLASS_INTRO PNL_MODULE_SIGNAL
#undef PNL_POS_INTRO
#define PNL_ATTR_INTRO PNL_LIGHT_ON|PNL_BLINK_OFF
/* LASTPLAY SIGNAL */
#define PNL_CLASS_LASTPLAY PNL_MODULE_SIGNAL
#undef PNL_POS_LASTPLAY
#define PNL_ATTR_LASTPLAY PNL_LIGHT_ON|PNL_BLINK_OFF
/* TITLE */
#define PNL_CLASS_TITLE PNL_MODULE_MSGSIG
#define PNL_POS_TITLE_MSG {3, 0x00007f}, {3, 0x00fe00}
#undef PNL_POS_TITLE_SIG /* {1, 0x008000} */
/* CHAPTER */
#define PNL_CLASS_CHAPTER PNL_MODULE_MSGSIG
#undef PNL_POS_CHAPTER_DGT
#define PNL_POS_CHAPTER_MSG {2, 0x007f00},{2,0xfe0000}
#undef PNL_POS_CHAPTER_SIG /* {2, 0x000080} */
/* TRACK */
#define PNL_CLASS_TRACK PNL_MODULE_MSGSIG
#undef PNL_POS_TRACK_DGT
#define PNL_POS_TRACK_MSG {3, 0x00fe00},{2, 0x007f00},{2,0xfe0000}
#undef PNL_POS_TRACK_SIG
/* TIME */
#define PNL_CLASS_TIME PNL_MODULE_TIME
#define PNL_POS_TIME_HOUR {1, 0x7f0000}
#define PNL_POS_TIME_MIN {2, 0x0000fe}, {1, 0x00007f}
#define PNL_POS_TIME_SEC {1, 0x00fe00}, {4, 0x0000fe}
#define PNL_POS_TIME_SIG {1, 0x800000}, {1, 0x000080}
/* MESSAGE */
#define PNL_CLASS_MESSAGE PNL_MODULE_MESSAGE
#define PNL_POS_MESSAGE {3, 0x00007f}/*added for patch*/,{3, 0x00fe00}/*added for patch*/,{2, 0x007f00}, \
{2,0xfe0000}, {1, 0x7f0000}, {2, 0x0000fe}, \
{1, 0x00007f}, {1, 0x00fe00},{4, 0x0000fe}
#define PNL_MSG_STR_OFF /* " " */ \
PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, \
PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC
#define PNL_ATTR_STR_OFF PNL_LIGHT_OFF
#define PNL_MSG_STR_NO_DISC /* "NO DISC" */ \
PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_N, PNL_MSG_O, \
PNL_MSG_D, PNL_MSG_I, PNL_MSG_S, PNL_MSG_C, PNL_MSG_SPC
#define PNL_ATTR_STR_NO_DISC PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_MSG_STR_MENU /* "MENU-----" */ \
PNL_MSG_M, PNL_MSG_E, PNL_MSG_N, PNL_MSG_U, \
PNL_MSG_MINUS, PNL_MSG_MINUS, PNL_MSG_MINUS, PNL_MSG_MINUS, PNL_MSG_MINUS
#define PNL_ATTR_STR_MENU PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_MSG_STR_ROOT /* "root-----" */ \
PNL_MSG_r, PNL_MSG_o, PNL_MSG_o, PNL_MSG_t, \
PNL_MSG_MINUS, PNL_MSG_MINUS, PNL_MSG_MINUS, PNL_MSG_MINUS, PNL_MSG_MINUS
#define PNL_ATTR_STR_ROOT PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_MSG_STR_SETUP /* " -----" */ \
PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, \
PNL_MSG_MINUS, PNL_MSG_MINUS, PNL_MSG_MINUS, PNL_MSG_MINUS, PNL_MSG_MINUS
#define PNL_ATTR_STR_SETUP PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_MSG_STR_STOP /* " STOP" */ \
PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, \
PNL_MSG_SPC, PNL_MSG_S, PNL_MSG_T, PNL_MSG_O, PNL_MSG_P
#define PNL_ATTR_STR_STOP PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_MSG_STR_PLAY /* " PLAY" */ \
PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, \
PNL_MSG_SPC, PNL_MSG_P, PNL_MSG_L, PNL_MSG_A, PNL_MSG_Y
#define PNL_ATTR_STR_PLAY PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_MSG_STR_OPEN /* " OPEN" */ \
PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, \
PNL_MSG_O, PNL_MSG_P, PNL_MSG_E, PNL_MSG_N
#define PNL_ATTR_STR_OPEN PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_MSG_STR_CLOSE /* " CLOSE" */ \
PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, \
PNL_MSG_C, PNL_MSG_L, PNL_MSG_O, PNL_MSG_S, PNL_MSG_E
#define PNL_ATTR_STR_CLOSE PNL_LIGHT_ON|PNL_BLINK_OFF
#define PNL_MSG_STR_LOAD /* " LOAd" */ \
PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, \
PNL_MSG_SPC, PNL_MSG_L, PNL_MSG_O, PNL_MSG_A, PNL_MSG_d
#define PNL_ATTR_STR_LOAD PNL_LIGHT_ON|PNL_BLINK_ON
#define PNL_MSG_STR_INVALID_DISC /* " Error" */ \
PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, PNL_MSG_SPC, \
PNL_MSG_E, PNL_MSG_r, PNL_MSG_r, PNL_MSG_o, PNL_MSG_r
#define PNL_ATTR_STR_INVALID_DISC PNL_LIGHT_ON|PNL_BLINK_OFF
/* LIGHTDISC */
#define PNL_CLASS_LIGHTDISC PNL_MODULE_LIGHTDISC
/* rotate speed */
#define PNL_CLK_LD_SPEED_OFF 0
#define PNL_CLK_LD_SPEED_SLOW 1100
#define PNL_CLK_LD_SPEED_MIDDLE 450
#define PNL_CLK_LD_SPEED_FAST 200
#define PNL_POS_LD_SEGMENT {4, 0x000100}, {4, 0x000200}, {4, 0x000400}, \
{4, 0x000800}, {4, 0x001000}, {4, 0x002000},\
{4, 0x004000},{4, 0x008000},{4, 0x010000},\
{4, 0x020000},{4, 0x040000},{4, 0x080000}
#undef PNL_POS_LD_SIG /* {3, 0x004000} */
/*----------------------*/
/* PANEL KEY DEFINITION */
/*----------------------*/
#define PNL_KEY_00000001 C_KEY_UP/*.PETER.....*/
#define PNL_KEY_00000002 C_KEY_LEFT/*.pETER.....*/
#define PNL_KEY_00000004 C_KEY_SKIP_L/* PETER.....L/R */
#define PNL_KEY_00000008 C_KEY_OPEN/*peter*/
#define PNL_KEY_00000010 C_KEY_RIGHT/*PETER.*/
#define PNL_KEY_00000020 C_KEY_DOWN/*pETER*/
#define PNL_KEY_00000040 C_KEY_SKIP_R /*PETER*/
#define PNL_KEY_00000080 C_KEY_PLAY/*peter*/
#define PNL_KEY_00000100 C_KEY_ENTER/*PETER.....*/
#define PNL_KEY_00000200 C_KEY_STOP/*.peter.....*/
#define PNL_KEY_00000400 C_KEY_MENU/*PETER*/
#define PNL_KEY_00000800 C_KEY_0/*.p...*/
#define PNL_KEY_00001000 C_KEY_1/*....*/
#define PNL_KEY_00002000 C_KEY_2/*.p1....*/
#define PNL_KEY_00004000 C_KEY_3/*.p1....*/
#define PNL_KEY_00008000 C_KEY_4/*.p1.....*/
#define PNL_KEY_00010000 C_KEY_5/*......*/
#define PNL_KEY_00020000 C_KEY_6/*.p1....*/
#define PNL_KEY_00040000 C_KEY_7/*.p1....*/
#define PNL_KEY_00080000 C_KEY_8/*.p1....*/
#define PNL_KEY_00100000 PNL_KEY_NONE/*......!!!****/
#define PNL_KEY_00200000 PNL_KEY_NONE/*....!!!!*/
#define PNL_KEY_00400000 PNL_KEY_NONE/*.P....!!!!*/
#define PNL_KEY_00800000 PNL_KEY_NONE/*....!!!!*/
#define PNL_KEY_01000000 PNL_KEY_NONE/*.......!!!!*/
#define PNL_KEY_02000000 PNL_KEY_NONE
#define PNL_KEY_04000000 PNL_KEY_NONE
#define PNL_KEY_08000000 PNL_KEY_NONE
#define PNL_KEY_10000000 PNL_KEY_NONE
#define PNL_KEY_20000000 PNL_KEY_NONE
#define PNL_KEY_40000000 PNL_KEY_NONE
#define PNL_KEY_80000000 PNL_KEY_NONE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -