Remove the calls to backlight_lcd_sleep_countdown from target specific code and move...
[kugel-rb.git] / firmware / export / touchscreen.h
blob0d8233a5228a73bdd18bcaf4d667f305fff4547b
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2008 by Maurus Cuelenaere
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef __TOUCHSCREEN_INCLUDE_H_
23 #define __TOUCHSCREEN_INCLUDE_H_
25 struct touchscreen_calibration
27 int x[3];
28 int xfb[3];
29 int y[3];
30 int yfb[3];
33 enum touchscreen_mode
35 TOUCHSCREEN_POINT = 0, /* touchscreen returns pixel co-ords */
36 TOUCHSCREEN_BUTTON, /* touchscreen returns BUTTON_* area codes
37 actual pixel value will still be accessible
38 from button_get_data */
41 int touchscreen_calibrate(struct touchscreen_calibration *cal);
42 int touchscreen_to_pixels(int x, int y, int *data);
43 void touchscreen_set_mode(enum touchscreen_mode mode);
44 enum touchscreen_mode touchscreen_get_mode(void);
45 void touchscreen_disable_mapping(void);
46 void touchscreen_reset_mapping(void);
48 #endif /* __TOUCHSCREEN_INCLUDE_H_ */