summaryrefslogtreecommitdiff
path: root/firmware/export/tsc2100.h
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-04-28 05:07:25 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-04-28 05:07:25 +0000
commit57ca7ccf36728fec7096931a064adc0b0e212ae0 (patch)
treed97c3a9477eac4cf2c7d7a4e0602a0b772d5805f /firmware/export/tsc2100.h
parent4e747f1c5ccc98d99c24354c6fef0d6abf87d220 (diff)
M:Robe 500: Rearrage TSC2100 reads to make touchscreen more reliable, add hack to get lcd_sleep working/called again, fix the panic handler so that it waits for the power button to be pressed instead of freezing the player
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20818 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/tsc2100.h')
-rw-r--r--firmware/export/tsc2100.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/firmware/export/tsc2100.h b/firmware/export/tsc2100.h
index 8d0ee529ff..06714db862 100644
--- a/firmware/export/tsc2100.h
+++ b/firmware/export/tsc2100.h
@@ -21,8 +21,11 @@
#ifndef __TSC2100_H_
#define __TSC2100_H_
-/* Read X, Y, Z1, Z2 touchscreen coordinates. */
-void tsc2100_read_values(short *x, short* y, short *z1, short *z2);
+void tsc2100_read_data(void);
+void tsc2100_read_touch(short *x, short* y, short *z1, short *z2);
+void tsc2100_read_volt(short *bat1, short *bat2, short *aux);
+void tsc2100_set_mode(unsigned char scan_mode);
+void tsc2100_adc_init(void);
/* read a register */
short tsc2100_readreg(int page, int address);
@@ -69,6 +72,14 @@ void tsc2100_keyclick(void);
#define TSSTAT_T2STAT (1<<1)
// Bit 0 is reserved (1<<0)
+/* ts Reference Control */
+#define TSREF_PAGE 1
+#define TSREF_ADDRESS 0x03
+#define TSREF_VREFM (1<<4)
+#define TSREF_RPWUDL_SHIFT 2
+#define TSREF_RPWDN (1<<1)
+#define TSREF_IREFV (1<<0)
+
/* ts Reset Control */
#define TSRESET_PAGE 1
#define TSRESET_ADDRESS 0x04