Lcd_func.h
上传用户:xmyjxjd
上传日期:2013-05-04
资源大小:1517k
文件大小:15k
- #include "HEADERMain_def.h"
- // Definitions for Wait_For_Event Function
- #define EVENT_IVS 0x01
- #define EVENT_IEN_START 0x02
- #define EVENT_IEN_STOP 0x04
- #define EVENT_DVS 0x08
- #define EVENT_DEN_START 0x10
- #define EVENT_DEN_STOP 0x20
- #define EVENT_UNDERFLOW 0x40
- #define EVENT_OVERFLOW 0x80
- #define EVENT_INPUT EVENT_IVS | EVENT_IEN_START | EVENT_IEN_STOP
- #define EVENT_DISPLAY EVENT_DVS | EVENT_DEN_START | EVENT_DEN_STOP
- typedef struct _GLOBAL_USER_DATA0
- {
- unsigned char CONTRAST; //E0H
- unsigned char BRIGHT; //E1H
- unsigned char RTD_R_CONTRAST; //E2H
- unsigned char RTD_G_CONTRAST; //E3H
- unsigned char RTD_B_CONTRAST; //E4H
- unsigned char RTD_R_BRIGHT; //E5H
- unsigned char RTD_G_BRIGHT; //E6H
- unsigned char RTD_B_BRIGHT; //E7H
- }
- GLOBAL_USER_DATA0, *LP_GLOBAL_USER_DATA0;
- typedef struct _GLOBAL_USER_DATA1
- {
- unsigned char FUNCTION; //E8H //bit 7 [ Reserved ]
- //bit 6~5 [ Gamma ]
- //bit 4 [ Mode Select 0:720x400 1:640x400 ]
- //bit 3 [ Power status ]
- //bit 2~0 [ Language ]
- // 0-English
- // 1-German
- // 2-French
- // 3-Italian
- // 4-Spanish
- // 5-Traditional Chinese
- // 6-Simple Chinese
- // 7-Japaness
- unsigned char INPUT_SOURCE; //E9H //bit 7~5 [ Osd translucent]
- // [ 000 : Disable ]
- // [ 001 ~ 111 : level 1/8 ~ 7/8 ]
- //bit 6 [ Reserved ]
- //bit 5 [ Reserved ]
- //bit 4~3 [ 00 : C1 9300 ]
- // [ 01 : C2 6500 ]
- // [ 02 : C3 5800 ]
- // [ 03 : user mode ]
- //bit 2~0 [ Input Source 0:RGB 1:AV 2:S-VIDEO ]
- // [ 3:YUV 4:TV ]
- unsigned char FILTER; //EAH
- unsigned int OSD_POSH; //EBH
- unsigned char OSD_POSV; //ECH
- unsigned char OSD_TIMEOUT; //EDH
- unsigned char OSD_INPUT; //EEH //anson 05_0314
- // bit 7~6 [ Reserved ]
- // bit 5 [ New_Mode : 0-->NO , 1-->YES ]
- // bit 4~0 [ Reserved ]
- }
- GLOBAL_USER_DATA1, *LP_GLOBAL_USER_DATA1;
- typedef struct _GLOBAL_USER_DATA2
- {
- unsigned char AD_R_GAIN; //F0H //ADC Color Gain R
- unsigned char AD_G_GAIN; //F1H //ADC Color Gain G
- unsigned char AD_B_GAIN; //F2H //ADC Color Gain B
- unsigned char AD_R_OFFSET; //F3H //ADC Color Offset R
- unsigned char AD_G_OFFSET; //F4H //ADC Color Offset G
- unsigned char AD_B_OFFSET; //F5H //ADC Color Offset B
- }
- GLOBAL_USER_DATA2, *LP_GLOBAL_USER_DATA2;
- typedef struct _GLOBAL_USER_DATA3
- {
- unsigned char VOLUME; //F8H
- unsigned char CURR_CHANNEL; //F9H
- unsigned char PREV_CHANNEL; //FAH
- unsigned char TV_SETTING; //FBH
- //bit 7~6 Reserved
- //bit 5 Burning mode //anson
- //bit 4 Reserved
- //bit 3 factory mode //anson
- //bit 2 [ SOUND 0: Stereo ]
- // [ 1: SAP ]
- //bit 1 [ 0: Normal ]
- // [ 1: Mute ]
- //bit 0 [ SYSTEM 0: Air TV ]
- // [ 1: CATV ]
- unsigned char SPREAD; //FCH //anson
- }
- GLOBAL_USER_DATA3, *LP_GLOBAL_USER_DATA3;
- typedef struct _GLOBAL_USER_DATA4 //Color temperature 9300