summaryrefslogtreecommitdiff
path: root/firmware/target/arm/gigabeat/meg-fx/button-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/gigabeat/meg-fx/button-target.h')
-rw-r--r--firmware/target/arm/gigabeat/meg-fx/button-target.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/firmware/target/arm/gigabeat/meg-fx/button-target.h b/firmware/target/arm/gigabeat/meg-fx/button-target.h
index 95fb72e601..ab68e8050f 100644
--- a/firmware/target/arm/gigabeat/meg-fx/button-target.h
+++ b/firmware/target/arm/gigabeat/meg-fx/button-target.h
@@ -45,6 +45,37 @@ int button_read_device(void);
45#define BUTTON_A 0x00000200 45#define BUTTON_A 0x00000200
46 46
47 47
48/* Toshiba Gigabeat specific remote button ADC values */
49/* The remote control uses ADC 1 to emulate button pushes
50 Reading (approx) Button HP plugged in? Remote plugged in?
51 0 N/A Yes No
52 125 Play/Pause Cant tell Yes
53 241 Speaker+ Cant tell Yes
54 369 Rewind Cant tell Yes
55 492 Fast Fwd Cant tell Yes
56 616 Vol + Cant tell Yes
57 742 Vol - Cant tell Yes
58 864 None Cant tell Yes
59 1023 N/A No No
60*/
61
62/*
63 Notes:
64
65 Buttons on the remote are translated into equivalent button presses just
66 as if you were pressing them on the Gigabeat itself.
67
68 We cannot tell if the hold is asserted on the remote. The Hold function on
69 the remote is to block the output of the buttons changing.
70
71 Only one button can be sensed at a time. If another is pressed, the button
72 with the lowest reading is dominant. So, if Rewind and Vol + are pressed
73 at the same time, Rewind value is the one that is read.
74*/
75
76
77
78
48#define BUTTON_MAIN (BUTTON_POWER|BUTTON_MENU|BUTTON_LEFT|BUTTON_RIGHT\ 79#define BUTTON_MAIN (BUTTON_POWER|BUTTON_MENU|BUTTON_LEFT|BUTTON_RIGHT\
49 |BUTTON_UP|BUTTON_DOWN|BUTTON_VOL_UP|BUTTON_VOL_DOWN\ 80 |BUTTON_UP|BUTTON_DOWN|BUTTON_VOL_UP|BUTTON_VOL_DOWN\
50 |BUTTON_SELECT|BUTTON_A) 81 |BUTTON_SELECT|BUTTON_A)