Lcd_func.h
上传用户:xmyjxjd
上传日期:2013-05-04
资源大小:1517k
文件大小:15k
开发平台:

C/C++

  1. #include "HEADERMain_def.h"
  2. // Definitions for Wait_For_Event Function
  3. #define EVENT_IVS               0x01
  4. #define EVENT_IEN_START         0x02
  5. #define EVENT_IEN_STOP          0x04
  6. #define EVENT_DVS               0x08
  7. #define EVENT_DEN_START         0x10
  8. #define EVENT_DEN_STOP          0x20
  9. #define EVENT_UNDERFLOW         0x40
  10. #define EVENT_OVERFLOW          0x80
  11. #define EVENT_INPUT             EVENT_IVS | EVENT_IEN_START | EVENT_IEN_STOP
  12. #define EVENT_DISPLAY           EVENT_DVS | EVENT_DEN_START | EVENT_DEN_STOP
  13. typedef struct _GLOBAL_USER_DATA0
  14. {
  15.     unsigned char CONTRAST;         //E0H
  16.     unsigned char BRIGHT;           //E1H
  17.     unsigned char RTD_R_CONTRAST;   //E2H
  18.     unsigned char RTD_G_CONTRAST;   //E3H
  19.     unsigned char RTD_B_CONTRAST;   //E4H
  20.     unsigned char RTD_R_BRIGHT;     //E5H
  21.     unsigned char RTD_G_BRIGHT;     //E6H
  22.     unsigned char RTD_B_BRIGHT;     //E7H
  23. }
  24. GLOBAL_USER_DATA0, *LP_GLOBAL_USER_DATA0;
  25. typedef struct _GLOBAL_USER_DATA1
  26. {
  27.     unsigned char FUNCTION;         //E8H   //bit 7     [ Reserved        ]
  28.                                             //bit 6~5   [ Gamma           ]
  29.                                             //bit 4     [ Mode Select   0:720x400  1:640x400 ] 
  30.                                             //bit 3     [ Power status    ]
  31.                                             //bit 2~0   [ Language        ]
  32.                                             //            0-English
  33.                                             //            1-German
  34.                                             //            2-French
  35.                                             //            3-Italian
  36.                                             //            4-Spanish
  37.                                             //            5-Traditional Chinese
  38.                                             //            6-Simple Chinese
  39.                                             //            7-Japaness
  40.     unsigned char INPUT_SOURCE;     //E9H   //bit 7~5   [ Osd translucent]
  41.                                             //          [ 000 :          Disable               ]
  42.        //          [ 001 ~ 111 :    level 1/8 ~ 7/8       ] 
  43.                                             //bit 6     [ Reserved  ]
  44. //bit 5     [ Reserved  ]
  45. //bit 4~3   [ 00 :          C1    9300             ]
  46. //          [ 01 :          C2    6500             ]
  47. //          [ 02 :          C3    5800             ]
  48.                                             //          [ 03 :          user mode              ]
  49.                                             //bit 2~0   [ Input Source  0:RGB  1:AV  2:S-VIDEO ]
  50.                                             //          [               3:YUV  4:TV            ] 
  51.     unsigned char FILTER;           //EAH    
  52.     unsigned int  OSD_POSH;         //EBH
  53.     unsigned char OSD_POSV;         //ECH
  54.     unsigned char OSD_TIMEOUT;      //EDH  
  55.     unsigned char OSD_INPUT;     //EEH //anson 05_0314
  56. // bit 7~6   [ Reserved  ]
  57. // bit 5     [ New_Mode :  0-->NO , 1-->YES ]
  58. // bit 4~0   [ Reserved  ]
  59. }
  60. GLOBAL_USER_DATA1, *LP_GLOBAL_USER_DATA1;
  61. typedef struct _GLOBAL_USER_DATA2
  62. {
  63.     unsigned char AD_R_GAIN;        //F0H   //ADC Color Gain R
  64.     unsigned char AD_G_GAIN;        //F1H   //ADC Color Gain G
  65.     unsigned char AD_B_GAIN;        //F2H   //ADC Color Gain B
  66.     unsigned char AD_R_OFFSET;      //F3H   //ADC Color Offset R
  67.     unsigned char AD_G_OFFSET;      //F4H   //ADC Color Offset G
  68.     unsigned char AD_B_OFFSET;      //F5H   //ADC Color Offset B
  69. }
  70. GLOBAL_USER_DATA2, *LP_GLOBAL_USER_DATA2;
  71. typedef struct _GLOBAL_USER_DATA3
  72. {
  73.     unsigned char VOLUME;           //F8H
  74.     unsigned char CURR_CHANNEL;     //F9H
  75.     unsigned char PREV_CHANNEL;     //FAH
  76.     unsigned char TV_SETTING;       //FBH  
  77. //bit 7~6   Reserved
  78. //bit 5     Burning mode //anson
  79. //bit 4     Reserved
  80. //bit 3     factory mode //anson
  81. //bit 2     [ SOUND     0: Stereo   ]
  82. //          [           1: SAP      ]
  83. //bit 1     [           0: Normal   ]
  84. //          [           1: Mute     ]
  85. //bit 0     [ SYSTEM    0: Air TV   ]
  86. //          [           1: CATV     ]
  87.     unsigned char SPREAD; //FCH //anson
  88. }
  89. GLOBAL_USER_DATA3, *LP_GLOBAL_USER_DATA3;
  90. typedef struct _GLOBAL_USER_DATA4    //Color temperature 9300