pub unsafe extern "C" fn twai_clear_transmit_queue() -> esp_err_t
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