Using DMA to transfer a Struct variable | Cypress Semiconductor
Using DMA to transfer a Struct variable
I need to transfer a struct variable composed of two fields (uint8,uint16) towards an SPI interface.
I tried to use a DMA channel and only one TD, configured to transfer 1 byte per burst with increment of the source address.
With this configuration, if I set the struct variable as: (0x0F,0xFFFF) I see on the oscilloscope: 0x0F,0X00FF.
Even using 3 byte per burst the result is the same.
Is it needed to use a dedicate TD for each field of the Struct variable or I need to configure the DMA channel and the TD in a different way ?
Thanks in advance