blob: 04315eaec9a36aaffb8feb7298274dcd85616664 [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
Harvey Yangf474de32020-09-11 16:11:30 +080014enum class SensorKind {
15 ACCELEROMETER,
16 GYROSCOPE,
17 LIGHT,
18 SYNC,
19 MAGNETOMETER,
Harvey Yangc40210b2020-12-11 19:58:10 +080020 LID_ANGLE,
Harvey Yangf474de32020-09-11 16:11:30 +080021 BAROMETER
22};
Enrico Granata60a818d2019-05-09 09:56:09 -070023
24std::string SensorKindToString(SensorKind kind);
25base::Optional<SensorKind> SensorKindFromString(const std::string& name);
26
27} // namespace mems_setup
28
29#endif // MEMS_SETUP_SENSOR_KIND_H_