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

📄 csl_histgethwstatus.c

📁 ccs下对dm6446的测试程序
💻 C
字号:

/** @file csl_histGetHwStatus.c
 *
 *    @brief    File for functional layer of CSL API @a CSL_histGetHwStatus()
 *
 *  Description
 *    - The @a CSL_histGetHwStatus() function definition & it's associated
 *      functions
 *
 *  Modification 1
 *    - Modified on: 10/19/2004
 *    - Reason: created the sources
 *
 *  @date 19th Oct, 2004
 *    @author Sandeep Tiwari.
 */

#include <csl_hist.h>
#include <csl_hist_aux.h>

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

/** @brief Gets the status of the different operations.
 */

CSL_Status CSL_histGetHwStatus(
	/** Pointer to the object that holds reference to the
	 *  instance of hist requested after the call 
	 */
	CSL_HistHandle             hHist,
	/** The query to this API which indicates the status 
	 *  to be returned 
	 */
	CSL_HistHwStatusQuery      query,
	/** Placeholder to return the status. @a void* casted */
	void                     *response
    ){
  
	CSL_Status  status=CSL_SOK;
       
	switch(query){

		case CSL_HIST_QUERY_REV_ID:  
			((CSL_HistRevStatus *)response)->peripheralID = CSL_FEXT(hHist->regs->PID, HIST_PID_TID);
			((CSL_HistRevStatus *)response)->classID = CSL_FEXT(hHist->regs->PID, HIST_PID_CID);
		  	((CSL_HistRevStatus *)response)->revNum = CSL_FEXT(hHist->regs->PID, HIST_PID_PREV);
            break;

		case CSL_HIST_QUERY_IS_BUSY:
			status = CSL_histIsBusy(hHist, (Uint8 *)response);
            break;

		default:
			status = CSL_ESYS_INVQUERY;
	        break;
    }
    
	return status;

}



	  	


	  	




	  	

	  	
 
	  	

⌨️ 快捷键说明

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