Function esp_idf_svc::hal::sys::twai_clear_transmit_queue

source ยท
pub unsafe extern "C" fn twai_clear_transmit_queue() -> i32
Expand description

@brief Clear the transmit queue

This function will clear the transmit queue of all messages.

@note The transmit queue is automatically cleared when twai_stop() or twai_initiate_recovery() is called.

@return - ESP_OK: Transmit queue cleared - ESP_ERR_INVALID_STATE: TWAI driver is not installed or TX queue is disabled