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.

TMS570LS1224: What is the size needed for the adc_data array?

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

Hi,

In the HALcoGEN ADC example, we declare an array for storing read data.
I'm wondering about the adc_data size signification. 
Why 2?

I didn't find any information in the HALcoGEN documentation.

In the adcGetData() source code, we find the array size with this line. I'm not sure its exact meaning.

uint32  count = (intcr_reg >= 256U) ? s_adcFiFoSize[index][group] : (s_adcFiFoSize[index][group] - (uint32)(intcr_reg & 0xFFU));

Is this link to the number of the channel?


Regards,

Gabriel