essl_send_packet() function
Send a packet to the ESSL Slave. The Slave receives the packet into buffers whose size is ``buffer_size`` (configured during initialization).
Arguments
handle
Handle of an ESSL device.
start
Start address of the packet to send
length
Length of data to send, if the packet is over-size, the it will be divided into blocks and hold into different buffers automatically.
wait_ms
Millisecond to wait before timeout, will not wait at all if set to 0-9.
Return value
- ESP_OK Success - ESP_ERR_INVALID_ARG: Invalid argument, handle is not init or other argument is not valid. - ESP_ERR_TIMEOUT: No buffer to use, or error ftrom SDMMC host controller. - ESP_ERR_NOT_FOUND: Slave is not ready for receiving. - ESP_ERR_NOT_SUPPORTED: This API is not supported in this mode - One of the error codes from SDMMC/SPI host controller.
essl_send_packet() is called by 1 function and calls 2 functions:
![]()
essl_send_packet()
essl_send_packet() reads 2 variables:
![]()
essl_send_packet()