[][src]Function esp_idf_sys::can_driver_uninstall

pub unsafe extern "C" fn can_driver_uninstall() -> esp_err_t

@brief Uninstall the CAN driver

This function uninstalls the CAN driver, freeing the memory utilized by the driver. This function can only be called when the driver is in the stopped state or the bus-off state.

@warning The application must ensure that no tasks are blocked on TX/RX queues or alerts when this function is called.

@return - ESP_OK: Successfully uninstalled CAN driver - ESP_ERR_INVALID_STATE: Driver is not in stopped/bus-off state, or is not installed