/****************************************************************************
* Copyright (c) 2020 Honda R&D Co., Ltd.
* All rights reserved. You may not copy, distribute, publicly display,
* create derivative works from or otherwise use or modify this
* software without first obtaining a license from Honda R&D Co., Ltd.
****************************************************************************/
package com.honda.hardware.automotive.appleic;
// Interface inherits from com.honda.hardware.automotive.appleic@1.0::IAppleIc but AIDL does not support interface inheritance.
@VintfStability
interface IAppleIc {
// Adding return type to method instead of out param byte result since there is only one return value.
byte close();
// Adding return type to method instead of out param boolean result since there is only one return value.
/**
* Gets whether AppleIc HAL is supported.
*
* @return Must be true only if the AppleIc HAL is supported.
*/
boolean isSupported();
// Adding return type to method instead of out param byte result since there is only one return value.
byte open();
// FIXME: AIDL does not allow long to be an out parameter.
// Move it to return, or add it to a Parcelable.
void read(in byte addr, in long count, out long result, out byte[] buf);
// Adding return type to method instead of out param long result since there is only one return value.
long write(in byte addr, in byte[] buf, in long count);
}