[][src]Function esp_idf_sys::can_stop

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

@brief Stop the CAN driver

This function stops the CAN driver, preventing any further message from being transmitted or received until can_start() is called. Any messages in the TX queue are cleared. Any messages in the RX queue should be read by the application after this function is called. This function can only be called when the CAN driver is in the running state.

@warning A message currently being transmitted/received on the CAN bus will be ceased immediately. This may lead to other CAN nodes interpreting the unfinished message as an error.

@return - ESP_OK: CAN driver is now Stopped - ESP_ERR_INVALID_STATE: Driver is not in running state, or is not installed