essl_spi_rdbuf_polling() function
Read the shared buffer from the slave in polling way
Arguments
spi
SPI device handle representing the slave
out_data
Buffer for read data, strongly suggested to be in the DRAM and aligned to 4
addr
Address of the slave shared buffer
flags
`SPI_TRANS_*` flags to control the transaction mode of the transaction to send.
Return value
- ESP_OK: on success - or other return value from :cpp:func:`spi_device_transmit`.
Notes
``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.