Enrico Granata | 60a818d | 2019-05-09 09:56:09 -0700 | [diff] [blame^] | 1 | // Copyright 2019 The Chromium OS 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 MEMS_SETUP_SENSOR_KIND_H_ |
| 6 | #define MEMS_SETUP_SENSOR_KIND_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <base/optional.h> |
| 11 | |
| 12 | namespace mems_setup { |
| 13 | |
| 14 | enum class SensorKind { ACCELEROMETER, GYROSCOPE, LIGHT }; |
| 15 | |
| 16 | std::string SensorKindToString(SensorKind kind); |
| 17 | base::Optional<SensorKind> SensorKindFromString(const std::string& name); |
| 18 | |
| 19 | } // namespace mems_setup |
| 20 | |
| 21 | #endif // MEMS_SETUP_SENSOR_KIND_H_ |