📄 pa8824.h
字号:
/*********************************************************************
COPYRIGHT (C) Himax Technologies, Inc.
File name : PA8824.h
Description : Declare PA8824 head file
Author : Taylor
Create date : 2005/06/01
Modifications :
*********************************************************************/
#ifndef _PA8824_H
#define _PA8824_H
/********************** Include Section *****************************/
#include "intrins.h"
#include "i2c_control.h"
#include "timing.h"
#include "common.h"
/******************* External Function Process *********************/
#undef EXTERN
#ifdef _PA8824_C
#define EXTERN
#else
#define EXTERN extern
#endif
/****************** Register Declaration *****************************************/
//
//#define PA8824_ID 0x00 // R
//
#define OUT_TAP_DLY 0
//
/**********************************Main Chl***************************************/
#define HX8824_MAIN_INP_HSIZE 0x00 // R/W
#define HX8824_MAIN_INP_VSIZE 0x02 // R/W
#define HX8824_MAIN_INP_HTOTAL 0x04 // R/W
#define HX8824_MAIN_INP_VTOTAL 0x06 // R/W
#define HX8824_MAIN_INP_CTRL1 0x10 // R/W
#define HX8824_MAIN_INP_CTRL2 0x11 // R/W
#define HX8824_MAIN_INP_HSTART 0x12 // R/W
#define HX8824_MAIN_INP_VSTART_O 0x14 // R/W
#define HX8824_MAIN_INP_VSTART_E 0x16 // R/W
#define HX8824_MAIN_INP_CTRL3 0x18 // R/W
//
/**********************************IE Control***************************************/
//
#define HX8824_SHARPNESS 0x41 // R/W
#define HX8824_BRIGHTNESS 0x42 // R/W
#define HX8824_SATURATION 0x43 // R/W
#define HX8824_CONTRAST 0x44 // R/W
#define HX8824_HUE 0x45 // R/W
//
//**************************************GAMMA***************************************/
//
#define HX8824_GAMMA_EN 0x50 // R/W
#define HX8824_GAMMA_ADDR 0x51 // R/W
#define HX8824_GAMMA_RED 0x52 // R/W
#define HX8824_GAMMA_GREEN 0x53 // R/W
#define HX8824_GAMMA_BLUE 0x54 // R/W
//
/***************************************OSD*****************************************/
//
#define HX8824_OSD_CTRL 0xAF // R/W
#define HX8824_OSD_SIZE 0xB0 // R/W
#define HX8824_OSD_BLNKRATE 0xB1 // R/W
#define HX8824_BLOCK_POS 0xB2 // W
#define HX8824_PLATE_IND_ADR 0xB6 // W
#define HX8824_PLATE_IND_RED 0xB7 // W
#define HX8824_PLATE_IND_GRN 0xB8 // W
#define HX8824_PLATE_IND_BLUE 0xB9 // W
#define HX8824_FONT_IND_ADR 0xBA // W [12~0]
#define HX8824_FONT_IND_DATA 0xBC // W [7~ 0]
#define HX8824_OSD_CLS_CTRL 0xBD // W
#define HX8824_DISPLAY_AREA 0xBE // W
#define HX8824_ATTR0 0xC0 // W
#define HX8824_ATTR1 0xC1 // W
#define HX8824_ATTR2 0xC2 // W
#define HX8824_OSD_Alpha 0xC7 // W
#define HX8824_OSD_COLOR_FONT_NUMBER 0xC9 // W
//
//
/**********************************TCON Control***************************************/
//
#define HX8824_TCON_STH 0x80 // R/W
#define HX8824_TCON_STV 0x81 // R/W
#define HX8824_TCON_CTRL1 0x82 // R/W
#define HX8824_OUTPUT_CTRL 0x76 // R/W
//
//******************** Scaling control ***********************************************/
//
#define HX8824_RATIO_VALUE 0x20 // R/W
#define HX8824_RATIO_SIZE 0x22 // R/W
#define HX8824_RATIO_REGION 0x23 // R/W
#define HX8824_BORDER_DATA 0x24 // R/W
#define HX8824_BORDER_REGION 0x25 // R/W
#define HX8824_SC_CTRL 0x26 // R/W
#define HX8824_HS_RISE_DELAY 0x27 // R/W
#define HX8824_HS_FALL_DELAY 0x28 // R/W
//
/************************* Display Timing ****************************************/
//
#define HX8824_DSP_HTOT 0x90 // R/W [11:0]
#define HX8824_DSP_HSYNC 0x92 // R/W [11:0]
#define HX8824_DSP_HSTART 0x94 // R/W [11:0]
#define HX8824_DSP_HSIZE 0x96 // R/W [11:0]
#define HX8824_DSP_VTOT 0x98 // R/W [11:0]
#define HX8824_DSP_VSYNC 0x9A // R/W [11:0]
#define HX8824_DSP_VSTART 0x9C // R/W [11:0]
#define HX8824_DSP_VSIZE 0x9E // R/W [11:0]
#define HX8824_DSP_RESET 0xA0 // R/W [11:0]
//
//************************** PWM ****************************************/
//
#define HX8824_PMW_CTRL1 0xD7 // R/W
#define HX8824_PMW_SET_MDUTY 0xD8 // R/W [D8:D9]
//
//************************** Clock Selection ****************************/
#define HX8824_CLOCK_SELECT 0xD5
//
//************************** Dithering CTRL *****************************/
//
#define HX8824_DITHER_EN 0x70
#define HX8824_DITHER_CTRL1 0x71
#define HX8824_DITHER_CTRL2 0x72
#define HX8824_DITHER_CTRL3 0x73
#define HX8824_DITHER_CTRL4 0x74
#define HX8824_DITHER_CTRL5 0x75
//
//*************************** TEST Pattern ***********************************/
//
#define HX8824_TEST_PATTERN 0x60 // R/W
#define HX8824_PURE_PATTERN 0x61 // R/W
//
//*************************** PLL ***********************************/
//
#define HX8824_SELP 0xD0 // R/W D0:D1
#define HX8824_SELN 0xD2 // R/W
#define HX8824_SELM 0xD3 // R/W D3:D4
#define HX8824_CLK_SOURCE 0xE1 // R/W BIT 3; BIT2
/**************************** Function Prototype *****************************/
EXTERN void Init_HX8824(void);
EXTERN void Select_Video_Input(Byte VideoSrc);
EXTERN void Set_Video_Timing(Byte byMode);
EXTERN void InitAutoFunction(void);
EXTERN void SetAutoClock(Byte byIdx);
EXTERN void SetAutoPhase(Byte byIdx);
EXTERN Byte StartAutoBlock(Byte byIdx, ENUM_AutoType AutoType);
EXTERN Word GetAutoPos(Byte byIdx, ENUM_PosResultType AutoPosType);
EXTERN void SetAutoPos(Byte byIdx);
EXTERN void SetInputGeometry(Byte byIdx, ENUM_GeometryAttrib GeometryAttrib, Word value);
EXTERN void SetAutoColor_RGB (Byte byIdx);
EXTERN Byte GetAutoWhiteResult(Byte byIdx, ENUM_WhiteResultType AutoWhiteType);
EXTERN Bool Check_Sync ( void );
EXTERN Byte ModeDetect(void);
/************************ End of File ******************************/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -