📄 mt9t001_init.c
字号:
/*
* Copyright 2004 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.
*
*/
#include "MT9T001_init.h"
/*
Initialize the EDC configuration structure for Capture
*/
void MT9T001_configCapParams(VPORTCAP_Params *chan, MT9T001_Params *params, Uint16 rowsize, Uint16 colsize, Uint16 horizblank, Uint16 vertblank, Uint16 shutterwidth)
{
params->COMH = 0x20;
params->COMM = 0x00;
params->HREFST = 0x2B;
params->VSTRT = 0x01;
params->HREFEND = ((colsize)>>3) + 0x2B ;
params->VEND = ((rowsize)>>3) + 0x01;
/* params->horizblank = horizblank;
params->vertblank = vertblank;
params->shutterwidth = shutterwidth; */
chan->fldXStop1 = colsize - 1;
chan->fldYStop1 = rowsize;
chan->fldXStop2 = colsize - 1;
chan->fldYStop2 = rowsize;
chan->thrld = (colsize);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -