blob: 7e783375732a3e6ff27b31a2cb98ed4c8bd662fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Copyright 2020 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.
*/
/* header for an orientation sensor. */
#ifndef __CROS_EC_MOTION_ORIENTATION_H
#define __CROS_EC_MOTION_ORIENTATION_H
#include "chipset.h"
#include "common.h"
#include "ec_commands.h"
#include "motion_sense.h"
enum motionsensor_orientation
motion_orientation_remap(const struct motion_sensor_t *s,
enum motionsensor_orientation orientation);
bool motion_orientation_changed(const struct motion_sensor_t *s);
enum motionsensor_orientation *
motion_orientation_ptr(const struct motion_sensor_t *s);
void motion_orientation_update(const struct motion_sensor_t *s);
#endif /* __CROS_EC_MOTION_ORIENTATION_H */
|