_csl_ccdcsetvpout.c

来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 40 行

C
40
字号
/** @file _csl_ccdcSetVpOut.c
 *
 *  @brief    File for functional layer of CSL API @a CSL_ccdcSetVpOut()
 *
 *  Description
 *    - The @a CSL_ccdcSetVpOut() function definition & it's associated
 *      functions
 *
 *  @date 4th May, 2005
 *  @author Jesse Villarreal.
 */

#include <csl_ccdc_aux.h>

#pragma CODE_SECTION (CSL_ccdcSetVpOut, ".text:csl_section:ccdc");

/** @brief Sets the output sizes of the video port
 *	
 */
CSL_Status  CSL_ccdcSetVpOut(
    /** Pointer to the object that holds reference to the
     *  instance of CCDC requested after the call 
	 */
    CSL_CcdcHandle                         hCcdc,
    /** Pointer to structure holding the data
	 */
    CSL_CcdcVpOutConfig					   *data
	){

	CSL_CcdcRegsOvly ccdcRegs =  hCcdc->regs; 
    if(data == NULL) return (CSL_ESYS_INVPARAMS);

	ccdcRegs->VP_OUT =	CSL_FMK(CCDC_VP_OUT_VERT_NUM, data->vertNum)	|
						CSL_FMK(CCDC_VP_OUT_HORZ_NUM, data->horzNum)	|
						CSL_FMK(CCDC_VP_OUT_HORZ_ST, data->horzStart);

    return (CSL_SOK);
}

⌨️ 快捷键说明

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