blob: d98dc8cdf8a75cc0fe9d42ff68280fd2d90b7956 (
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
25
26
|
/* 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.
*/
/* Header for gesture.c */
#ifndef __CROS_EC_GESTURE_H
#define __CROS_EC_GESTURE_H
/**
* Run gesture detection engine.
*/
void gesture_calc(void);
/* gesture hooks are triggered after the motion sense hooks. */
#define GESTURE_HOOK_PRIO (MOTION_SENSE_HOOK_PRIO + 10)
/* Output datarate for tap sensor (in milli-Hz) */
/*
* Note: lsm6ds0 accel needs twice the expected data rate in order to guarantee
* that we have a new data sample every reading.
*/
#define TAP_ODR (2 * (1000000 / CONFIG_GESTURE_SAMPLING_INTERVAL_MS))
#endif /* __CROS_EC_GESTURE_H */
|