I'm currently working with a sensor module which is connected to FX3 using SPI interface. The module requires to send and receive 9 bytes on SPI interface simultaneously like shift registers. SS is controlled by firmware so that I should setup send and receive buffers, then pull down the SS to send and a receive to finish. I couldn't find any API for FX3 to do this. Using register mode there are CyU3PSpiTransmitWords / CyU3PSpiReceiveWords which do it one at a time. The dma mode I couldn't figure out how to make it work to send and receive simultaneously specially because DMA mode requires 32 bytes aligned buffers. Is there any efficient way for me to do this.
You can refer to the AN84868 which comes with an example firmware. We have shown how to manually control the SPI ssn line to program the FPGA through FX3.