aboutsummaryrefslogtreecommitdiff
path: root/include/linux/ts_filter_mean.h
blob: 46ff01a4c82bc890dca92f08f6752cce68b279a9 (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
27
28
29
30
31
32
33
34
#ifndef __TS_FILTER_MEAN_H__
#define __TS_FILTER_MEAN_H__

#include <linux/ts_filter.h>

/*
 * touchscreen filter
 *
 * mean
 *
 * (c) 2008 Andy Green <andy@openmoko.com>
 */

struct ts_filter_mean_configuration {
	int bits_filter_length;
	int averaging_threshold;

	int extent;
};

struct ts_filter_mean {
	struct ts_filter tsf;
	struct ts_filter_mean_configuration *config;

	int reported[MAX_TS_FILTER_COORDS];
	int lowpass[MAX_TS_FILTER_COORDS];
	int *fifo[MAX_TS_FILTER_COORDS];
	int fhead[MAX_TS_FILTER_COORDS];
	int ftail[MAX_TS_FILTER_COORDS];
};

extern struct ts_filter_api ts_filter_mean_api;

#endif