summaryrefslogtreecommitdiff
path: root/include/lid_angle.h
blob: bd60b90907c71ce567338add30176d429b4ed9ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Copyright (c) 2014 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.
 */

/* Lid angle module for Chrome EC */

#ifndef __CROS_EC_LID_ANGLE_H
#define __CROS_EC_LID_ANGLE_H

/**
 * Update the lid angle module with the most recent lid angle calculation. Then
 * use the lid angle history to enable/disable keyboard scanning when chipset
 * is suspended.
 *
 * @lid_ang Lid angle.
 */
void lidangle_keyscan_update(float lid_ang);

#endif  /* __CROS_EC_LID_ANGLE_H */