_csl_reszsetoutoffset.c

来自「TI的DM6446的硬件平台搭建的相关例子」· C语言 代码 · 共 38 行

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

#include <csl_resz_aux.h>

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

/** @brief Sets the output line Offset
 *	
 */
CSL_Status  CSL_reszSetOutOffset(
    /** Pointer to the object that holds reference to the
     *  instance of RESZ requested after the call 
	 */
    CSL_ReszHandle                         hResz,
    /** Sets the output line Offset
	 */
    Uint16 								   offset
	){

	CSL_FINS(hResz->regs->SDR_OUTOFF,RESZ_SDR_OUTOFF_OFFSET,offset);

	if((offset)%32)
		return (CSL_ESYS_INVPARAMS);
	else
		return (CSL_SOK);
}

⌨️ 快捷键说明

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