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

📄 _csl_ccdcsetfmtvpin.c

📁 TI的DM6446的硬件平台搭建的相关例子
💻 C
字号:
/** @file _csl_ccdcSetFmtVpIn.c
 *
 *  @brief    File for functional layer of CSL API @a CSL_ccdcSetFmtVpIn()
 *
 *  Description
 *    - The @a CSL_ccdcSetFmtVpIn() function definition & it's associated
 *      functions
 *
 *  @date 4th May, 2005
 *  @author Jesse Villarreal.
 */

#include <csl_ccdc_aux.h>

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

/** @brief Sets the formatter/video port input sizes
 *	
 */
CSL_Status  CSL_ccdcSetFmtVpIn(
    /** 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_CcdcFmtVpInConfig				   *data
	){

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

	ccdcRegs->FMT_HORZ =	CSL_FMK(CCDC_FMT_HORZ_FMTSPH, data->fmtsph)  |
							CSL_FMK(CCDC_FMT_HORZ_FMTLNH, data->fmtlnh);

	ccdcRegs->FMT_VERT =	CSL_FMK(CCDC_FMT_VERT_FMTSLV, data->fmtslv)  |
							CSL_FMK(CCDC_FMT_VERT_FMTLNV, data->fmtlnv);

    return (CSL_SOK);
}

⌨️ 快捷键说明

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