📄 _csl_vfocgetattrs.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_vfocGetAttrs.c
*
* @brief File for internal CSL API @a _CSL_vfocGetAttrs()
*
* Description
* - The @a _CSL_vfocGetAttrs() function definition
*
* Modification 1
* - Created on: 10/01/2004
* - Reason: created the sources
*
* @date 1st Oct, 2004
* @author Sandeep Tiwari
*/
#include <csl_vfoc.h>
#include <csl_resId.h>
#pragma CODE_SECTION (_CSL_vfocGetAttrs, ".text:csl_section:init");
/** @brief Gets the unique identifier and resource allocation mask
* specified for the vfoc module. This is a CSL internal function.
*
*/
void _CSL_vfocGetAttrs(
/* instance number of vfoc */
CSL_VfocNum vfocNum,
/*Pointer to the object that holds reference to the
* instance of vfoc requested after the call */
CSL_VfocHandle hVfoc
)
{
/* get the vfoc base address into the handle */
hVfoc->regs = (CSL_VfocRegsOvly) _CSL_vfocGetBaseAddr(vfocNum);
switch (vfocNum) {
case CSL_VFOC_0:
/* get the vfoc unique identifier & resource
* allocation mask into the handle */
hVfoc->xio = CSL_VFOC_0_XIO;
hVfoc->uid = CSL_VFOC_0_UID;
break;
}
/* get the vfoc instance number into the handle */
hVfoc->perNum = vfocNum;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -