_csl_histreaddata.c
来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 44 行
C
44 行
/** @file _csl_histReadData.c
*
* @brief File for functional layer of CSL API @a CSL_histReadData()
*
* Description
* - The @a CSL_histReadData() function definition & it's associated
* functions
*
* @date 31st May, 2005
* @author Jesse Villarreal
*/
#include <csl_hist_aux.h>
#pragma CODE_SECTION (CSL_histReadData, ".text:csl_section:hist");
/** @brief Reads the histogram data
*
*/
CSL_Status CSL_histReadData(
/** Pointer to the object that holds reference to the
* instance of HIST requested after the call
*/
CSL_HistHandle hHist,
/** Reads the histogram data
*/
CSL_HistReadDataInfo *data
){
CSL_HistRegsOvly histRegs = hHist->regs;
Uint16 i;
if(data == NULL) return (CSL_ESYS_INVPARAMS);
if((data->addr + data->size) > 1024) return (CSL_ESYS_INVPARAMS);
histRegs->HIST_ADDR = CSL_FMK(HIST_HIST_ADDR_ADDR,data->addr);
for( i=0;i<data->size;i++) {
data->buffer[i] = histRegs->HIST_DATA;
}
return (CSL_SOK);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?