www.pudn.com > motiotest.rar > saa7121.h


/* 
 *  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.11.00.00 11-04-03 (ddk-b13)" */ 
/********************************************************************************/ 
/* SAA7121.h file */ 
/********************************************************************************/ 
#ifndef _SAA7121_H 
#define _SAA7121_H        
#include  
#include  
#include  
#include  
 
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_AnalogFormat aFmt; 
  SAA7121_Mode         mode;            
  SAA7121_InputFormat  iFmt; 
  Bool                 enableSlaveMode; 
  Bool                 enableBT656Sync; 
  I2C_Handle           hI2C; 
} SAA7121_ConfParams; 
 
extern EDC_Fxns SAA7121_Fxns; 
 
#endif