ime9650_init.c

来自「这个是基于在CCS开发环境下」· C语言 代码 · 共 32 行

C
32
字号
/*
 *  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 "IME9650_init.h"

/*
 Initialize the EDC configuration structure for Capture
*/
void IME9650_configCapParams(VPORTCAP_Params *chan, IME9650_Params *params, Uint16 sizeID, Uint16 rowsize, Uint16 colsize, Uint16 horizblank, Uint16 vertblank, Uint16 shutterwidth)
{

    params->sizeID=sizeID;
    params->rowsize = rowsize-1;
	params->colsize = colsize-1;
	params->horizblank = horizblank;
	params->vertblank = vertblank;
	params->shutterwidth = shutterwidth;

	chan->fldXStop1 = colsize - 1;
	chan->fldYStop1 = rowsize<<1;
	chan->fldXStop2 = colsize - 1;
	chan->fldYStop2 = rowsize<<1;
	chan->thrld = (colsize);

}

⌨️ 快捷键说明

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