summaryrefslogtreecommitdiff
path: root/include/motion_orientation.h
blob: 641f97a799012c85a0a3f845e227e17ddae0868a (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 */