accelerometer_constants.h 809 B

1234567891011121314151617181920212223
  1. // Copyright 2020 The Chromium 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. #ifndef ASH_ACCELEROMETER_ACCELEROMETER_CONSTANTS_H_
  5. #define ASH_ACCELEROMETER_ACCELEROMETER_CONSTANTS_H_
  6. #include "ash/accelerometer/accelerometer_types.h"
  7. namespace ash {
  8. const char kAccelerometerChannels[][8] = {"accel_x", "accel_y", "accel_z"};
  9. // The number of axes for which there are accelerometer readings.
  10. constexpr uint32_t kNumberOfAxes = 3u;
  11. // The names of the accelerometers. Matches up with the enum AccelerometerSource
  12. // in ash/accelerometer/accelerometer_types.h.
  13. const char kLocationStrings[ACCELEROMETER_SOURCE_COUNT][5] = {"lid", "base"};
  14. } // namespace ash
  15. #endif // ASH_ACCELEROMETER_ACCELEROMETER_CONSTANTS_H_