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

📄 csl_vpbegethwstatus.c

📁 TI的DM6446的硬件平台搭建的相关例子
💻 C
字号:
/*   ==========================================================================
 *   Copyright (c) Texas Instruments Inc , 2004
 *
 *   Use of this software is controlled by the terms and conditions found
 *   in the license agreement under which this software has been supplied
 *   priovided
 *   ==========================================================================
*/
/** \file csl_vpbeGetHwStatus.c
 *
 *  \brief    File for functional layer of CSL API \a CSL_vpbeGetHwStatus()
 *
 *  \date 11th October, 2004
 *  \author Santosh Narayanan
 
 */

#include <csl_vpbe.h>


#pragma CODE_SECTION (CSL_vpbeGetHwStatus, ".text:csl_section:vpbe");
/**
    \brief Get VPBE status

    \param hVpbe  Pointer to the object that holds reference to the instance
                  of VPBE requested
   
    \param query    The query to this API which indicates the status/setup to
                    be returned 

    \param response  Pointer to query response object     

    \return if success, \c CSL_SOK, else error code

    \see 
*/
CSL_Status  CSL_vpbeGetHwStatus ( CSL_VpbeHandle hVpbe,
                                   CSL_VpbeHwStatusQuery query,
                                   void *response ) {

  CSL_Status status = CSL_SOK;

    
  switch (query) {
  
  case CSL_VPBE_QUERY_CLASS_REV_STATUS:
    /* Get the Peripheral ID, class and Rev. number */	
    ((CSL_VpbeClassRevStatus *)response)->peripheralID = CSL_FEXT ( hVpbe->regs->PID, VPBE_PID_TID );
    ((CSL_VpbeClassRevStatus *)response)->classID = CSL_FEXT ( hVpbe->regs->PID, VPBE_PID_CID );
    ((CSL_VpbeClassRevStatus *)response)->revNum = CSL_FEXT ( hVpbe->regs->PID, VPBE_PID_PREV );	
    break;
   
  default:
    status = CSL_ESYS_INVQUERY;
    break;  

  };
    
  return(status);

}

⌨️ 快捷键说明

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