summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'automotive/vehicle/2.1/default/impl/vhal_v2_1/DefaultConfig.h')
-rw-r--r--automotive/vehicle/2.1/default/impl/vhal_v2_1/DefaultConfig.h90
1 files changed, 0 insertions, 90 deletions
diff --git a/automotive/vehicle/2.1/default/impl/vhal_v2_1/DefaultConfig.h b/automotive/vehicle/2.1/default/impl/vhal_v2_1/DefaultConfig.h
deleted file mode 100644
index 0f10086d..00000000
--- a/automotive/vehicle/2.1/default/impl/vhal_v2_1/DefaultConfig.h
+++ /dev/null
@@ -1,90 +0,0 @@
1/*
2 * Copyright (C) 2016 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
17#ifndef android_hardware_automotive_vehicle_V2_1_impl_DefaultConfig_H_
18#define android_hardware_automotive_vehicle_V2_1_impl_DefaultConfig_H_
19
20#include <android/hardware/automotive/vehicle/2.1/types.h>
21#include <vhal_v2_0/VehicleUtils.h>
22
23namespace android {
24namespace hardware {
25namespace automotive {
26namespace vehicle {
27namespace V2_1 {
28
29namespace impl {
30
31// Some handy constants to avoid conversions from enum to int.
32constexpr int OBD2_LIVE_FRAME = (int) V2_1::VehicleProperty::OBD2_LIVE_FRAME;
33constexpr int OBD2_FREEZE_FRAME = (int) V2_1::VehicleProperty::OBD2_FREEZE_FRAME;
34constexpr int OBD2_FREEZE_FRAME_INFO = (int) V2_1::VehicleProperty::OBD2_FREEZE_FRAME_INFO;
35constexpr int OBD2_FREEZE_FRAME_CLEAR = (int) V2_1::VehicleProperty::OBD2_FREEZE_FRAME_CLEAR;
36constexpr int VEHICLE_MAP_SERVICE = (int) V2_1::VehicleProperty::VEHICLE_MAP_SERVICE;
37constexpr int WHEEL_TICK = (int) V2_1::VehicleProperty::WHEEL_TICK;
38
39
40const V2_0::VehiclePropConfig kVehicleProperties[] = {
41 {
42 .prop = WHEEL_TICK,
43 .access = V2_0::VehiclePropertyAccess::READ,
44 .changeMode = V2_0::VehiclePropertyChangeMode::CONTINUOUS,
45 .minSampleRate = 1.0f,
46 .maxSampleRate = 100.0f,
47 },
48
49 {
50 .prop = OBD2_LIVE_FRAME,
51 .access = V2_0::VehiclePropertyAccess::READ,
52 .changeMode = V2_0::VehiclePropertyChangeMode::ON_CHANGE,
53 .configArray = {0,0}
54 },
55
56 {
57 .prop = OBD2_FREEZE_FRAME,
58 .access = V2_0::VehiclePropertyAccess::READ,
59 .changeMode = V2_0::VehiclePropertyChangeMode::ON_CHANGE,
60 .configArray = {0,0}
61 },
62
63 {
64 .prop = OBD2_FREEZE_FRAME_INFO,
65 .access = V2_0::VehiclePropertyAccess::READ,
66 .changeMode = V2_0::VehiclePropertyChangeMode::ON_CHANGE
67 },
68
69 {
70 .prop = OBD2_FREEZE_FRAME_CLEAR,
71 .access = V2_0::VehiclePropertyAccess::WRITE,
72 .changeMode = V2_0::VehiclePropertyChangeMode::ON_CHANGE
73 },
74
75 {
76 .prop = VEHICLE_MAP_SERVICE,
77 .access = V2_0::VehiclePropertyAccess::READ_WRITE,
78 .changeMode = V2_0::VehiclePropertyChangeMode::ON_CHANGE
79 }
80};
81
82} // impl
83
84} // namespace V2_1
85} // namespace vehicle
86} // namespace automotive
87} // namespace hardware
88} // namespace android
89
90#endif // android_hardware_automotive_vehicle_V2_1_impl_DefaultConfig_H_