blob: 487ecfdfbc5ec573e677c36a2226c97f7152b137 [file] [log] [blame]
keunyounge18e25d2015-08-28 15:57:19 -07001/*
2 * Copyright (C) 2015 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
17syntax = "proto2";
18option java_package = "com.android.car.vehiclenetwork";
19option optimize_for = LITE_RUNTIME;
20
keunyounge18e25d2015-08-28 15:57:19 -070021message VehiclePropConfig {
22 required int32 prop = 1;
23 required int32 access = 2;
24 required int32 change_mode = 3;
25 required int32 value_type = 4;
26 required int32 permission_model = 5;
Keun-young Park71b2f5c2016-03-10 18:44:40 -080027 optional int32 zones = 6;
28 repeated int32 config_array = 7;
29 required float sample_rate_max = 8;
30 required float sample_rate_min = 9;
31 optional string config_string = 10;
32 repeated float float_maxs = 11;
33 repeated float float_mins = 12;
34 repeated int32 int32_maxs = 13;
35 repeated int32 int32_mins = 14;
36 repeated int64 int64_maxs = 15;
37 repeated int64 int64_mins = 16;
keunyounge18e25d2015-08-28 15:57:19 -070038};
39
40message VehiclePropConfigs {
41 repeated VehiclePropConfig configs = 1;
42};
43
keunyounge18e25d2015-08-28 15:57:19 -070044message VehiclePropValue {
45 // common data
46 required int32 prop = 1;
47 required int32 value_type = 2;
keunyoung15882e52015-09-16 16:57:58 -070048 optional int64 timestamp = 3; // required for valid data from HAL, but can be skipped for set.
keunyounge18e25d2015-08-28 15:57:19 -070049 // values
Keun-young Park71b2f5c2016-03-10 18:44:40 -080050 optional int32 zone = 4;
51 repeated int32 int32_values= 5; // this also covers boolean value.
52 optional int64 int64_value = 6;
53 repeated float float_values = 7;
54 optional string string_value = 8;
55 optional bytes bytes_value = 9;
keunyounge18e25d2015-08-28 15:57:19 -070056};
57
58message VehiclePropValues {
59 repeated VehiclePropValue values = 1;
60};