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

📄 defines.h

📁 GM5621原代码
💻 H
字号:
/*
	$Workfile:   defines.h  $
	$Revision:   1.59  $
	$Date:   May 18 2006 02:51:22  $
*/

//******************************************************************
//
//		Copyright (C) 2002.  GENESIS MICROCHIP INC.
// All rights reserved.  No part of this program may be reproduced
//
//	Genesis Microchip Corp., 2150 Gold Street
//			Alviso, CA 95002	USA
//	Genesis Microchip Inc., 165 Commerce Valley Dr. West
//		Thornhill, Ontario, Canada, L3T 7V8
//
//================================================================
//
// MODULE:      defines.h
//
// USAGE :      Header file that defines global definitions, enums, etc..
//
//******************************************************************
#ifndef _DEFINE_H_
#define _DEFINE_H_

	 // Color modes
	typedef enum ColorModesEnum
	{
		COLOR_SRGB,		// sRGB
		COLOR_USER,		// user color
		COLOR_TEMP0,	// color temperature 0
		COLOR_TEMP1,
		COLOR_TEMP2,
		COLOR_TEMP3,
		COLOR_TEMP4,
		COLOR_TEMP5,
		COLOR_TEMP6,
		COLOR_TEMP7,
		MAX_COLOR_CONTROL
	} COLOR_MODE;

	typedef struct ColorTempStruct
	{
		BYTE R;
		BYTE G;
		BYTE B;
	} ColorTempType;

	 // possible parameters for ParseCommand() function
    typedef enum HANDLER_USE
    {
    	SERIAL_USE,
		DDC2BI_USE
	}HANDLER_USE_t;


	// Add enum to support the overlapped modes
	// Bit 2 : Overlapped mode
	// Bit 1 :	350/400
	// Bit 0 : 	640/720		Graphics/Dos
	typedef enum OverlappedEnum
	{
		Default			= 0,
		Graphics		= 4,
		DOS				= 5,
		EndOfEnum
	} OverlappedModeType;

	//**************************************************************
	//	         STRUCTURES
	//**************************************************************
   //SystemStatusFlags defines those flash which required to be saved in nvram after power off,
   //they are different from common system flags defined in  SystemFlagsStruct struct, which
   //are not required to be saved in nvram after power off.  In previous design of applications,
   //some of them are defined as BYTE variable, we group them here to save RAM space.
    typedef struct SystemStatusFlags
    {
      WORD	IsFactoryModeOn 					: 1;  //1: can enable factory mode/menu; 0: factory mode disabled
      WORD	CanTestPatternBeOn  				: 1;  //1: can enable test pattern but test pattern may not running; 0: can not be enabled
      WORD  IsTestPatternRunning				: 1;	//1: test pattern is running; 0: not running
      WORD  IsTestPatternActivedFromKey	: 1;	//1: test pattern activated by key; 0: activated by no sync
      WORD	IsAutoScanOn   	  				: 1;  //1: Auto scan is enabled; 0: disabled
      WORD	IsAudioOn     						: 1;  //1: Auduio is on; 0: mute
    	WORD	IsResNoticeOn 						: 1;  //1: Resolution dialog notifier is on; 0: disabled
      WORD  IsPowerDownOOR   					: 1;  //1: power down when after showing out of range; 0: disabled
      WORD  IsShowInputSourceOn 				: 1;  //1: show input source each time change input port; 0: disabled
      WORD  IsOsdLocked							: 1;  //1: osd is locked; 0: disabled;
    }SystemStatusStruct;

    typedef struct SystemInfoNVRAMStruct
    {
    	BYTE B_LastActivePort;
      SystemStatusStruct status;          //NOTE: nvram block size in WB has to be changed to match this
    }SystemInfoNVRAMType;

	typedef struct IA_ADCCalibrationStruct
    {
    	BYTE	B_RedOffset;
        BYTE	B_GrnOffset;
        BYTE	B_BluOffset;
		WORD	W_RedGain;
        WORD	W_GrnGain;
        WORD	W_BluGain;
	} IA_ADCCalibrationType;

	typedef struct StandardModeStruct   // Structure for standard mode LUT
	{
	    WORD StdHFreq;   	// Standard H. frequency in 100 Hz unit
	    BYTE DeltaHFreq;  	// H. frequency tolerance in 100 Hz unit

		 WORD StdVTotal; 	// Standard V. total in line unit
		BYTE DeltaVTotal; 	// V. total tolerance in line unit

		 WORD StdHTotal; 	// Standard H. total in pixel unit
		 WORD StdWidth;  	// Standard width in pixel unit
		 WORD StdHeight; 	// Standard height in line unit
		 WORD StdHBackPorch; // Standard H. back porch in pixel unit
		 BYTE StdVBackPorch; // Standard V. back porch in line unit
		 BYTE StdHSyncWidth; // Standard H. start in pixel unit
		 BYTE StdVSyncWidth; // Standard V. start in line unit

		 WORD ModeType; 		// Input Mode type
	} StandardModeType;

	typedef enum InputPortEnum
	{
		IP_RGB,
		IP_DVI,
		IP_VIDEO,
		IP_COMPONENT,            
		IP_VIDEO_ON_RGB,
		IP_VIDEO_ON_DVI
	} INPUT_PORTS;

	typedef struct EstimatedModeStruct   // Structure for standard mode LUT
	{
	    WORD MaxVTotal; 	// Standard V. total in line unit
	    WORD StdHTotal; 	// Standard H. total in pixel unit
	    WORD StdWidth;  	// Standard width in pixel unit
	    WORD StdHeight;  	// Standard height in line unit
	} EstimatedModeType;

	typedef struct SystemFlagsStruct
	{
		WORD PowerSaving        : 1;
		WORD SyncDetect         : 1;
		WORD SystemNormal       : 1;
		WORD StartAutoAdjust    : 1;
		WORD AutoAdjustComplete : 1;
		WORD AA_SaveModeWhenDone: 1;
		WORD ModeHandlerOff     : 1;
		WORD MuteAudio          : 1;
		WORD CableDetect 			: 1;
		WORD SplashScreen       : 1;
		WORD TestPatternRunning : 1;
		WORD TestPatternActiveFromKey: 1;
		WORD MH_SleepMode       : 1;
      WORD RequestAutoAdjust  : 1;
      WORD OsdLockKeyTriggered : 1;
#ifdef PHOENIX_U
      WORD DVI_Sleep          : 1;  // Add for DVI DPMS issue
#endif
	} SystemFlagsType;

	typedef enum MsgToOsdEnum
	{
		MTO_POWER_ON = 1,
		MTO_POWER_STANDBY ,
		MTO_POWER_SUSPEND,
		MTO_POWER_DOWN_NOTICE,
		MTO_POWER_DOWN,
  		MTO_NO_SYNC,
		MTO_NO_CABLE,
		MTO_VALID_MODE,
		MTO_MODE_CHANGE,
		MTO_OUT_OF_RANGE,
		MTO_SUBSAMPLE,
		MTO_SPLASH_SCREEN,
      MTO_AUTO_ADJ,
      MTO_SYNC_STANDBY,
		MTO_SYNC_SUSPEND,
		MTO_REQ_HARD_POWER_DOWN,
		MTO_INPUT_RGB,
		MTO_INPUT_DVI,
		MTO_START_AUTO,
      MTO_AUTO_COMPLETE,
      MTO_AUTO_SUCCESS,
      MTO_AUTO_FAILED,
      #if THEFT_DETERRENCE_SUPPORT
      MTO_THEFT_DETERRENCE		//THEFT_DETERRENCE_SUPPORT
      #endif
	}	MsgToOsdType;

	typedef enum MsgToPHEnum
	{
		MTP_SOFTKEY_OFF = 1,
		MTP_SOFTKEY_ON,
		MTP_POWER_DOWN,
 		MTP_POWER_UP,
		MTP_OUT_OF_RANGE_POWER_DOWN,
		MTP_OUT_OF_RANGE_POWER_UP
	}	MsgToPHType;

	//Osd Acc Acm Setting
	typedef enum
	{
		WindowEnableBit		= BIT0,
		AccEnableBit 		= BIT1,
		AcmEnableBit 		= BIT2,

		AccBinRangeMask    = (BIT1 | BIT3),
		AccBin1       	   = BIT1,
		AccBin2 		   = (BIT1 | BIT3),

		YCLinkEnableBit	   = BIT4,
		YCLinkMask         = (BIT4 | BIT5),
		YCLinkMode1		   = BIT4,
		YCLinkMode2		   = (BIT4 | BIT5),

		ACMModeMask 		= (BIT6 | BIT7),
		ACMModeFleshTone	= BIT6,
		ACMModeColorEnhance	= BIT7,
		ACMModeGreenEnhance = (BIT6 | BIT7),

		//window setting
		WindowMask 			= (BIT8 | BIT9 | BIT10 | BIT11),
		WindowLetterBox 	= BIT8,
		WindowLeftLetterBox = (BIT8 | BIT9),
		WindowFullScreen 	= (BIT8 | BIT10),
		WindowDDCCISetting  = (BIT8 | BIT9 | BIT10),
		WindowLetterBox2 	= (BIT8 | BIT11)
	} OsdAccAcmSettingType;

    typedef enum AcmModesEnum
    {
        ACM_MODE_NORMAL,
        ACM_MODE_CINEMA,
        ACM_MODE_VIVID,
        ACM_MODE_GAME,
        ACM_MODE_SPORT,    
        ACM_MODE_SIXAXIS,
    };
    

	typedef enum DeviceEnum
	{
		DEV_NONE    = 0x00,
		DEV_VPC3230,
		DEV_MSP3452,
		DEV_FQ1236,
		DEV_SAA7119,
		DEV_TW9906,
		DEV_TW9910,
		DEV_TDA7496
	}DeviceType;

	typedef struct PowerUpFlagStruct
	{
		WORD ReqPowerOn_Key     : 1;	// Power Key pressed to turn on power
		WORD ReqPowerOff_Key		: 1;	// Power key pressed to turn down power
		WORD ReqPowerOn_Sync    : 1;	// sync signal is present
		WORD ReqPowerOff_Sync   : 1;	// sync signal is not present and "No Signal" message is off.
		WORD PowerOnState       : 1;	// current power state regardless.
		WORD SoftPowerOnState   : 1;	// current power state for soft power
		WORD SyncPowerOnState   : 1;	// current power state for sync signal
	} PowerUpFlagType;


#endif

⌨️ 快捷键说明

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