This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

6748中,使用QDMA,发起数据传输后,如何通过查询方式查询数据传输完成?

目前,数据可以进行QDMA传输,但是加上查询代码,则程序查询不到数据传输完成。具体代码如下:

paramSet.bCntReload = (unsigned short)bCntReload;
//if (syncType == EDMA3_SYNC_A)
//{
paramSet.opt = 0x0008;

paramSet.opt &= ~(1<<2);
paramSet.opt |= (syncType<<2);
// 写参数 RAM
EDMA3QdmaSetPaRAM(SOC_EDMA30CC_0_REGS,
chNum,
paRAMId,
&paramSet);

while(1)//查询数据传输完成
{
if(myEDMA3GetIntrStatus(SOC_EDMA30CC_0_REGS)!=0)
{
myEDMA3ClrIntr(SOC_EDMA30CC_0_REGS,0);
break;
}

}