| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- #ifndef _ARK7116_DRV_H_
- #define _ARK7116_DRV_H_
- #if __cplusplus
- extern "C"
- {
- #endif
- typedef enum _ConfigDisplayMode
- {
- DISP_16_9= 0 ,
- DISP_4_3,
- }ConfigDisplayMode;
- typedef enum _ColorSysType
- {
- PAL = 0,
- PAL_N,
- PAL_M,
- NTSC,
- SECAM,
- PAL60,
- AUTO,
- NULL_SYS = -1,
- }ColorSysType;
- //MCU CFG Addr
- #define MCU_CFG_ADDR 0xC6
- /************************Global ***********************/
- #define RSTN 0XFD00
- #define ENH_PLL 0XFD0E
- /***********************Decoder ************************/
- #define DECODER_RST 0XFEA0
- //BUS Addr
- #define BUS_STATUS_ADDR 0xAF
- typedef struct _PanlstaticPara
- {
- unsigned int addr;
- unsigned char dat;
- }PanlstaticPara;
- typedef enum _VdeOutputType
- {
- VDE_CLOSE = 0,
- VDE_RED,
- VDE_GREEN,
- VDE_BLUE ,
- VDE_GRAY,
- VDE_WHITE,
- VDE_BLACK,
- MAX_VDECOLOR = VDE_BLACK,
- } VdeOutputTyp;
- /*************************************VP CONTROL REG*********************************/
- #define BRIGHT_REG 0XFFD4
- #define CONTRAST_REG 0XFFD3
- #define SATURATION_REG 0XFFD6
- #define TINT_REG 0XFFD5
- #define VDE_REG 0XFFD2
-
- /*==============start===============*/
- /*AV1
- [VideoChannel]
- AV1
- [VideoType]
- CVBS
- [VideoPI]
- VIDEO_P
- [VideoPicSys]
- PAL
- [VideoData]
- 13500000
- 690
- 280
- 864
- 312
- Update date:Monday, November 24, 2014
- Update time:11:05:45
- */
- /*屏参参数相关的结构体*/
- typedef struct _PannelPara
- {
- PanlstaticPara *pVideoStaicPara;
-
- }PannelPara;
- typedef struct _VideoChannel
- {
- unsigned char INPUT_ID;
- PannelPara VideoPara;
- }VideoChannel;
- #define STATIC_NUM 280
- #define POS_DYN_NUM 0
- #define SYS_DYN_NUM 0
- #define PAD_MUX_NUM 36
- #define VCOM_AC_Def 0X00
- #define VCOM_DC_Def 0X00
- #define PWMA_VAL 0X0000
- #define PWMB_VAL 0X0000
- #define PAL_PLL_CLK 0X0048
- #define NTSC_PLL_CLK 0X0048
- #define PWM0_CYCLE_VAL 0X00FF
- #define PWM1_CYCLE_VAL 0X00FF
- #define PWM2_CYCLE_VAL 0X00FF
- #define PWM3_CYCLE_VAL 0X00FF
- #define PWM0_DUTY_VAL 0X0080
- #define PWM1_DUTY_VAL 0X0080
- #define PWM2_DUTY_VAL 0X0080
- #define PWM3_DUTY_VAL 0X0080
- #define I2C_ACCESS_LOOP_TIME 20
- typedef struct
- {
- unsigned char regAddr;
- unsigned char regValue;
- }ARK7116REG;
- typedef struct
- {
- unsigned char regAddr;
- unsigned char regPalValue;
- unsigned char regNtscValue;
- }ARK7116DYREG;
- #if __cplusplus
- }
- #endif
- #endif
|