I am using your No-OS design for FMCOMMS3 design board on a zedboard.
In the adc_capture function, the DMA reads from the ADC. Is the ADC providing both the I and Q paths, some mixed signal of the two, or just one?
The function stores in memory the adc_data_q1, adc_data_i1, adc_data_q2 and adc_data_i2 samples (AD9361 has 2 receive channels). So you will have something like this:
for(index = 0; index < length; index += 2)
data = Xil_In32((ADC_DDR_BASEADDR + (index * 4)));
adc_data_q1[index / 2] = (data & 0xFFFF);
adc_data_i1[index / 2] = (data >> 16) & 0xFFFF;
data = Xil_In32((ADC_DDR_BASEADDR + ((index + 1) * 4)));
adc_data_q2[index / 2] = (data & 0xFFFF);
adc_data_i2[index / 2] = ((data >> 16) & 0xFFFF);
Thanks, Dragos. That's exactly what I was looking for.
Retrieving data ...