STM32F407 HAL_SPI_DMA usage for halfword to halfword transfer
Hi
I am trying to construct an SPI based device driver for an ADC which has 16 bit Frame size .The examples provided for SPI DMA showcases the use of uint_8 * buffers
//HAL_SPI_TransmitReceive_DMA(&SpiHandle, (uint8_t*)aTxBuffer, (uint8_t *)aRxBuffer, BUFFERSIZE)//
.So i am currently using FIFO for change in data size between peripheral and memory and endian behavior reverses the data
Is there a simple way to use the HAL_SPI_TransmitReceive_DMA to handle halfword directly for the CubeMX setting for HALFWORD to HALFWORD transfer between memory and peripheral and
HALFWORD to HALFWORD transfer between peripheral and memory
for eg :
uint16_t aTxbuffer[]={0x0001,0x0100,0xf000};
uint16_T aRxBuffer[TXSIZE]={0};
HAL_SPI_TransmitReceive_DMA(&SpiHandle, (uint8_t*)aTxBuffer, (uint8_t *)aRxBuffer, BUFFERSIZE)
Thanks in Advance