extern void uDMAChannelTransferSet(uint32_t ui32ChannelStructIndex, uint32_t ui32Mode, void *pvSrcAddr, void *pvDstAddr, uint32_t ui32TransferSize);
Why does the transfer function take a void pointer for "pvDstAddr" and "pvSrcAddr"? From my understanding, these are usually arrays or registers. Am I using this correctly? Below is my call to this API.
uDMAChannelTransferSet(UDMA_CHANNEL_SSI0TX | UDMA_PRI_SELECT, UDMA_MODE_BASIC, &ADCsampleBuffer2[0], (void *)(SSI0_BASE + SSI_O_DR), sizeof(ADCsampleBuffer2));
I get a warning about this type mismatch because my array is a char*...thats why i'm curious.
Thanks Rob.