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

📄 _csl_vencgetattrs.c

📁 TI达芬奇dm644x各硬件模块测试代码
💻 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_vencGetAttrs.c
 *
 *  @brief File for internal CSL API @a _CSL_vencGetAttrs()
 *
 *  Description
 *    - The @a _CSL_vencGetAttrs() function definition
 *
 *  Modification 1
 *    - Created on: 10/3/2004
 *    - Reason: created the sources
 *
 *  @date  3rd October, 2004
 *  @author Santosh Narayanan
 */
#include <csl_venc.h>
#include <csl_resId.h>

#pragma CODE_SECTION (_CSL_vencGetAttrs, ".text:csl_section:init");

/** @brief Gets the unique identifier and  resource allocation mask
 *  specified for the venc module. This is a CSL internal function.
 *
 */
void _CSL_vencGetAttrs(
    /* instance number of venc */
    CSL_VencNum                            vencNum,
    /*Pointer to the object that holds reference to the
     * instance of venc requested after the call */
    CSL_VencHandle                         hvenc
)
{
    /* get the venc base address into the handle */
    hvenc->regs = (CSL_VencRegsOvly) _CSL_vencGetBaseAddr(vencNum);

    switch (vencNum) {
    case CSL_VENC_0:
      /* get the venc unique identifier & resource
       * allocation mask into the handle */
      hvenc->xio = CSL_VENC_0_XIO;
      hvenc->uid = CSL_VENC_0_UID;
      break;
    }

    /* get the venc instance number into the handle */
    hvenc->perNum = vencNum;
    
}

⌨️ 快捷键说明

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