essl_spi_send_packet() function
Send a packet to Slave
Arguments
arg
Context of the component. (Member ``arg`` from ``essl_handle_t``)
data
Address of the data to send
size
Size of the data to send.
wait_ms
Time to wait before timeout (reserved for future use, user should set this to 0).
Return value
- ESP_OK: On success - ESP_ERR_INVALID_STATE: ESSL SPI has not been initialized. - ESP_ERR_INVALID_ARG: The data address is not DMA capable - ESP_ERR_INVALID_SIZE: Master will send ``size`` bytes of data but Slave did not load enough RX buffer
essl_spi_send_packet() calls 7 functions:
![]()
essl_spi_send_packet()
essl_spi_send_packet() reads 11 variables and writes 2 variables:
![]()
essl_spi_send_packet()