_csl_histsetpixelinfo.c

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

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

#include <csl_hist_aux.h>

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

/** @brief Sets the information needed when the input is SDRAM
 * 
 */
CSL_Status  CSL_histSetPixelInfo(
    /** Pointer to the object that holds reference to the
     *  instance of HIST requested after the call 
	 */
    CSL_HistHandle                         hHist,
	/** Sets the information needed when the input is SDRAM
	 */ 
	CSL_HistPixelInfo						*data
	){
    
    CSL_HistRegsOvly histRegs =  hHist->regs; 
	CSL_Status  status=CSL_SOK;

    if(data == NULL) return (CSL_ESYS_INVPARAMS);

	histRegs->H_V_INFO =	CSL_FMK(HIST_H_V_INFO_HSIZE,data->numPixelH)	|
							CSL_FMK(HIST_H_V_INFO_VSIZE,data->numLineV);			

	if(CSL_histSetSdramAddr(hHist, data->addr) != CSL_SOK)		status = CSL_ESYS_INVPARAMS;
	if(CSL_histSetSdramOffset(hHist, data->offset) != CSL_SOK)	status = CSL_ESYS_INVPARAMS;
	
    return status;
}

⌨️ 快捷键说明

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