Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef DEVICE_GENERIC_SENSOR_IIO_SENSOR_DATA_IIO_H_ | |
| 6 #define DEVICE_GENERIC_SENSOR_IIO_SENSOR_DATA_IIO_H_ | |
| 7 | |
| 8 #include "device/generic_sensor/public/interfaces/sensor.mojom.h" | |
| 9 | |
| 10 namespace device { | |
| 11 | |
| 12 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.
| |
| 13 // Provides a base path to all sensors. | |
| 14 const base::FilePath::CharType* base_path_sensor_iio; | |
| 15 // Provides an array of sensor file names to be searched for. | |
| 16 const char** sensor_file_names[3]; | |
| 17 // 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.
| |
| 18 size_t sensor_file_names_cols; | |
| 19 // 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.
| |
| 20 size_t sensor_file_names_rows; | |
| 21 // Reporting mode of a sensor. | |
| 22 mojom::ReportingMode reporting_mode; | |
| 23 // Default configuration of a sensor. | |
| 24 PlatformSensorConfiguration default_configuration; | |
| 25 }; | |
| 26 | |
| 27 // Initializes a sensor type specific data. | |
| 28 bool InitSensorData(mojom::SensorType type, SensorDataIio* data); | |
| 29 | |
| 30 } // namespace device | |
| 31 | |
| 32 #endif // DEVICE_GENERIC_SENSOR_IIO_SENSOR_DATA_IIO_H_ | |
| OLD | NEW |