Function esp_idf_svc::hal::sys::twai_clear_receive_queue_v2
source ยท pub unsafe extern "C" fn twai_clear_receive_queue_v2(
handle: *mut twai_obj_t,
) -> i32
Expand description
@brief Clear the receive queue of a given TWAI driver handle
@note This is an advanced version of twai_clear_receive_queue
that can clear the receive queue of a given TWAI driver handle.
Please refer to the documentation of twai_clear_receive_queue
for more details.
@param[in] handle TWAI driver handle returned by twai_driver_install_v2
@return - ESP_OK: Transmit queue cleared - ESP_ERR_INVALID_STATE: TWAI driver is not installed