_csl_histsetsdramoffset.c

来自「ccs下对dm6446的测试程序」· C语言 代码 · 共 38 行

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

#include <csl_hist_aux.h>

#pragma CODE_SECTION (CSL_histSetSdramOffset, ".text:csl_section:hist");

/** @brief Sets the sdram read line offset
 * 
 */
CSL_Status  CSL_histSetSdramOffset(
    /** Pointer to the object that holds reference to the
     *  instance of HIST requested after the call 
	 */
    CSL_HistHandle                         hHist,
	/** Sets the sdram read line offset
	 */ 
	Uint16									offset
	){
    
	CSL_FINS(hHist->regs->RADD_OFF,HIST_RADD_OFF_OFFSET,offset);
	
	if(((Uint32)offset)%32)
		return (CSL_ESYS_INVPARAMS);
	else
		return (CSL_SOK);
}

⌨️ 快捷键说明

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