📄 _csl_vpssgetattrs.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_vpssGetAttrs.c
*
* @brief File for internal CSL API @a _CSL_vpssGetAttrs()
*
* Description
* - The @a _CSL_vpssGetAttrs() function definition
*
* @date 25th October, 2004
* @author Vignesh LA
*/
#include <csl_vpss.h>
#include <csl_resId.h>
#pragma CODE_SECTION (_CSL_vpssGetAttrs, ".text:csl_section:init");
/** @brief Gets the unique identifier and resource allocation mask
* specified for the vpss module. This is a CSL internal function.
*
*/
void _CSL_vpssGetAttrs(
/* instance number of vpss */
CSL_VpssNum vpssNum,
/*Pointer to the object that holds reference to the
* instance of vpss requested after the call */
CSL_VpssHandle hVpss
)
{
/* get the vpss base address into the handle */
hVpss->regs = (CSL_VpssRegsOvly)_CSL_vpssGetBaseAddr(vpssNum);
switch (vpssNum) {
case CSL_VPSS_0:
/* get the vpss unique identifier & resource
* allocation mask into the handle */
hVpss->xio = CSL_VPSS_0_XIO;
hVpss->uid = CSL_VPSS_0_UID;
break;
}
/* get the vpss instance number into the handle */
hVpss->perNum = vpssNum;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -