blob: 69f808bf1e9edb7cafbb59ea687548d100039c43 [file] [log] [blame]
Enrico Granata60a818d2019-05-09 09:56:09 -07001// 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
12namespace mems_setup {
13
14enum class SensorKind { ACCELEROMETER, GYROSCOPE, LIGHT };
15
16std::string SensorKindToString(SensorKind kind);
17base::Optional<SensorKind> SensorKindFromString(const std::string& name);
18
19} // namespace mems_setup
20
21#endif // MEMS_SETUP_SENSOR_KIND_H_