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..954420d0a1aecf057ca1a285075a9758c324599f |
--- /dev/null |
+++ b/device/generic_sensor/iio/sensor_data_iio.h |
@@ -0,0 +1,32 @@ |
+// 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/18 11:37:20
description, what does this structure represents?
maksims (do not use this acc)
2016/10/19 06:57:09
Done.
|
+ // Provides a base path to all sensors. |
+ const base::FilePath::CharType* base_path_sensor_iio; |
+ // Provides an array of sensor file names to be searched for. |
+ const char** sensor_file_names[3]; |
+ // Number of words in one set. |
Mikhail
2016/10/18 11:37:20
could you give more concrete description? i.e. "nu
maksims (do not use this acc)
2016/10/19 06:57:09
Done.
|
+ size_t sensor_file_names_cols; |
+ // Number of arrays of words. |
Mikhail
2016/10/18 11:37:21
ditto. "corresponds to the sensor reading fields n
maksims (do not use this acc)
2016/10/19 06:57:09
Done.
|
+ size_t sensor_file_names_rows; |
+ // Reporting mode of a sensor. |
+ mojom::ReportingMode reporting_mode; |
+ // Default configuration of a sensor. |
+ PlatformSensorConfiguration default_configuration; |
+}; |
+ |
+// Initializes a sensor type specific data. |
+bool InitSensorData(mojom::SensorType type, SensorDataIio* data); |
+ |
+} // namespace device |
+ |
+#endif // DEVICE_GENERIC_SENSOR_IIO_SENSOR_DATA_IIO_H_ |