blob: 8a6ba054bc2db0bc0aaf28a116f9293240dfff88 [file] [log] [blame]
/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.hardware.automotive.can@1.0;
/**
* CAN error listener.
*/
interface ICanErrorListener {
/**
* Called on error event.
*
* If the error is fatal, the client is supposed to drop any references to
* this specific ICanBus instance.
*
* @param error Error type
* @param isFatal Whether an error would result with ICanBus instance being unusable.
*/
onError(ErrorEvent error, bool isFatal);
};