blob: 3d721142d083349a1e3002ea06d7a6abaf57479c (
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 ChromiumOS Authors
* 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 */
|