Index: device/generic_sensor/iio/sensor_data_iio.h |
diff --git a/device/generic_sensor/iio/sensor_data_iio.h b/device/generic_sensor/iio/sensor_data_iio.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..190afa2f9356d8bf62c74bb876e445bb67317dc2 |
--- /dev/null |
+++ b/device/generic_sensor/iio/sensor_data_iio.h |
@@ -0,0 +1,25 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef DEVICE_GENERIC_SENSOR_IIO_SENSOR_DATA_IIO_H_ |
+#define DEVICE_GENERIC_SENSOR_IIO_SENSOR_DATA_IIO_H_ |
+ |
+#include "device/generic_sensor/public/interfaces/sensor.mojom.h" |
+ |
+namespace device { |
+ |
+struct SensorDataIio { |
Mikhail
2016/10/17 10:34:12
pls add description comments for the structure and
maksims (do not use this acc)
2016/10/18 06:50:42
Done.
|
+ static const char* base_path_sensor_iio; |
Mikhail
2016/10/17 10:34:11
does not have to be static
maksims (do not use this acc)
2016/10/18 06:50:42
Done.
|
+ const char** sensor_file_names[3]; |
+ size_t sensor_file_names_cols; |
+ size_t sensor_file_names_rows; |
+ mojom::ReportingMode reporting_mode; |
+ PlatformSensorConfiguration default_configuration; |
+}; |
+ |
+bool CreateSensorData(mojom::SensorType type, SensorDataIio* data); |
Mikhail
2016/10/17 10:34:11
InitSensorData
maksims (do not use this acc)
2016/10/18 06:50:42
Done.
|
+ |
+} // namespace device |
+ |
+#endif // DEVICE_GENERIC_SENSOR_IIO_SENSOR_DATA_IIO_H_ |