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

📄 _csl_reszsetstartpos.c

📁 TI达芬奇dm644x各硬件模块测试代码
💻 C
字号:
/** @file _csl_reszSetStartPos.c
 *
 *  @brief    File for functional layer of CSL API @a CSL_reszSetStartPos()
 *
 *  Description
 *    - The @a CSL_reszSetStartPos() function definition & it's associated
 *      functions
 *
 *  @date 10th May, 2005
 *  @author Jesse Villarreal.
 */

#include <csl_resz_aux.h>

#pragma CODE_SECTION (CSL_reszSetStartPos, ".text:csl_section:resz");

/** @brief Sets the starting position
 *	
 */
CSL_Status  CSL_reszSetStartPos(
    /** Pointer to the object that holds reference to the
     *  instance of RESZ requested after the call 
	 */
    CSL_ReszHandle                         hResz,
    /** Pointer to structure holding the data
	 */
    CSL_ReszStartInfo					   *data
	){

	CSL_ReszRegsOvly reszRegs =  hResz->regs; 
    if(data == NULL) return (CSL_ESYS_INVPARAMS);

	reszRegs->IN_START =	CSL_FMK(RESZ_IN_START_VERT_ST,data->vStart)		|
							CSL_FMK(RESZ_IN_START_HORZ_ST,data->hStart);

    return (CSL_SOK);
}

⌨️ 快捷键说明

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