parlio_rx_unit_wait_all_done() function
Wait for all pending RX transactions done
Arguments
rx_unit
Parallel IO RX unit handle that created by `parlio_new_rx_unit`
timeout_ms
Timeout in milliseconds, `-1` means to wait forever (software timeout)
Return value
- ESP_ERR_INVALID_ARG The input rx_unit is NULL - ESP_ERR_TIMEOUT Wait for all transactions done timeout - ESP_OK All transaction done
Notes
This function will block until all receiving transactions done or timeout. When timeout occurs, either the timeout limitation too short for all transactions done, or the peripheral got stuck and no more interrupts trigger (e.g., external clock stopped).