6 * Copyright (C) 2001 Russell King.
8 * This file is placed under the LGPL.
11 * Touch screen library interface definitions.
14 #define NR_SAMPHISTLEN 4
16 #define VARIANCE_DELTA 10
17 #define DEJITTER_DELTA 100
22 unsigned int pressure;
25 struct tslib_variance {
27 struct ts_sample last;
28 struct ts_sample noise;
38 struct tslib_dejitter {
45 struct ts_hist hist[NR_SAMPHISTLEN];
49 int (*raw_read)(struct tslib_info *info, struct ts_sample *samp, int nr);
50 struct tslib_variance *var;
51 struct tslib_dejitter *djt;
56 int tslib_init(struct tslib_info *info, void *raw_read);
57 void variance_clear(struct tslib_info *info);
58 int variance_read(struct tslib_info *info, struct ts_sample *samp, int nr);
59 int dejitter_read(struct tslib_info *info, struct ts_sample *samp, int nr);
62 #endif /* _TSLIB_H_ */