[−][src]Function esp_idf_sys::can_initiate_recovery
pub unsafe extern "C" fn can_initiate_recovery() -> esp_err_t
@brief Start the bus recovery process
This function initiates the bus recovery process when the CAN driver is in the bus-off state. Once initiated, the CAN driver will enter the recovering state and wait for 128 occurrences of the bus-free signal on the CAN bus before returning to the stopped state. This function will reset the TX queue, clearing any messages pending transmission.
@note The BUS_RECOVERED alert can be enabled to alert the application when the bus recovery process completes.
@return - ESP_OK: Bus recovery started - ESP_ERR_INVALID_STATE: CAN driver is not in the bus-off state, or is not installed