essl_spi_wrbuf() function
Write the shared buffer of the slave in ISR way
Arguments
spi
SPI device handle representing the slave
data
Buffer for data to send, strongly suggested to be in the DRAM
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: 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.
![]()
return essl_spi_wrbuf(ctx->spi, &value, addr, sizeof(uint8_t), 0);
essl_spi_wrbuf() is called by 1 function and calls 3 functions:
![]()
essl_spi_wrbuf()
essl_spi_wrbuf() reads 1 variable:
![]()
essl_spi_wrbuf()