diff options
author | tmk <nobody@nowhere> | 2012-04-21 11:07:51 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-04-21 11:07:51 +0900 |
commit | 0a4fa89548e8c098c65c289865ebbf1e1c29adf4 (patch) | |
tree | b60bf72ed05f1231503917af6b68fdef4d9ec170 /m0110.h | |
parent | 38d61ee1b191d40bcccbc252fdddba47e5bb8f36 (diff) |
M0110: Fixed timing of signal handling.
Diffstat (limited to 'm0110.h')
-rw-r--r-- | m0110.h | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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; |