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.
![]()
ret = essl_spi_rdbuf_polling(ctx->spi, (uint8_t *)&previous_size, ctx->master_in.rx_sync_reg, sizeof(uint32_t), 0);
essl_spi_rdbuf_polling() is called by 2 functions and calls 3 functions:
![]()
essl_spi_rdbuf_polling()
essl_spi_rdbuf_polling() reads 1 variable:
![]()
essl_spi_rdbuf_polling()