📄 _csl_ccdcgetattrs.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_ccdcGetAttrs.c
*
* @brief File for internal CSL API @a _CSL_ccdcGetAttrs()
*
* Description
* - The @a _CSL_ccdcGetAttrs() function definition
*
* Modification 1
* - Created on: 10/24/2004
* - Reason: created the sources
*
* @date 24th Oct, 2004
* @author Santosh Narayanan
*/
#include <csl_ccdc.h>
#include <csl_resId.h>
#pragma CODE_SECTION (_CSL_ccdcGetAttrs, ".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_ccdcGetAttrs(
/* instance number of ccdc */
CSL_CcdcNum ccdcNum,
/*Pointer to the object that holds reference to the
* instance of ccdc requested after the call */
CSL_CcdcHandle hCcdc
)
{
/* get the ccdc base address into the handle */
hCcdc->regs = (CSL_CcdcRegsOvly)_CSL_ccdcGetBaseAddr(ccdcNum);
switch (ccdcNum) {
case CSL_CCDC_0:
/* get the ccdc unique identifier & resource
* allocation mask into the handle */
hCcdc->xio = CSL_CCDC_0_XIO;
hCcdc->uid = CSL_CCDC_0_UID;
break;
}
/* get the ccdc instance number into the handle */
hCcdc->perNum = ccdcNum;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -