📄 vfd_tbl.c
字号:
/* Copyright 1997, ESS Technology, Inc. */
/* SCCSID @(#)vfd_tbl.c 1.28 11/18/98 */
/*
* $Log$
*/
#include "vfdshare.h"
#include "keydef.h"
#include "custom.h"
#ifdef VFD_FUTABA
#ifdef FU271
#ifdef A300
#ifndef CHANGE_271
#define EMPTY 0x0001 /*0x1180*/ /* high byte is address */
#define MAX_CALENDAR 16
#define CALENDAR_00 EMPTY /* low byte is bit no */
#define CALENDAR_01 ANODE_G1P4
#define CALENDAR_02 ANODE_G1P3
#define CALENDAR_03 ANODE_G1P2
#define CALENDAR_04 ANODE_G1P1
#define CALENDAR_05 ANODE_G1P8
#define CALENDAR_06 ANODE_G1P7
#define CALENDAR_07 ANODE_G1P6
#define CALENDAR_08 ANODE_G1P5
#define CALENDAR_09 ANODE_G1P12
#define CALENDAR_10 ANODE_G1P11
#define CALENDAR_11 ANODE_G1P10
#define CALENDAR_12 ANODE_G1P9
#define CALENDAR_13 ANODE_G1P16
#define CALENDAR_14 ANODE_G1P15
#define CALENDAR_15 ANODE_G1P14
#define CALENDAR_16 ANODE_G1P13
#define _SEG_MUSIC_CD EMPTY
#define _SEG_VCD 0x0820
#define _SEG_CDI EMPTY
#define _SEG_VIDEO EMPTY
#define _SEG_KARAOKE EMPTY
#define _SEG_DISC_1 0x0320
#define _SEG_DISC_2 0x0308
#define _SEG_DISC_3 0x0310
#define _SEG_MEMORY EMPTY
#define _SEG_PROGRAM 0x0340
#define _SEG_RANDOM 0x0940
#define _SEG_REPEAT 0x0980
#define _SEG_REP_1 0x0802
#define _SEG_REP_ALL 0x0840
#define _SEG_REP_A EMPTY
#define _SEG_REP_B EMPTY
#define _SEG_NTSC 0x0902
#define _SEG_PAL 0x0920
#define _SEG_1_L 0x0908
#define _SEG_2_R 0x0910
#define _SEG_VOCAL EMPTY
#define _SEG_AUX EMPTY
#define _SEG_PBC_OFF 0x0302
#define _SEG_CONTINUE 0x0304
#define _SEG_PLAY 0x0810
#define _SEG_PAUSE 0x0808
#define _SEG_TRACK EMPTY
#define _SEG_TIME EMPTY
#define _SEG_INTRO 0x0904
#define _SEG_20_PLUS EMPTY
#define _SEG_16_PLUS 0x0901
#define _SEG_HYPHEN 0x0210
#define _SEG_REMAIN 0x0801
#define _SEG_MIN 0x0501
#define _SEG_SEC 0x0701
#define _SEG_COLON 0x0401
#define _SEG_DISC_1R 0x0301
#define _SEG_DISC_2R 0x0280
#define _SEG_DISC_3R 0x0240
/* 7 Segment control. P1 to P7 */
#define SEG7_A 0x80
#define SEG7_B 0x40
#define SEG7_C 0x20
#define SEG7_D 0x10
#define SEG7_E 0x08
#define SEG7_F 0x04
#define SEG7_G 0x02
unsigned char REFRESH_ADDRESS[] = {
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
0x08,0x09,0x0a,0x0b
};
unsigned short CALENDAR_TABLE[] = {
CALENDAR_00,CALENDAR_01,CALENDAR_02,CALENDAR_03,CALENDAR_04,CALENDAR_05,
CALENDAR_06,CALENDAR_07,CALENDAR_08,CALENDAR_09,CALENDAR_10,CALENDAR_11,
CALENDAR_12,CALENDAR_13,CALENDAR_14,CALENDAR_15,CALENDAR_16
};
unsigned short INDICATOR_TABLE[5][8] = {
{ _SEG_MUSIC_CD,_SEG_VCD,_SEG_CDI,_SEG_VIDEO,_SEG_KARAOKE,_SEG_DISC_1,_SEG_DISC_2,_SEG_DISC_3},
{ _SEG_MEMORY,_SEG_PROGRAM,_SEG_RANDOM,_SEG_REPEAT,_SEG_REP_1,_SEG_REP_ALL,
_SEG_REP_A,_SEG_REP_B },
{ _SEG_NTSC,_SEG_PAL,_SEG_1_L,_SEG_2_R,_SEG_VOCAL,_SEG_AUX,_SEG_PBC_OFF,_SEG_CONTINUE},
{ _SEG_PLAY,_SEG_PAUSE,_SEG_TRACK,_SEG_TIME,_SEG_INTRO,_SEG_20_PLUS,_SEG_16_PLUS,_SEG_HYPHEN},
{ _SEG_REMAIN,_SEG_MIN,_SEG_SEC,_SEG_COLON,_SEG_DISC_1R,_SEG_DISC_2R,_SEG_DISC_3R,EMPTY}
};
#else
#define EMPTY 0x0a01 /*0x1180*/ /* high byte is address */
#define MAX_CALENDAR 16
#define CALENDAR_00 EMPTY /* low byte is bit no */
#define CALENDAR_01 ANODE_G8P4
#define CALENDAR_02 ANODE_G8P3
#define CALENDAR_03 ANODE_G8P2
#define CALENDAR_04 ANODE_G8P1
#define CALENDAR_05 ANODE_G8P8
#define CALENDAR_06 ANODE_G8P7
#define CALENDAR_07 ANODE_G8P6
#define CALENDAR_08 ANODE_G8P5
#define CALENDAR_09 ANODE_G8P12
#define CALENDAR_10 ANODE_G8P11
#define CALENDAR_11 ANODE_G8P10
#define CALENDAR_12 ANODE_G8P9
#define CALENDAR_13 ANODE_G8P16
#define CALENDAR_14 ANODE_G8P15
#define CALENDAR_15 ANODE_G8P14
#define CALENDAR_16 ANODE_G8P13
#define _SEG_MUSIC_CD EMPTY
#define _SEG_VCD 0x0220
#define _SEG_CDI EMPTY
#define _SEG_VIDEO EMPTY
#define _SEG_KARAOKE EMPTY
#define _SEG_DISC_1 0x0920
#define _SEG_DISC_2 0x0908
#define _SEG_DISC_3 0x0910
#define _SEG_MEMORY EMPTY
#define _SEG_PROGRAM 0x0940
#define _SEG_RANDOM 0x0340
#define _SEG_REPEAT 0x0380
#define _SEG_REP_1 0x0202
#define _SEG_REP_ALL 0x0240
#define _SEG_REP_A EMPTY
#define _SEG_REP_B EMPTY
#define _SEG_NTSC 0x0302
#define _SEG_PAL 0x0320
#define _SEG_1_L 0x0308
#define _SEG_2_R 0x0310
#define _SEG_VOCAL EMPTY
#define _SEG_AUX EMPTY
#define _SEG_PBC_OFF 0x0902
#define _SEG_CONTINUE 0x0904
#define _SEG_PLAY 0x0210
#define _SEG_PAUSE 0x0208
#define _SEG_TRACK EMPTY
#define _SEG_TIME EMPTY
#define _SEG_INTRO 0x0304
#define _SEG_20_PLUS EMPTY
#define _SEG_16_PLUS 0x0301
#define _SEG_HYPHEN 0x0810
#define _SEG_REMAIN 0x0201
#define _SEG_MIN 0x0701
#define _SEG_SEC 0x0501
#define _SEG_COLON 0x0601
#define _SEG_DISC_1R 0x0901
#define _SEG_DISC_2R 0x0880
#define _SEG_DISC_3R 0x0840
/* 7 Segment control. P1 to P7 */
#define SEG7_A 0x80
#define SEG7_B 0x40
#define SEG7_C 0x20
#define SEG7_D 0x10
#define SEG7_E 0x08
#define SEG7_F 0x04
#define SEG7_G 0x02
unsigned char REFRESH_ADDRESS[] = {
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
0x08,0x09,0x0a,0x0b
};
unsigned short CALENDAR_TABLE[] = {
CALENDAR_00,CALENDAR_01,CALENDAR_02,CALENDAR_03,CALENDAR_04,CALENDAR_05,
CALENDAR_06,CALENDAR_07,CALENDAR_08,CALENDAR_09,CALENDAR_10,CALENDAR_11,
CALENDAR_12,CALENDAR_13,CALENDAR_14,CALENDAR_15,CALENDAR_16
};
unsigned short INDICATOR_TABLE[5][8] = {
{ _SEG_MUSIC_CD,_SEG_VCD,_SEG_CDI,_SEG_VIDEO,_SEG_KARAOKE,_SEG_DISC_1,_SEG_DISC_2,_SEG_DISC_3},
{ _SEG_MEMORY,_SEG_PROGRAM,_SEG_RANDOM,_SEG_REPEAT,_SEG_REP_1,_SEG_REP_ALL,
_SEG_REP_A,_SEG_REP_B },
{ _SEG_NTSC,_SEG_PAL,_SEG_1_L,_SEG_2_R,_SEG_VOCAL,_SEG_AUX,_SEG_PBC_OFF,_SEG_CONTINUE},
{ _SEG_PLAY,_SEG_PAUSE,_SEG_TRACK,_SEG_TIME,_SEG_INTRO,_SEG_20_PLUS,_SEG_16_PLUS,_SEG_HYPHEN},
{ _SEG_REMAIN,_SEG_MIN,_SEG_SEC,_SEG_COLON,_SEG_DISC_1R,_SEG_DISC_2R,_SEG_DISC_3R,EMPTY}
};
#endif
#else
#define EMPTY 0x0980 /*0x1180*/ /* high byte is address */
#define MAX_CALENDAR 16
#define CALENDAR_00 EMPTY /* low byte is bit no */
#define CALENDAR_01 0x0008 /*0x0001*/
#define CALENDAR_02 0x0004 /*0x0002*/
#define CALENDAR_03 0x0002 /*0x0004*/
#define CALENDAR_04 0x0001 /*0x0008*/
#define CALENDAR_05 0x0080 /*0x0010*/
#define CALENDAR_06 0x0040 /*0x0020*/
#define CALENDAR_07 0x0020 /*0x0040*/
#define CALENDAR_08 0x0010 /*0x0080*/
#define CALENDAR_09 0x0108 /*0x0101*/
#define CALENDAR_10 0x0104 /*0x0102*/
#define CALENDAR_11 0x0102 /*0x0104*/
#define CALENDAR_12 0x0101 /*0x0108*/
#define CALENDAR_13 0x0180 /*0x0110*/
#define CALENDAR_14 0x0140 /*0x0120*/
#define CALENDAR_15 0x0120 /*0x0140*/
#define CALENDAR_16 0x0110 /*0x0180*/
#define _SEG_MUSIC_CD EMPTY
#define _SEG_VCD 0x0304
#define _SEG_CDI EMPTY
#define _SEG_VIDEO EMPTY
#define _SEG_KARAOKE EMPTY
#define _SEG_DISC_1 0x0804
#define _SEG_DISC_2 0x0810
#define _SEG_DISC_3 0x0808
#define _SEG_MEMORY EMPTY
#define _SEG_PROGRAM 0x0802
#define _SEG_RANDOM 0x0202
#define _SEG_REPEAT 0x0201
#define _SEG_REP_1 0x0340
#define _SEG_REP_ALL 0x0302
#define _SEG_REP_A EMPTY
#define _SEG_REP_B EMPTY
#define _SEG_NTSC 0x0240
#define _SEG_PAL 0x0204
#define _SEG_1_L 0x0210
#define _SEG_2_R 0x0208
#define _SEG_VOCAL EMPTY
#define _SEG_AUX EMPTY
#define _SEG_PBC_OFF 0x0840
#define _SEG_CONTINUE 0x0820
#define _SEG_PLAY 0x0308
#define _SEG_PAUSE 0x0310
#define _SEG_TRACK EMPTY
#define _SEG_TIME EMPTY
#define _SEG_INTRO 0x0220
#define _SEG_20_PLUS EMPTY
#define _SEG_16_PLUS 0x0280
#define _SEG_HYPHEN 0x0908
#define _SEG_REMAIN 0x0380
#define _SEG_MIN 0x0680
#define _SEG_SEC 0x0480
#define _SEG_COLON 0x0780
#define _SEG_DISC_1R 0x0880
#define _SEG_DISC_2R 0x0901
#define _SEG_DISC_3R 0x0902
#define SEG7_A 0x01
#define SEG7_B 0x02
#define SEG7_C 0x04
#define SEG7_D 0x08
#define SEG7_E 0x10
#define SEG7_F 0x20
#define SEG7_G 0x40
unsigned char REFRESH_ADDRESS[] = {
0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
0x08,0x09,0x0a,0x0b
};
unsigned short CALENDAR_TABLE[] = {
CALENDAR_00,CALENDAR_01,CALENDAR_02,CALENDAR_03,CALENDAR_04,CALENDAR_05,
CALENDAR_06,CALENDAR_07,CALENDAR_08,CALENDAR_09,CALENDAR_10,CALENDAR_11,
CALENDAR_12,CALENDAR_13,CALENDAR_14,CALENDAR_15,CALENDAR_16
};
unsigned short INDICATOR_TABLE[5][8] = {
{ _SEG_MUSIC_CD,_SEG_VCD,_SEG_CDI,_SEG_VIDEO,_SEG_KARAOKE,_SEG_DISC_1,_SEG_DISC_2,_SEG_DISC_3},
{ _SEG_MEMORY,_SEG_PROGRAM,_SEG_RANDOM,_SEG_REPEAT,_SEG_REP_1,_SEG_REP_ALL,
_SEG_REP_A,_SEG_REP_B },
{ _SEG_NTSC,_SEG_PAL,_SEG_1_L,_SEG_2_R,_SEG_VOCAL,_SEG_AUX,_SEG_PBC_OFF,_SEG_CONTINUE},
{ _SEG_PLAY,_SEG_PAUSE,_SEG_TRACK,_SEG_TIME,_SEG_INTRO,_SEG_20_PLUS,_SEG_16_PLUS,_SEG_HYPHEN},
{ _SEG_REMAIN,_SEG_MIN,_SEG_SEC,_SEG_COLON,_SEG_DISC_1R,_SEG_DISC_2R,_SEG_DISC_3R,EMPTY}
};
#endif
#else
#ifdef FU265
#define EMPTY 0x0001 /*0x1180*/ /* high byte is address */
#define MAX_CALENDAR 16
#define CALENDAR_00 EMPTY /* low byte is bit no */
#define CALENDAR_01 0x0b10 /*0x0001*/
#define CALENDAR_02 0x0b20 /*0x0002*/
#define CALENDAR_03 0x0b40 /*0x0004*/
#define CALENDAR_04 0x0b80 /*0x0008*/
#define CALENDAR_05 0x0b01 /*0x0010*/
#define CALENDAR_06 0x0b02 /*0x0020*/
#define CALENDAR_07 0x0b04 /*0x0040*/
#define CALENDAR_08 0x0b08 /*0x0080*/
#define CALENDAR_09 0x0a10 /*0x0101*/
#define CALENDAR_10 0x0a20 /*0x0102*/
#define CALENDAR_11 0x0a40 /*0x0104*/
#define CALENDAR_12 0x0a80 /*0x0108*/
#define CALENDAR_13 0x0a01 /*0x0110*/
#define CALENDAR_14 0x0a02 /*0x0120*/
#define CALENDAR_15 0x0a04 /*0x0140*/
#define CALENDAR_16 0x0a08 /*0x0180*/
#define _SEG_MUSIC_CD EMPTY
#define _SEG_VCD 0x0204
#define _SEG_CDI EMPTY
#define _SEG_VIDEO 0x0901
#define _SEG_KARAOKE EMPTY
#define _SEG_KEY_PLUS EMPTY
#define _SEG_KEY_MINUS EMPTY
#define _SEG_KEY_RESUME EMPTY
#define _SEG_MEMORY 0x0304
#define _SEG_PROGRAM 0x0880
#define _SEG_RANDOM 0x0840
#define _SEG_REPEAT 0x0380
#define _SEG_REP_1 0x0340
#define _SEG_REP_ALL 0x0320
#define _SEG_REP_A 0x0310
#define _SEG_REP_B 0x0308
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -