_csl_osdsetpingpongbufferaddr.c

来自「TI的DM6446的硬件平台搭建的相关例子」· C语言 代码 · 共 37 行

C
37
字号
/** @file _csl_osdSetPingpongBufferAddr.c
 *
 *  @brief Set OSD video window ,ping pong buffer address
 *  @date 6th Oct,  2004
 *  @author Sandeep Tiwari
 */

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


CSL_Status   _CSL_osdSetPingpongBufferAddr(
        /** 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 
         *  set the ping pong buffer address
         */
       CSL_OsdPingAddr *arg) 
{

      CSL_Status  status=CSL_SOK;
      Uint32 addr;

      if(arg->address==NULL) {
          return CSL_ESYS_INVCMD;
      	}		  

      addr = (Uint32)arg->address;


      CSL_FINS(hOsd->regs->PPVWIN0ADR, OSD_PPVWIN0ADR_PPVWIN0ADR, addr);

      return status;
}

⌨️ 快捷键说明

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