Read from an SPI device Read \p len bytes from SPI to \p dst. Blocks until all data is transferred. No timeout, as SPI hardware always transfers at a known data rate. \p repeated_tx_data is output repeatedly on TX as data is read in from RX. Generally this can be 0, but some devices require a specific value here, e.g. SD cards expect 0xff
Write to an SPI device, blocking Write \p len bytes from \p src to SPI, and discard any data received back Blocks until all data is transferred. No timeout, as SPI hardware always transfers at a known data rate.
Write/Read to/from an SPI device Write \p len bytes from \p src to SPI. Simultaneously read \p len bytes from SPI to \p dst. Blocks until all data is transferred. No timeout, as SPI hardware always transfers at a known data rate.
Write/Read half words to/from an SPI device Write \p len halfwords from \p src to SPI. Simultaneously read \p len halfwords from SPI to \p dst. Blocks until all data is transferred. No timeout, as SPI hardware always transfers at a known data rate.
Write to an SPI device Write \p len halfwords from \p src to SPI. Discard any data received back. Blocks until all data is transferred. No timeout, as SPI hardware always transfers at a known data rate.
Read from an SPI device Read \p len halfwords from SPI to \p dst. Blocks until all data is transferred. No timeout, as SPI hardware always transfers at a known data rate. \p repeated_tx_data is output repeatedly on TX as data is read in from RX. Generally this can be 0, but some devices require a specific value here, e.g. SD cards expect 0xff