blob: be179abe34d5146e04b1ec333df74762875a133f [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,
HID_OTHERS,
OTHERS,
};
std::string SensorKindToString(SensorKind kind);
// Used on EC stack sensors.
SensorKind SensorKindFromString(const std::string& name);
} // namespace mems_setup
#endif // MEMS_SETUP_SENSOR_KIND_H_