blob: 2f8667cf0ae8014a3d4d9bc079726802aeccbe7b [file] [log] [blame]
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEMS_SETUP_SENSOR_KIND_H_
#define MEMS_SETUP_SENSOR_KIND_H_
#include <string>
#include <base/optional.h>
namespace mems_setup {
enum class SensorKind {
ACCELEROMETER,
GYROSCOPE,
LIGHT,
SYNC,
MAGNETOMETER,
LID_ANGLE,
BAROMETER,
OTHERS,
};
std::string SensorKindToString(SensorKind kind);
SensorKind SensorKindFromString(const std::string& name);
} // namespace mems_setup
#endif // MEMS_SETUP_SENSOR_KIND_H_