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

📄 global.h

📁 本人以前做的一个DVD+TV 项目
💻 H
字号:
#ifndef _H_GLOBAL_
#define _H_GLOBAL_
#define FALSE  0
#define TRUE    1
#define PIN_HIGH  0
#define PIN_LOW   1
//#define IR_16MHZ
//#define IR_12MHZ
//#define IR_6MHZ
//#define IR_3580KHZ

#define IR_NONE                0xff
#define IR_NUM0                0x00
#define IR_NUM1                0x01
#define IR_NUM2                0x02
#define IR_NUM3                0x03
#define IR_NUM4                0x04
#define IR_NUM5                0x05
#define IR_NUM6                0x06
#define IR_NUM7                0x07
#define IR_NUM8                0x08
#define IR_NUM9                0x09
#define IR_ADD10               0x0a
#define IR_ADD20               0x0b
#define IR_ADD5                0x0c
#define IR_TV_SEARCH  0x0d
#define  IR_TV_DVD          0x0e
#define IR_TV_POWER   0x0f
#define IR_NEXT_CH       0x10
#define IR_PREV_CH       0x11
#define IR_TV_MENU	0x12
#define IR_DISPLAY	0x13
#define IR_TV_SEARCH_RETURN  0x14
//DVD IR 
#define IR_ROOT_MENU	0x20
#define IR_UP		0x21
#define IR_DOWN		0x22
#define IR_LEFT		0x23
#define IR_RIGHT		0x24
#define IR_PLAY_ENTER	0x25
#define IR_STOP		0x26
#define IR_EJECT		0x27
#define IR_PREV		0x28
#define IR_NEXT		0x29


	

#define  DISP_OSD_CLEAR   			0
#define  DISP_OSD_VHF_L   			1
#define  DISP_OSD_VHF_H   			2
#define  DISP_OSD_UHF   			3
#define  DISP_OSD_HYPHEN 			4
#define  DISP_OSD_VIDEO_INPUT 		5
#define  DISP_OSD_CAAV   			6
#define  DISP_OSD_MENU_HEAD		7
#define  DISP_OSD_TOTAL_BAND		8
#define  DISP_OSD_CURR_BAND		9
#define  DISP_OSD_ERROR			10
#define  DISP_OSD_SEARCHING		11
#define  DISP_OSD_AUTO_SEARCH		12
#define  DISP_OSD_DVD			13

#define    CHANNEL_NUM0_POS		0*24+22
#define    CHANNEL_NUM1_POS		0*24+21
#define    CHANNEL_NUM2_POS		0*24+20

#define    CHANNEL_MENU_NUM_POS1		2*24+17
#define    CHANNEL_MENU_NUM_POS2		3*24+17
#define    CHANNEL_MENU_NUM_POS3		4*24+17
#define    CHANNEL_MENU_NUM_POS4		5*24+17
#define    CHANNEL_MENU_NUM_POS5		6*24+17
#define    CHANNEL_MENU_NUM_POS6		7*24+17

#define    SEARCHING_BAR_START_POS		7*24+1
#define    SEARCHING_NUM_POS				6*24+19
#define    CHANNEL_MAX				0xff

//24c02 struct
#define   EEPROM_START_ADDR	 			0x01
#define   TOTAL_CHANNEL_NUM_ADDR		EEPROM_START_ADDR+1		
#define    VHFL_CHANNEL_NUM_ADDR		EEPROM_START_ADDR+2
#define    VHFH_CHANNEL_NUM_ADDR		EEPROM_START_ADDR+3
#define    UHF_CHANNEL_NUM_ADDR			EEPROM_START_ADDR+4
#define    CURRENT_CHANNEL_NUM_ADDR		EEPROM_START_ADDR+5
#define  FIRST_CHANNEL_FREQ			CURRENT_CHANNEL_NUM_ADDR+1	

#define  FIRST_VALID_CHANNEL_FREQ		CURRENT_CHANNEL_NUM_ADDR+70	
#define PLAYER_STATUS_ADDR			120		
#define PLAYER_STATUS_DVD			0
#define PLAYER_STATUS_TVPLAYING			1
#define PLAYER_STATUS_TV_SEARCH		2
#define PLAYER_STATUS_TV_SELECT_0		3
#define PLAYER_STATUS_TV_SELECT_1		4
#define PLAYER_STATUS_TV_SELECT_2		5
#define PLAYER_STATUS_PROC_KEY			6
#define PLAYER_STATUS_VIDEO_INPUT		7


#define DISPLAY_MODE0_OFF					0
#define DISPLAY_MODE1_MENU					1
#define DISPLAY_MODE2_BAND					2


#endif

⌨️ 快捷键说明

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