_csl_osdwinenable.c

来自「TI达芬奇dm644x各硬件模块测试代码」· C语言 代码 · 共 31 行

C
31
字号
/** @file _csl_osdWinEnable.c
 *
 *  @brief Enable/ disable OSD window
 *  @date 5th Oct, 2004
 *  @author Sandeep Tiwari
 */

#include <csl_osd.h>
#include <_csl_osd_aux.h>

CSL_Status  _CSL_osdWinEnable(
       /** Pointer to the object that holds reference to the
        *  instance of OSD requested after the call 
	  */
       CSL_OsdHandle hOsd,  
       /** Pointer to structure containing elements to enable/disable the window 
        */
       CSL_OsdWinEnable *arg) 
{

          CSL_Status  status=CSL_SOK;
           
          CSL_FINS(hOsd->regs->VIDWINMD,OSD_VIDWINMD_ACT0,arg->v0Enable);
          CSL_FINS(hOsd->regs->VIDWINMD,OSD_VIDWINMD_ACT1,arg->v1Enable);
          CSL_FINS(hOsd->regs->OSDWIN0MD,OSD_OSDWIN0MD_OACT0,arg->o0Enable);   
          CSL_FINS(hOsd->regs->OSDWIN1MD,OSD_OSDWIN1MD_OACT1,arg->o1Enable);
          CSL_FINS(hOsd->regs->RECTCUR,OSD_RECTCUR_RCACT,arg->rectCurEnable);
             
          return status;
}

⌨️ 快捷键说明

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