Function esp_idf_svc::hal::sys::twai_clear_receive_queue

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

@brief Clear the receive queue

This function will clear the receive queue of all messages.

@note The receive queue is automatically cleared when twai_start() is called.

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