essl_spi_rdbuf() is only used within host sample.
 
Symbols
loading (1/4)...
Files
loading (2/4)...
SummarySyntaxArgumentsReferencesCall TreeData Use

Return value

- ESP_OK: on success - or other return value from :cpp:func:`spi_device_transmit`.

Notes

The slave's HW doesn't guarantee the data in one SPI transaction is consistent. It sends data in unit of byte. In other words, if the slave SW attempts to update the shared register when a rdbuf SPI transaction is in-flight, the data got by the master will be the combination of bytes of different writes of slave SW. ``out_data`` should be prepared in words and in the DRAM. The buffer may be written in words by the DMA. When a byte is written, the remaining bytes in the same word will also be overwritten, even the ``len`` is shorter than a word.

References