saa7121.h
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:2k
- /*
- * Copyright 2003 by Texas Instruments Incorporated.
- * All rights reserved. Property of Texas Instruments Incorporated.
- * Restricted rights to use, duplicate or disclose this code are
- * granted through contract.
- *
- */
- /* "@(#) DDK 1.10.00.23 07-02-03 (ddk-b12)" */
- /********************************************************************************/
- /* saa7121.h file */
- /********************************************************************************/
- #ifndef _SAA7121_H
- #define _SAA7121_H
- #include <std.h>
- #include <csl_stdinc.h>
- #include <csl_i2c.h>
- #include <edc.h>
- typedef struct SAA7121_Cursor {
- Uint8 address;
- Uint8 cursorBlock[256];
- }SAA7121_Cursor;
- typedef struct SAA7121_LookUpTable {
- Uint8 address;
- Uint8 tables[256][3];
- }SAA7121_LookUpTable;
- typedef enum SAA7121_AnalogFormat {
- SAA7121_AFMT_SVIDEO = 0,
- SAA7121_AFMT_RGB = 1,
- SAA7121_AFMT_YPBPR = 1,
- SAA7121_AFMT_COMPOSITE = 2
- } SAA7121_AnalogFormat;
- typedef enum SAA7121_InputFormat {
- SAA7121_IFMT_RGB24_YCBCR444,
- SAA7121_IFMT_RGB555,
- SAA7121_IFMT_RGB565,
- SAA7121_IFMT_YCBCR422_NONEINTERLACED,
- SAA7121_IFMT_YCBCR422_INTERLACED
- }SAA7121_InputFormat;
- typedef enum
- {
- SAA7121_MODE_NTSC720,
- SAA7121_MODE_PAL720,
- SAA7121_MODE_VGA,
- SAA7121_MODE_SVGA,
- SAA7121_MODE_XGA,
- SAA7121_MODE_HD480P60F,
- SAA7121_MODE_HD720P60F,
- SAA7121_MODE_HD1080I30F,
- SAA7121_MODE_HD720P24F
- }SAA7121_Mode;
- typedef unsigned int SAA7121_Cmd;
- #define SAA7121_POWERDOWN EDC_USER+1
- #define SAA7121_POWERUP EDC_USER+2
- #define SAA7121_ENABLE_SLAVE_MODE EDC_USER+3
- #define SAA7121_LOAD_CURSOR EDC_USER+4
- #define SAA7121_LOAD_LUT EDC_USER+5
- #define SAA7121_ENABLE_COLORBAR EDC_USER+6
- typedef struct {
- SAA7121_Mode mode;
- I2C_Handle hI2C;
- } SAA7121_ConfParams;
- extern EDC_Fxns SAA7121_Fxns;
- #endif