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

📄 nintause_vfd.c

📁 Zoran V966 DVD 解码 Soc芯片的源程序
💻 C
字号:
///////////////////////////////////
//Nintaus  VFD DISPLAY
/****************************************************************************************************
*  Copyright (c) 2005 ZORAN Corporation, All Rights Reserved
*  Created by William Lei 2005/12/25
*
*  File: fp_handler_config.c
*
* Description:
* =========
*
****************************************************************************************************/

#define D_VFD_7SEG

#include "UI_Manager\FP_Handler\fp_handler_config.h"

#ifndef D_TEST
#define MAX_GRID		7
#endif

#define MAX_DIGIT		7

//客户信息 
//customer's informaton

//请告诉我们VFD 驱动芯片的型号和数字符号的大概间隔和位置
//Please tell us the type of the VFD driver chip , the position and space of the digital number signs
//1. 6312     2. 6311






//Nintaus VFD
//请告诉我们图标所在的位置
//Please tell us about your icon's locations!
#define VFD_ANGLE			0x0000
#define VFD_DVD				G4P6
#define VFD_SUPER			0x0000
#define VFD_V				0x0000
#define VFD_CD				0x0000
#define VFD_SVCD			G1P6
#define VFD_VCD				G1P6
#define VFD_MP3				G3P5
#define VFD_MP4				G2P5

#define VFD_S1				G6P7//
#define VFD_S2				G3P7
#define VFD_S3				G2P7
#define VFD_S4				G5P7//
#define VFD_S5				G1P7
#define VFD_S6				G7P7//

#define VFD_PBC				0x0000
#define VFD_PROGRAM		0x0000
#define VFD_RAND			0x0000
#define VFD_REPEAT			0x0000
#define VFD_ALL				0x0000  
#define VFD_A_MINUS		0x0000
#define VFD_B_END			0x0000
#define VFD_PLAY			G4P5
#define VFD_PAUSE			G1P5
#define VFD_DTS				G6P5
#define VFD_DOLBY			G3P6
#define VFD_TOTAL			0x0000
#define VFD_DIGITAL			0x0000
#define VFD_PROLOGIC		0x0000
#define VFD_TITLE			0x0000
#define VFD_CHAPTER			0x0000
#define VFD_TOTAL			0x0000
#define VFD_LOCK			0x0000
#define VFD_KARAOKE		0x0000

#define VFD_AM				0x0000
#define VFD_FM				0x0000
#define VFD_MEMORY			0x0000
#define VFD_KHZ				0x0000
#define VFD_MHZ				0x0000
#define VFD_SIGNAL			0x0000
#define VFD_DOT				0x0000

#define VFD_TRACK_COL		0x0000
#define VFD_HOUR_COL		G5P6
#define VFD_MIN_COL			G5P5

#define VFD_S_NUM			6
#define VFD_S_LIGHT			5
#if VFD_S_NUM
CONST unsigned int VFD_S_Rotate[VFD_S_NUM][VFD_S_LIGHT] =
{
//	{/*VFD_S1, VFD_S1_,*/VFD_S2,VFD_S2_,VFD_S3,VFD_S3_, VFD_S4,VFD_S4_,},
//	{VFD_S1, VFD_S1_,/*VFD_S2,VFD_S2_,*/VFD_S3,VFD_S3_, VFD_S4,VFD_S4_,},
//	{VFD_S1, VFD_S1_,VFD_S2,VFD_S2_,/*VFD_S3,VFD_S3_,*/VFD_S4,VFD_S4_,},
//	{VFD_S1, VFD_S1_,VFD_S2,VFD_S2_,VFD_S3,VFD_S3_,/* VFD_S4,VFD_S4_,*/},

	{/*VFD_S1,*/ VFD_S2,  VFD_S3,VFD_S4, VFD_S5,VFD_S6},
	{VFD_S1, /*VFD_S2*/  VFD_S3,VFD_S4, VFD_S5,VFD_S6},
        {VFD_S1,   VFD_S2, /* VFD_S3*/VFD_S4, VFD_S5,VFD_S6},
        {VFD_S1,   VFD_S2,  VFD_S3,/*VFD_S4*/VFD_S5,VFD_S6},
        {VFD_S1,   VFD_S2,  VFD_S3,VFD_S4,/* VFD_S5*/VFD_S6},
        {VFD_S1,   VFD_S2,  VFD_S3,VFD_S4, VFD_S5,/*VFD_S6*/},
};
#endif
/*
 * 7 segment:
 *	    a
 *	 -------
 *    f| \      | b
 *	 |h \    |
 *	 -------
 *    e|g   \  | c
 *	 |     h\ |
 *	 -------
 *	    d
  */
const unsigned int VFD_Char_Segments[7][8] = {
// 从左到右第一个显示数字的符号(the first digit from left to right)
/*1*/    {/*a*/0, /*b*/G6P6, /*c*/G2P6, /*d*/0, /*e*/0, 
               /*f*/0, /*g*/0, /*h*/CHAR_},  

// 从左到右第二个显示数字的符号(the second digit from left to right)
/*2*/    {/*a*/G4P10, /*b*/G3P10, /*c*/G2P10, /*d*/G1P10, /*e*/G5P10, 
               /*f*/G6P10, /*g*/G7P10, /*h*/CHAR_},

// 从左到右第三个显示数字的符号(the third digit from left to right)
/*3*/    {/*a*/G4P9, /*b*/G3P9, /*c*/G2P9, /*d*/G1P9, /*e*/G5P9, 
               /*f*/G6P9, /*g*/G7P9, /*h*/CHAR_},    

// 从左到右第四个显示数字的符号(the forth digit from left to right)
/*4*/     {/*a*/G4P8, /*b*/G3P8, /*c*/G2P8, /*d*/G1P8, /*e*/G5P8, 
               /*f*/G6P8, /*g*/G7P8, /*h*/CHAR_},  

// 从左到右第五个显示数字的符号(the fifth digit from left to right)
/*5*/    {/*a*/G4P2, /*b*/G3P2, /*c*/G2P2, /*d*/G1P2, /*e*/G5P2,
               /*f*/G6P2, /*g*/G7P2, /*h*/CHAR_},   

// 从左到右第六个显示数字的符号(the sixth digit from left to right)
/*6*/     {/*a*/G4P3, /*b*/G3P3, /*c*/G2P3, /*d*/G1P3, /*e*/G5P3, 
               /*f*/G6P3, /*g*/G7P3, /*h*/CHAR_},   

// 从左到右第七个显示数字的符号(the seventh digit from left to right)
/*7*/    {/*a*/G4P4, /*b*/G3P4, /*c*/G2P4, /*d*/G1P4, /*e*/G5P4, 
               /*f*/G6P4, /*g*/G7P4, /*h*/CHAR_},   
};

//for DVD location
#define VFD_DVD_TITLE_HI		0
#define VFD_DVD_TITLE_LO		0
#define VFD_DVD_CHAPTER_HI	VFD_DIGIT_NO_2
#define VFD_DVD_CHAPTER_LO	VFD_DIGIT_NO_3
#define VFD_DVD_HOUR			0
#define VFD_DVD_HOUR_COL		0

//for MP3/JPEG/WMA/DIVX
#define VFD_CDR_TRACK_FOUR	0
#define VFD_CDR_TRACK_THREE	0
#define VFD_CDR_TRACK_TWO		VFD_DIGIT_NO_2
#define VFD_CDR_TRACK_ONE		VFD_DIGIT_NO_3
#define VFD_CDR_TRACK_COL		0

//for VCD/SVCD/CD
#define VFD_CD_TRACK_HI		VFD_DIGIT_NO_2
#define VFD_CD_TRACK_LO		VFD_DIGIT_NO_3
#define VFD_CD_TRACK_COL		0

//for VCD/SVCD/CD/CDR hour & Col
#define VFD_CD_HOUR			0
#define VFD_CD_HOUR_COL		0

//for all disc min & sec
#define VFD_MIN_HI				VFD_DIGIT_NO_4
#define VFD_MIN_LO				VFD_DIGIT_NO_5
#define VFD_SEC_HI				VFD_DIGIT_NO_6
#define VFD_SEC_LO				VFD_DIGIT_NO_7
#define VFD_CD_MIN_COL			VFD_MIN_COL

//for tuner mode
#define VFD_TUNER_STATION_HI	VFD_DIGIT_NO_1
#define VFD_TUNER_STATION_LO	VFD_DIGIT_NO_2
#define VFD_TUNER_FREQ_FOUR	VFD_DIGIT_NO_6
#define VFD_TUNER_FREQ_THREE	VFD_DIGIT_NO_7
#define VFD_TUNER_FREQ_TWO	VFD_DIGIT_NO_8
#define VFD_TUNER_FREQ_ONE	VFD_DIGIT_NO_9

//VFD String
static LPCSTR VFD_Load_Str = "   LOAD";

static LPCSTR VFD_Open_Str = "   OPEN";

static LPCSTR VFD_Close_Str = "  CLOSE";

static LPCSTR VFD_Nodisc_Str = " NODISC";

static LPCSTR VFD_Nocard_Str = " NOCARD";

static LPCSTR VFD_Baddisc_Str = "  ERROR";

static LPCSTR VFD_Badcard_Str = " BDCARD";

static LPCSTR VFD_Hdcd_Str = "   HDCD";
	
static LPCSTR VFD_Cdupdate_Str = " UPDATE";

static LPCSTR VFD_Off_Str = "       ";//"   OFF ";

static LPCSTR VFD_Jpeg_Str = "   JPEG";

static LPCSTR VFD_Philips_Str = "PHILIPS";

static LPCSTR VFD_CDDA_Str = "   CDDA";

static LPCSTR VFD_VCD_Str = " VCD";

static LPCSTR VFD_SVCD_Str = "  SVCD";

static LPCSTR VFD_DVD_Str = " DVD";

static LPCSTR VFD_Stop_Str = "   STOP";

static LPCSTR VFD_Standby_Str = "  -OFF-";

//客户信息结束
//the end of customer's information

⌨️ 快捷键说明

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