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

📄 define.h

📁 LCDTV的source code,含周邊ic的driver code ,scaler ,
💻 H
📖 第 1 页 / 共 2 页
字号:
/*******************************************************************************
  DEFINE.H
  Copyright (c) SmartASIC, Inc. All rights reserved.
*******************************************************************************/
/*==============================================================================
  Complier Definition
==============================================================================*/
#define DEBUG        0//Debug Interface
#define POWER_MEM    0//Power Status Memory
#define FACTORY_PASSWORD  0


/*==============================================================================
  OSD Delay Definition
==============================================================================*/
#define HOT_TIMER     3//3 seconds
#define DISPLAY_TIMER 5//5 seconds


/*==============================================================================
  General Definition
==============================================================================*/
#define ON       0
#define OFF      1
#define LOW      0
#define HIGH     1
#define NO       0
#define YES      1


/*==============================================================================
  Keyboard Definition
==============================================================================*/
#define KEY_NULL      0x00
#define KEY_SOURCE    0x01
#define KEY_MENU      0x02
#define KEY_VOL_MINUS 0x04
#define KEY_VOL_PLUS  0x08
#define KEY_CH_MINUS  0x10 
#define KEY_CH_PLUS   0x20
#define KEY_POWER     0x40


/*==============================================================================
  Remote Control Definition
==============================================================================*/
#define REMOTE_SYS1   0x87
#define REMOTE_SYS2   0xa7
#define REMOTE_00     0x00
#define REMOTE_01     0x6c
#define REMOTE_02     0x80
#define REMOTE_03     0x84
#define REMOTE_04     0xa0
#define REMOTE_05     0x8c
#define REMOTE_06     0x88
#define REMOTE_07     0x4c
#define REMOTE_08     0x94
#define REMOTE_09     0x40
#define REMOTE_INFO   0x20
#define REMOTE_RECALL 0x9c
#define REMOTE_EXIT   0x10
#define REMOTE_STDBY  0xa8
#define REMOTE_CHUP   0x50
#define REMOTE_CHDN   0x38
#define REMOTE_VOLUP  0x54
#define REMOTE_VOLDN  0x44
#define REMOTE_MENU   0x2c
#define REMOTE_SELECT 0x90
#define REMOTE_UP     0x70
#define REMOTE_DOWN   0x30
#define REMOTE_LEFT   0xb8
#define REMOTE_RIGHT  0x04
#define REMOTE_MUTE   0x64
#define REMOTE_OPT1   0x98//SLEEP
#define REMOTE_OPT2   0xb0//V-CHIP
#define REMOTE_OPT3   0x58//MTS
#define REMOTE_OPT4   0x24//INPUT
#define REMOTE_NULL   0xff


/*==============================================================================
  Signal Definition
==============================================================================*/
#define AV1     0
#define AV2     1
#define AV3     2
#define TV      3


/*==============================================================================
  MCU EEPROM Maping Definition
==============================================================================*/
//System
#define EE_SOURCE               0x000
#define EE_LANGUAGE             0x001
#define EE_COLOR_TEMP           0x002
#define EE_CAPTION              0x003
#define EE_VCHIP                0x004
#define EE_OSD_DISP             0x005
#define EE_SLEEP                0x006
#define EE_OSD_HPOS             0x007
#define EE_OSD_VPOS             0x008
#define EE_OSD_OFF_TIME         0x009
#define EE_POWER_STATUS         0x00A
#define EE_BUILT_IN_DVD         0x00B
//Source Dependent Parameter
#define EE_AV1_PARA             0x010
#define EE_AV2_PARA             0x020
#define EE_AV3_PARA             0x030
#define EE_TV_PARA              0x040
#define EE_CONTRAST         0
#define EE_BRIGHTNESS       1
#define EE_SATURATION       2
#define EE_HUE              3
#define EE_SHARPNESS        4
#define EE_7114_CONTRAST    5
#define EE_7114_LUMINANCE   6
#define EE_BACK_LIGHT       7
//Color Temperature
#define EE_COLOR_STD            0x050
#define EE_COLOR_WARM           0x058
#define EE_COLOR_COOL           0x060
//Audio parameters
#define EE_VOLUME               0x070
#define EE_TREBLE               0x071
#define EE_BASS                 0x072
#define EE_BALANCE              0x073
#define EE_MUTE                 0x074
//TV parameters
#define EE_TV_MODE              0x080
#define EE_MTS_MODE             0x081
#define EE_CHANNEL_AIR          0x082
#define EE_CHANNEL_STD          0x083
#define EE_CHANNEL_IRC          0x084
#define EE_CHANNEL_HRC          0x085
//Password
#define EE_PASSWORD             0x090//0x0B0-0x0B3
//VChip
#define EE_VCHIP_SET            0x0A0//0x0C0-0x0C5
//TV AIR ChannelTable
#define EE_TV_AIR_CHANNEL_TABLE     0x100
#define EE_AIR_CHANNEL_LOCK_TABLE   0x110
//CATV STD ChannelTable
#define EE_CATV_STD_CHANNEL_TABLE   0x120
#define EE_STD_CHANNEL_LOCK_TABLE   0x130
//CATV IRC ChannelTable
#define EE_CATV_IRC_CHANNEL_TABLE   0x140
#define EE_IRC_CHANNEL_LOCK_TABLE   0x150
//CATV HRC ChannelTable
#define EE_CATV_HRC_CHANNEL_TABLE   0x160
#define EE_HRC_CHANNEL_LOCK_TABLE   0x170
//Burning Flags
#define EE_BURN1                0x3FD
#define EE_BURN2                0x3FE
#define EE_BURN3                0x3FF


/*==============================================================================
  VIDEO Definition
==============================================================================*/
#define NOVIDEO     0x00
#define PAL         0x01
#define NTSC        0x02
#define SECAM       0x03


/*==============================================================================
  TV System Definition
==============================================================================*/
#define TV_AIR     0x00
#define CATV_STD   0x01
#define CATV_IRC   0x02
#define CATV_HRC   0x03


/*==============================================================================
  OSD Definition
==============================================================================*/
#define BLACK           0
#define RED             1
#define GREEN           2
#define YELLOW          3
#define BLUE            4
#define MAGENTA         5
#define CYAN            6
#define WHITE           7
#define BLINK           8
#define RINT            4
#define CHS             2
#define CWS             1
#define BCOLOR          8
#define WINT            16
#define WSHD            8


/*==============================================================================
  MSP 34X5G Definition
==============================================================================*/
//IIC
#define CONTROL 0x00
#define WR_DEM  0x10
#define RD_DEM  0x11
#define WR_DSP  0x12
#define RD_DSP  0x13
//OUTPUT SELECT
#define LOUDSPEAKER 0x0008
#define SCART1_DA   0x000A
#define I2S         0x000B
#define QUASI_PEAK  0x000C
//INPUT SELECT
#define FMAM        0
#define STEREOORAB  1
#define STEREOORA   3
#define STEREOORB   4
#define I2S1        5
#define I2S2        6
#define SCART       2
#define SC1_IN      1
#define SC2_IN      2
//MATRIX
#define AMONO       0x00
#define BMONO       0x10
#define STEREO      0x20
#define MONO        0x30


/*==============================================================================
  Adjustable Range Definition
==============================================================================*/
//Bar
#define BAR_LENGTH        100
//Video
#define CONTRAST_MAX      32
#define CONTRAST_MIN      0
#define BRIGHTNESS_MAX    32
#define BRIGHTNESS_MIN    0

⌨️ 快捷键说明

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