📄 _csl_histsetpixelinfo.c
字号:
/** @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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -