1/* 2 * Copyright (C) 2021 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 = "proto3"; 18 19package android.hardware.automotive.vehicle.proto; 20 21import "android/hardware/automotive/vehicle/VehicleAreaConfig.proto"; 22import "android/hardware/automotive/vehicle/VehiclePropertyAccess.proto"; 23import "android/hardware/automotive/vehicle/VehiclePropertyChangeMode.proto"; 24 25/* Must be in sync with VehiclePropConfig.aidl. */ 26message VehiclePropConfig { 27 /* Property identifier */ 28 int32 prop = 1; 29 30 /* Defines if the property is read or write or both. */ 31 VehiclePropertyAccess access = 2; 32 33 /* Defines the change mode of the property. */ 34 VehiclePropertyChangeMode change_mode = 3; 35 36 /* Contains per-area configuration. */ 37 repeated VehicleAreaConfig area_configs = 4; 38 39 /* Contains additional configuration parameters */ 40 repeated int32 config_array = 5; 41 42 /* Some properties may require additional information passed over this 43 * string. Most properties do not need to set this. */ 44 bytes config_string = 6; 45 46 /* Min sample rate in Hz. 47 * Must be defined for VehiclePropertyChangeMode::CONTINUOUS */ 48 float min_sample_rate = 7; 49 50 /* Must be defined for VehiclePropertyChangeMode::CONTINUOUS 51 * Max sample rate in Hz. */ 52 float max_sample_rate = 8; 53}; 54