Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: device/generic_sensor/iio/sensor_data_iio.h

Issue 2370343002: [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)
Patch Set: fixed comment Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698