Function esp_idf_hal::sys::twai_driver_uninstall
source ยท pub unsafe extern "C" fn twai_driver_uninstall() -> i32
Expand description
@brief Uninstall the TWAI driver
This function uninstalls the TWAI 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 TWAI driver - ESP_ERR_INVALID_STATE: Driver is not in stopped/bus-off state, or is not installed