Function esp_idf_svc::hal::sys::rmt_wait_tx_done
source · pub unsafe extern "C" fn rmt_wait_tx_done(
channel: u32,
wait_time: u32,
) -> i32
Expand description
@brief Wait RMT TX finished.
@param channel RMT channel @param wait_time Maximum time in ticks to wait for transmission to be complete. If set 0, return immediately with ESP_ERR_TIMEOUT if TX is busy (polling).
@return - ESP_OK RMT Tx done successfully - ESP_ERR_TIMEOUT Exceeded the ‘wait_time’ given - ESP_ERR_INVALID_ARG Parameter error - ESP_FAIL Driver not installed