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

📄 acpy2_setdstframeidx.c

📁 The DSPLIB is a collection of 39 high-level optimized DSP functions for the TMS320C64x device. This
💻 C
字号:
/*
 *  Copyright 2002 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  
 */
/* "@(#) XDAS 2.5.11 10-11-02 (xdas-d15)" */
#pragma CODE_SECTION(ACPY2_setDstFrameIndex, ".text:ACPY2_setDstFrameIndex")

#include <std.h>

#include <csl_edma.h>

#include <idma2_priv.h>

/*
 *  ======== ACPY2_setDstFrameIndex ======== 
 *  Rapidly configure the destination frame index parameter of an 
 *  IDMA2 channel.  Note that both source and destination indexes
 *  are set simultaneously on the C6x1x with this API.
 */
Void ACPY2_setDstFrameIndex(IDMA2_Handle handle, Int frameIndex)
{
    handle->params.dstFrameIndex = frameIndex;

    /*
     * For 2D to 2D transfers, src and dst indices must be set to same
     * value.
     */
    if (handle->params.xType == IDMA2_2D2D) {
        handle->params.srcFrameIndex = frameIndex;
    }   
        
    /*
     * The idx register value is recomputed
     */
    handle->config.idx &= 0x0000FFFF;  //clear the frame index field
    handle->config.idx |= 
        EDMA_FMK(IDX,FRMIDX,(handle->params.dstFrameIndex)); 
}


⌨️ 快捷键说明

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