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

📄 csl_h3agethwstatus.c

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

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


#include <csl_h3a.h>
#include <csl_h3a_aux.h>

#pragma CODE_SECTION  (CSL_h3aGetHwStatus,".text:csl_section:h3a")


/** @brief Gets the status of the different operations.
 */
CSL_Status CSL_h3aGetHwStatus(
	/** Pointer to the object that holds reference to the
	 *  instance of h3a requested after the call 
	 */
	CSL_H3aHandle             hH3a,
	/** The query to this API which indicates the status 
	 *  to be returned 
	 */
	CSL_H3aHwStatusQuery      query,
	/** Placeholder to return the status. @a void* casted */
	void                       *response
	){
  
	CSL_Status  status=CSL_SOK;
       
	switch(query){

		case CSL_H3A_QUERY_REV_ID:
			((CSL_H3aRevStatus *)response)->peripheralID = CSL_FEXT(hH3a->regs->PID, H3A_PID_TID);
			((CSL_H3aRevStatus *)response)->classID = CSL_FEXT(hH3a->regs->PID, H3A_PID_CID);
		  	((CSL_H3aRevStatus *)response)->revNum = CSL_FEXT(hH3a->regs->PID, H3A_PID_PREV);
			break;

		case CSL_H3A_QUERY_IS_BUSY_AF:
			status = CSL_h3aIsBusyAf(hH3a, (Uint8 *)response);
			break;

		case CSL_H3A_QUERY_IS_BUSY_AEAWB:
			status = CSL_h3aIsBusyAeawb(hH3a, (Uint8 *)response);
			break;

		default:
	    	       status = CSL_ESYS_INVQUERY ;
			break;	   

	}
	return status;
}



	  	


	  	




	  	

	  	
 
	  	

⌨️ 快捷键说明

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