_csl_prevsetwriteoffset.c

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

C
39
字号

/** @file _csl_prevSetWriteOffset.c
 *
 *  @brief    File for functional layer of CSL API @a CSL_prevSetWriteOffset()
 *
 *  Description
 *    - The @a CSL_prevSetWriteOffset() function definition & it's associated
 *      functions
 *
 *  @date 20th October, 2004
 *  @author Vignesh LA.
 */

#include <csl_prev_aux.h>

#pragma CODE_SECTION (CSL_prevSetWriteOffset, ".text:csl_section:prev");

/** @brief Sets the Write offset
 */
CSL_Status  CSL_prevSetWriteOffset(
    /** Pointer to the object that holds reference to the
     *  instance of PREV requested after the call 
	 */
    CSL_PrevHandle                         hPrev,
    /** Write offset
	 */
    Uint16           					   offset
	){
	
	/*  Setup the configuration parameters in the  Write offset from SDRAM Register */
	hPrev->regs->WADD_OFFSET = CSL_FMK(PREV_WADD_OFFSET_OFFSET,offset);

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

⌨️ 快捷键说明

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