summaryrefslogtreecommitdiff
path: root/m0110.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-04-21 11:07:51 +0900
committertmk <nobody@nowhere>2012-04-21 11:07:51 +0900
commit0a4fa89548e8c098c65c289865ebbf1e1c29adf4 (patch)
treeb60bf72ed05f1231503917af6b68fdef4d9ec170 /m0110.h
parent38d61ee1b191d40bcccbc252fdddba47e5bb8f36 (diff)
M0110: Fixed timing of signal handling.
Diffstat (limited to 'm0110.h')
-rw-r--r--m0110.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/m0110.h b/m0110.h
index f5c1e21bd8..287c45b548 100644
--- a/m0110.h
+++ b/m0110.h
@@ -55,11 +55,22 @@ POSSIBILITY OF SUCH DAMAGE.
#endif
#define M0110_INQUIRY 0x10
-#define M0110_INSTNAT 0x14
-#define M0110_MODLE 0x16
+#define M0110_INSTANT 0x14
+#define M0110_MODEL 0x16
#define M0110_TEST 0x36
+#define M0110_PAD 0x79
#define M0110_NULL 0x7B
+#define M0110_TEST_ACK 0x7D
+#define M0110_TEST_NAK 0x77
+
+
+/* scan code offset for keypad and arrow keys */
+#define M0110_KEYPAD_OFFSET 0x40
+#define M0110_ARROW_OFFSET 0x60
+
+/* convert key event raw response into scan code */
+#define M0110_RAW2SCAN(key) ((key&(1<<7)) | ((key&0x7F)>>1))
extern uint8_t m0110_error;