blob: 2f8667cf0ae8014a3d4d9bc079726802aeccbe7b [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 Yang73394622020-02-12 10:57:57 +080021 BAROMETER,
22 OTHERS,
Harvey Yangf474de32020-09-11 16:11:30 +080023};
Enrico Granata60a818d2019-05-09 09:56:09 -070024
25std::string SensorKindToString(SensorKind kind);
Harvey Yang73394622020-02-12 10:57:57 +080026SensorKind SensorKindFromString(const std::string& name);
Enrico Granata60a818d2019-05-09 09:56:09 -070027
28} // namespace mems_setup
29
30#endif // MEMS_SETUP_SENSOR_KIND_H_