blob: 4705e98054caec62fc3f5bbba67bfd5b0d35b584 [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,
20 BAROMETER
21};
Enrico Granata60a818d2019-05-09 09:56:09 -070022
23std::string SensorKindToString(SensorKind kind);
24base::Optional<SensorKind> SensorKindFromString(const std::string& name);
25
26} // namespace mems_setup
27
28#endif // MEMS_SETUP_SENSOR_KIND_H_