blob: f95209fe68ffa51791fa9b040803e7f9d41361a0 [file] [log] [blame]
Tanmay Patil496b86c2020-01-07 17:50:23 -08001/*
2 * Copyright 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.automotive.evs@1.1;
18
19import UltrasonicsDataFrameDesc;
20import @1.1::EvsEventDesc;
21
22/**
23 * Implemented on client side to receive asynchronous ultrasonic data
24 * deliveries.
25 */
26interface IEvsUltrasonicsArrayStream {
27 /**
28 * Receives calls from the HAL each time a data frame is ready.
29 *
30 * @param dataFrameDesc Ultrasonic array data frame descriptor.
31 */
32 oneway deliverDataFrame(UltrasonicsDataFrameDesc dataFrameDesc);
33
34 /**
35 * Receives calls from the HAL each time an event happens.
36 *
37 * @param event Event EVS event with possible event information.
38 */
39 oneway notify(EvsEventDesc event);
40};