summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h')
-rw-r--r--automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h200
1 files changed, 200 insertions, 0 deletions
diff --git a/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h b/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h
new file mode 100644
index 00000000..ec08a43e
--- /dev/null
+++ b/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h
@@ -0,0 +1,200 @@
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_0_impl_DefaultConfig_H_
18#define android_hardware_automotive_vehicle_V2_0_impl_DefaultConfig_H_
19
20#include <android/hardware/automotive/vehicle/2.0/IVehicle.h>
21#include <vhal_v2_0/VehicleUtils.h>
22
23namespace android {
24namespace hardware {
25namespace automotive {
26namespace vehicle {
27namespace V2_0 {
28
29namespace impl {
30
31const VehiclePropConfig kVehicleProperties[] = {
32 {
33 .prop = toInt(VehicleProperty::INFO_MAKE),
34 .access = VehiclePropertyAccess::READ,
35 .changeMode = VehiclePropertyChangeMode::STATIC,
36 },
37
38 {
39 .prop = toInt(VehicleProperty::HVAC_POWER_ON),
40 .access = VehiclePropertyAccess::READ_WRITE,
41 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
42 .supportedAreas = toInt(VehicleAreaZone::ROW_1)
43 },
44
45 {
46 .prop = toInt(VehicleProperty::HVAC_DEFROSTER),
47 .access = VehiclePropertyAccess::READ_WRITE,
48 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
49 .supportedAreas =
50 VehicleAreaWindow::FRONT_WINDSHIELD
51 | VehicleAreaWindow::REAR_WINDSHIELD
52 },
53
54 {
55 .prop = toInt(VehicleProperty::HVAC_RECIRC_ON),
56 .access = VehiclePropertyAccess::READ_WRITE,
57 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
58 .supportedAreas = toInt(VehicleAreaZone::ROW_1)
59 },
60
61 {
62 .prop = toInt(VehicleProperty::HVAC_AC_ON),
63 .access = VehiclePropertyAccess::READ_WRITE,
64 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
65 .supportedAreas = toInt(VehicleAreaZone::ROW_1)
66 },
67
68 {
69 .prop = toInt(VehicleProperty::HVAC_AUTO_ON),
70 .access = VehiclePropertyAccess::READ_WRITE,
71 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
72 .supportedAreas = toInt(VehicleAreaZone::ROW_1)
73 },
74
75 {
76 .prop = toInt(VehicleProperty::HVAC_FAN_SPEED),
77 .access = VehiclePropertyAccess::READ_WRITE,
78 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
79 .supportedAreas = toInt(VehicleAreaZone::ROW_1),
80 .areaConfigs = {
81 VehicleAreaConfig {
82 .areaId = toInt(VehicleAreaZone::ROW_1),
83 .minInt32Value = 1,
84 .maxInt32Value = 7
85 }
86 }
87 },
88
89 {
90 .prop = toInt(VehicleProperty::HVAC_FAN_DIRECTION),
91 .access = VehiclePropertyAccess::READ_WRITE,
92 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
93 .supportedAreas = toInt(VehicleAreaZone::ROW_1),
94 },
95
96 {
97 .prop = toInt(VehicleProperty::HVAC_TEMPERATURE_SET),
98 .access = VehiclePropertyAccess::READ_WRITE,
99 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
100 .supportedAreas =
101 VehicleAreaZone::ROW_1_LEFT
102 | VehicleAreaZone::ROW_1_RIGHT,
103 .areaConfigs = {
104 VehicleAreaConfig {
105 .areaId = toInt(VehicleAreaZone::ROW_1_LEFT),
106 .minFloatValue = 16,
107 .maxFloatValue = 32,
108 },
109 VehicleAreaConfig {
110 .areaId = toInt(VehicleAreaZone::ROW_1_RIGHT),
111 .minFloatValue = 16,
112 .maxFloatValue = 32,
113 }
114 }
115 },
116
117 {
118 .prop = toInt(VehicleProperty::NIGHT_MODE),
119 .access = VehiclePropertyAccess::READ,
120 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
121 },
122
123 {
124 .prop = toInt(VehicleProperty::DRIVING_STATUS),
125 .access = VehiclePropertyAccess::READ,
126 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
127 },
128
129 {
130 .prop = toInt(VehicleProperty::GEAR_SELECTION),
131 .access = VehiclePropertyAccess::READ,
132 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
133 },
134
135 {
136 .prop = toInt(VehicleProperty::INFO_FUEL_CAPACITY),
137 .access = VehiclePropertyAccess::READ,
138 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
139 .areaConfigs = {
140 VehicleAreaConfig {
141 .minFloatValue = 0,
142 .maxFloatValue = 1.0
143 }
144 }
145 },
146
147 {
148 .prop = toInt(VehicleProperty::DISPLAY_BRIGHTNESS),
149 .access = VehiclePropertyAccess::READ_WRITE,
150 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
151 .areaConfigs = {
152 VehicleAreaConfig {
153 .minInt32Value = 0,
154 .maxInt32Value = 10
155 }
156 }
157 },
158
159 {
160 .prop = toInt(VehicleProperty::IGNITION_STATE),
161 .access = VehiclePropertyAccess::READ,
162 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
163 },
164
165 {
166 .prop = toInt(VehicleProperty::OBD2_LIVE_FRAME),
167 .access = VehiclePropertyAccess::READ,
168 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
169 .configArray = {0,0}
170 },
171
172 {
173 .prop = toInt(VehicleProperty::OBD2_FREEZE_FRAME),
174 .access = VehiclePropertyAccess::READ,
175 .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
176 .configArray = {0,0}
177 },
178
179 {
180 .prop = toInt(VehicleProperty::OBD2_FREEZE_FRAME_INFO),
181 .access = VehiclePropertyAccess::READ,
182 .changeMode = VehiclePropertyChangeMode::ON_CHANGE
183 },
184
185 {
186 .prop = toInt(VehicleProperty::OBD2_FREEZE_FRAME_CLEAR),
187 .access = VehiclePropertyAccess::WRITE,
188 .changeMode = VehiclePropertyChangeMode::ON_CHANGE
189 }
190};
191
192} // impl
193
194} // namespace V2_0
195} // namespace vehicle
196} // namespace automotive
197} // namespace hardware
198} // namespace android
199
200#endif // android_hardware_automotive_vehicle_V2_0_impl_DefaultConfig_H_