⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mt9v111.h

📁 LINUX下的ov2640驱动程序
💻 H
📖 第 1 页 / 共 2 页
字号:
	MT9V111_OutputResolution_QVGA,	/*!< QVGA size */	MT9V111_OutputResolution_CIF,	/*!< CIF size */	MT9V111_OutputResolution_QCIF,	/*!< QCIF size */	MT9V111_OutputResolution_QQVGA,	/*!< QQVGA size */	MT9V111_OutputResolution_SXGA	/*!< SXGA size */} MT9V111_OutputResolution;/*! * The flicker control setting  */enum {	MT9V111_FLICKER_DISABLE = 0,	MT9V111_FLICKER_MANUAL_50,	MT9V111_FLICKER_MANUAL_60,	MT9V111_FLICKER_AUTO_DETECTION};enum {	MT9V111_WINWIDTH = 0x287,	MT9V111_WINWIDTH_DEFAULT = 0x287,	MT9V111_WINWIDTH_MIN = 0x9,	MT9V111_WINHEIGHT = 0x1E7,	MT9V111_WINHEIGHT_DEFAULT = 0x1E7,	MT9V111_HORZBLANK_DEFAULT = 0x26,	MT9V111_HORZBLANK_MIN = 0x9,	MT9V111_HORZBLANK_MAX = 0x3FF,	MT9V111_VERTBLANK_DEFAULT = 0x4,	MT9V111_VERTBLANK_MIN = 0x3,	MT9V111_VERTBLANK_MAX = 0xFFF,};/*! * Mt9v111 Core Register structure. */typedef struct {	u32 addressSelect;	/*!< select address bank for Core Register 0x4 */	u32 columnStart;	/*!< Starting Column */	u32 windowHeight;	/*!< Window Height */	u32 windowWidth;	/*!< Window Width */	u32 horizontalBlanking;	/*!< Horizontal Blank time, in pixels */	u32 verticalBlanking;	/*!< Vertical Blank time, in pixels */	u32 outputControl;	/*!< Register to control sensor output */	u32 rowStart;		/*!< Starting Row */	u32 shutterWidth;	u32 pixelClockSpeed;	/*!< pixel date rate */	u32 restart;		/*!< Abandon the readout of current frame */	u32 shutterDelay;	u32 reset;		/*!< reset the sensor to the default mode */	u32 zoomColStart;	/*!< Column start in the Zoom mode */	u32 zomRowStart;	/*!< Row start in the Zoom mode */	u32 digitalZoom;	/*!< 1 means zoom by 2 */	u32 readMode;		/*!< Readmode: aspects of the readout of the sensor */	u32 dACStandbyControl;	u32 green1Gain;		/*!< Gain Settings */	u32 blueGain;	u32 redGain;	u32 green2Gain;	u32 rowNoiseControl;	u32 darkTargetwNC;	u32 testData;		/*!< test mode */	u32 globalGain;	u32 chipVersion;	u32 darkTargetwoNC;	u32 vREFDACs;	u32 vCMandVCL;	u32 disableBypass;	u32 calibMeanTest;	u32 darkG1average;	u32 darkG2average;	u32 darkRaverage;	u32 darkBaverage;	u32 calibThreshold;	u32 calibGreen1;	u32 calibGreen2;	u32 calibControl;	u32 calibRed;	u32 calibBlue;	u32 chipEnable;		/*!< Image core Registers written by image flow processor */} mt9v111_coreReg;/*! * Mt9v111 IFP Register structure. */typedef struct {	u32 addrSpaceSel;	/*!< select address bank for Core Register 0x1 */	u32 baseMaxtrixSign;	/*!< sign of coefficient for base color correction matrix */	u32 baseMaxtrixScale15;	/*!< scaling of color correction coefficient K1-5 */	u32 baseMaxtrixScale69;	/*!< scaling of color correction coefficient K6-9 */	u32 apertureGain;	/*!< sharpening */	u32 modeControl;	/*!< bit 7 CCIR656 sync codes are embedded in the image */	u32 softReset;		/*!< Image processing mode: 1 reset mode, 0 operational mode */	u32 formatControl;	/*!< bit12 1 for RGB565, 0 for YcrCb */	u32 baseMatrixCfk1;	/*!< K1 Color correction coefficient */	u32 baseMatrixCfk2;	/*!< K2 Color correction coefficient */	u32 baseMatrixCfk3;	/*!< K3 Color correction coefficient */	u32 baseMatrixCfk4;	/*!< K4 Color correction coefficient */	u32 baseMatrixCfk5;	/*!< K5 Color correction coefficient */	u32 baseMatrixCfk6;	/*!< K6 Color correction coefficient */	u32 baseMatrixCfk7;	/*!< K7 Color correction coefficient */	u32 baseMatrixCfk8;	/*!< K8 Color correction coefficient */	u32 baseMatrixCfk9;	/*!< K9 Color correction coefficient */	u32 awbPosition;	/*!< Current position of AWB color correction matrix */	u32 awbRedGain;		/*!< Current value of AWB red channel gain */	u32 awbBlueGain;	/*!< Current value of AWB blue channel gain */	u32 deltaMatrixCFSign;	/*!< Sign of coefficients of delta color correction matrix register */	u32 deltaMatrixCFD1;	/*!< D1 Delta coefficient */	u32 deltaMatrixCFD2;	/*!< D2 Delta coefficient */	u32 deltaMatrixCFD3;	/*!< D3 Delta coefficient */	u32 deltaMatrixCFD4;	/*!< D4 Delta coefficient */	u32 deltaMatrixCFD5;	/*!< D5 Delta coefficient */	u32 deltaMatrixCFD6;	/*!< D6 Delta coefficient */	u32 deltaMatrixCFD7;	/*!< D7 Delta coefficient */	u32 deltaMatrixCFD8;	/*!< D8 Delta coefficient */	u32 deltaMatrixCFD9;	/*!< D9 Delta coefficient */	u32 lumLimitWB;		/*!< Luminance range of pixels considered in WB statistics */	u32 RBGManualWB;	/*!< Red and Blue color channel gains for manual white balance */	u32 awbRedLimit;	/*!< Limits on Red channel gain adjustment through AWB */	u32 awbBlueLimit;	/*!< Limits on Blue channel gain adjustment through AWB */	u32 matrixAdjLimit;	/*!< Limits on color correction matrix adjustment through AWB */	u32 awbSpeed;		/*!< AWB speed and color saturation control */	u32 HBoundAE;		/*!< Horizontal boundaries of AWB measurement window */	u32 VBoundAE;		/*!< Vertical boundaries of AWB measurement window */	u32 HBoundAECenWin;	/*!< Horizontal boundaries of AE measurement window for backlight compensation */	u32 VBoundAECenWin;	/*!< Vertical boundaries of AE measurement window for backlight compensation */	u32 boundAwbWin;	/*!< Boundaries of AWB measurement window */	u32 AEPrecisionTarget;	/*!< Auto exposure target and precision control */	u32 AESpeed;		/*!< AE speed and sensitivity control register */	u32 redAWBMeasure;	/*!< Measure of the red channel value used by AWB */	u32 lumaAWBMeasure;	/*!< Measure of the luminance channel value used by AWB */	u32 blueAWBMeasure;	/*!< Measure of the blue channel value used by AWB */	u32 limitSharpSatuCtrl;	/*!< Automatic control of sharpness and color saturation */	u32 lumaOffset;		/*!< Luminance offset control (brightness control) */	u32 clipLimitOutputLumi;	/*!< Clipping limits for output luminance */	u32 gainLimitAE;	/*!< Imager gain limits for AE adjustment */	u32 shutterWidthLimitAE;	/*!< Shutter width (exposure time) limits for AE adjustment */	u32 upperShutterDelayLi;	/*!< Upper Shutter Delay Limit */	u32 outputFormatCtrl2;	/*!< Output Format Control 2				   00 = 16-bit RGB565.				   01 = 15-bit RGB555.				   10 = 12-bit RGB444x.				   11 = 12-bit RGBx444.       */	u32 ipfBlackLevelSub;	/*!< IFP black level subtraction */	u32 ipfBlackLevelAdd;	/*!< IFP black level addition */	u32 adcLimitAEAdj;	/*!< ADC limits for AE adjustment */	u32 agimnThreCamAdj;	/*!< Gain threshold for CCM adjustment */	u32 linearAE;	u32 thresholdEdgeDefect;	/*!< Edge threshold for interpolation and defect correction */	u32 lumaSumMeasure;	/*!< Luma measured by AE engine */	u32 timeAdvSumLuma;	/*!< Time-averaged luminance value tracked by auto exposure */	u32 motion;		/*!< 1 when motion is detected */	u32 gammaKneeY12;	/*!< Gamma knee points Y1 and Y2 */	u32 gammaKneeY34;	/*!< Gamma knee points Y3 and Y4 */	u32 gammaKneeY56;	/*!< Gamma knee points Y5 and Y6 */	u32 gammaKneeY78;	/*!< Gamma knee points Y7 and Y8 */	u32 gammaKneeY90;	/*!< Gamma knee points Y9 and Y10 */	u32 gammaKneeY0;	/*!< Gamma knee point Y0 */	u32 shutter_width_60;	u32 flickerCtrl;	u32 search_flicker_60;	u32 ratioImageGainBase;	u32 ratioImageGainDelta;	u32 signValueReg5F;	u32 aeGain;	u32 maxGainAE;	u32 lensCorrectCtrl;	u32 shadingParameter1;	/*!< Shade Parameters */	u32 shadingParameter2;	u32 shadingParameter3;	u32 shadingParameter4;	u32 shadingParameter5;	u32 shadingParameter6;	u32 shadingParameter7;	u32 shadingParameter8;	u32 shadingParameter9;	u32 shadingParameter10;	u32 shadingParameter11;	u32 shadingParameter12;	u32 shadingParameter13;	u32 shadingParameter14;	u32 shadingParameter15;	u32 shadingParameter16;	u32 shadingParameter17;	u32 shadingParameter18;	u32 shadingParameter19;	u32 shadingParameter20;	u32 shadingParameter21;	u32 flashCtrl;		/*!< Flash control */	u32 lineCounter;	/*!< Line counter */	u32 frameCounter;	/*!< Frame counter */	u32 HPan;		/*!< Horizontal pan in decimation */	u32 HZoom;		/*!< Horizontal zoom in decimation */	u32 HSize;		/*!< Horizontal output size iIn decimation */	u32 VPan;		/*!< Vertical pan in decimation */	u32 VZoom;		/*!< Vertical zoom in decimation */	u32 VSize;		/*!< Vertical output size in decimation */} mt9v111_IFPReg;/*! * mt9v111 Config structure */typedef struct {	mt9v111_coreReg *coreReg;	/*!< Sensor Core Register Bank */	mt9v111_IFPReg *ifpReg;	/*!< IFP Register Bank */} mt9v111_conf;typedef struct {	u8 index;	u16 width;	u16 height;} mt9v111_image_format;typedef struct {	u16 ae;	u16 awb;	u16 flicker;	u16 reserved;} mt9v111_ctrl_params;#endif				// MT9V111_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -