2 Replies Latest reply on Jul 18, 2016 8:55 PM by wang.xinlong

    Can i trandfer only one word with the spi (DMA mode )of the FX3?

    wang.xinlong

      I have a problem,i use the fx3 chip,and i use the spi with the DMA mode ,i enable both transfer and receive,i want to know can i transfer and receive only one word every time?

         

           status = CyU3PDmaChannelSetupRecvBuffer (&glSpiRxHandle, &buf_p);

         

           CyU3PDmaChannelSetupSendBuffer (&glSpiTxHandle,&s_buf);
           CyU3PSpiSetBlockXfer (1, 1);
           status = CyU3PDmaChannelWaitForCompletion(&glSpiTxHandle,CY_FX_USB_SPI_TIMEOUT);
           status = CyU3PDmaChannelWaitForCompletion(&glSpiTxHandle,CY_FX_USB_SPI_TIMEOUT);
           CyU3PSpiDisableBlockXfer (CyTrue, CyTrue);