diff options
Diffstat (limited to 'firmware/export/touchscreen.h')
-rwxr-xr-x | firmware/export/touchscreen.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/firmware/export/touchscreen.h b/firmware/export/touchscreen.h index 0d8233a522..7d1eb4ac8a 100755 --- a/firmware/export/touchscreen.h +++ b/firmware/export/touchscreen.h | |||
@@ -24,10 +24,14 @@ | |||
24 | 24 | ||
25 | struct touchscreen_calibration | 25 | struct touchscreen_calibration |
26 | { | 26 | { |
27 | int x[3]; | 27 | int x[3][2]; |
28 | int xfb[3]; | 28 | int y[3][2]; |
29 | int y[3]; | 29 | }; |
30 | int yfb[3]; | 30 | |
31 | struct touchscreen_parameter | ||
32 | { | ||
33 | int A, B, C, D, E, F; | ||
34 | int divider; | ||
31 | }; | 35 | }; |
32 | 36 | ||
33 | enum touchscreen_mode | 37 | enum touchscreen_mode |
@@ -38,6 +42,8 @@ enum touchscreen_mode | |||
38 | from button_get_data */ | 42 | from button_get_data */ |
39 | }; | 43 | }; |
40 | 44 | ||
45 | extern struct touchscreen_parameter calibration_parameters; | ||
46 | extern const struct touchscreen_parameter default_calibration_parameters; | ||
41 | int touchscreen_calibrate(struct touchscreen_calibration *cal); | 47 | int touchscreen_calibrate(struct touchscreen_calibration *cal); |
42 | int touchscreen_to_pixels(int x, int y, int *data); | 48 | int touchscreen_to_pixels(int x, int y, int *data); |
43 | void touchscreen_set_mode(enum touchscreen_mode mode); | 49 | void touchscreen_set_mode(enum touchscreen_mode mode); |