Does the MBedOS spi.transfer function use the DMA engine by default?

Hi,

using this code below, does the spi.transfer function automatically use the DMA ?

<>
printf(“Result is %d\r\n”, spi.transfer()
.tx(tx_buf, SHORT_XFR)
.rx(rx_buf, SHORT_XFR)
.callback(SPI::event_callback_t(this,
&SPITest::short_transfer_complete_cb),
SPI_EVENT_COMPLETE)
.apply());
<
>

1 Like

Hello,

no, DMA is not supported. There’s hint parameter but is ignored at the moment, as DMA was planned to come in the future.