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

📄 _csl_osdgetattrs.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_osdGetAttrs.c
 *
 *  @brief File for internal CSL API @a _CSL_osdGetAttrs()
 *
 *  Description
 *    - The @a _CSL_osdGetAttrs() function definition
 *
 *  Modification 1
 *    - Created on: 10/11/2004
 *    - Reason: created the sources
 *
 *  @date  1st Oct, 2004
 *  @author Sandeep Tiwari
 */
#include <csl_osd.h>
#include <csl_resId.h>

#pragma CODE_SECTION (_CSL_osdGetAttrs, ".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_osdGetAttrs(
    /* instance number of osd */
    CSL_OsdNum                            osdNum,
    /*Pointer to the object that holds reference to the
     * instance of osd requested after the call */
    CSL_OsdHandle                         hOsd
)
{
    /* get the osd base address into the handle */
    hOsd->regs = (CSL_OsdRegsOvly)_CSL_osdGetBaseAddr(osdNum);

    switch (osdNum) {
    case CSL_OSD_0:
      /* get the osd unique identifier & resource
       * allocation mask into the handle */
      hOsd->xio = CSL_OSD_0_XIO;
      hOsd->uid = CSL_OSD_0_UID;
      break;
    }

    /* get the osd instance number into the handle */
    hOsd->perNum = osdNum;
    
}

⌨️ 快捷键说明

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