essl_spi_get_packet() function
Get a packet from Slave
Arguments
arg
Context of the component. (Member ``arg`` from ``essl_handle_t``)
out_data
Output data address
size
The size of the output data.
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 output data address is neither DMA capable nor 4 byte-aligned - ESP_ERR_INVALID_SIZE: Master requires ``size`` bytes of data but Slave did not load enough bytes.
essl_spi_get_packet() calls 6 functions:
![]()
essl_spi_get_packet()
essl_spi_get_packet() reads 10 variables and writes 2 variables:
![]()
essl_spi_get_packet()