⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _csl_histreaddata.c

📁 ccs下对dm6446的测试程序
💻 C
字号:
/** @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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -