mt9t001_init.c
来自「采用CCS3.1的开发环境」· C语言 代码 · 共 33 行
C
33 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?