Line No. | Rev | Author | Line |
---|---|---|---|
1 | 32 | kaklik | /***************************************************************************** |
2 | * |
||
3 | * Module for Microchip Graphics Library |
||
4 | * The header file contains scan codes for the standard AT keyboard |
||
5 | * |
||
6 | ***************************************************************************** |
||
7 | * FileName: ScanCodes.h |
||
8 | * Dependencies: None |
||
9 | * Processor: PIC24F, PIC24H, dsPIC, PIC32 |
||
10 | * Compiler: MPLAB C30 V3.00, MPLAB C32 |
||
11 | * Linker: MPLAB LINK30, MPLAB LINK32 |
||
12 | * Company: Microchip Technology Incorporated |
||
13 | * |
||
14 | * Software License Agreement |
||
15 | * |
||
16 | * Copyright © 2008 Microchip Technology Inc. All rights reserved. |
||
17 | * Microchip licenses to you the right to use, modify, copy and distribute |
||
18 | * Software only when embedded on a Microchip microcontroller or digital |
||
19 | * signal controller, which is SHORTegrated SHORTo your product or third party |
||
20 | * product (pursuant to the sublicense terms in the accompanying license |
||
21 | * agreement). |
||
22 | * |
||
23 | * You should refer to the license agreement accompanying this Software |
||
24 | * for additional information regarding your rights and obligations. |
||
25 | * |
||
26 | * SOFTWARE AND DOCUMENTATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY |
||
27 | * KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY |
||
28 | * OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR |
||
29 | * PURPOSE. IN NO EVENT SHALL MICROCHIP OR ITS LICENSORS BE LIABLE OR |
||
30 | * OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, |
||
31 | * BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT |
||
32 | * DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, |
||
33 | * INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, |
||
34 | * COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY |
||
35 | * CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), |
||
36 | * OR OTHER SIMILAR COSTS. |
||
37 | * |
||
38 | * Author Date Comment |
||
39 | *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
40 | * Anton Alkhimenok 07/20/07 ... |
||
41 | *****************************************************************************/ |
||
42 | #ifndef _SCANCODES_H |
||
43 | #define _SCANCODES_H |
||
44 | |||
45 | /********************************************************************* |
||
46 | * Overview: The following are the defined scan codes for AT keyboard. |
||
47 | * |
||
48 | *********************************************************************/ |
||
49 | |||
50 | // Carriage return pressed. |
||
51 | #define SCAN_CR_PRESSED 0x1C |
||
52 | |||
53 | // Carriage return released. |
||
54 | #define SCAN_CR_RELEASED 0x9C |
||
55 | |||
56 | // Carriage return alternate pressed. |
||
57 | #define SCAN_CRA_PRESSED 0x2C |
||
58 | |||
59 | // Carriage return alternate released. |
||
60 | #define SCAN_CRA_RELEASED 0xAC |
||
61 | |||
62 | // Delete key pressed. |
||
63 | #define SCAN_DEL_PRESSED 0x53 |
||
64 | |||
65 | // Delete key released. |
||
66 | #define SCAN_DEL_RELEASED 0xD3 |
||
67 | |||
68 | // Back space key pressed. |
||
69 | #define SCAN_BS_PRESSED 0x0E |
||
70 | |||
71 | // Back space key released. |
||
72 | #define SCAN_BS_RELEASED 0x8E |
||
73 | |||
74 | // Tab key pressed. |
||
75 | #define SCAN_TAB_PRESSED 0x0F |
||
76 | |||
77 | // Tab key released. |
||
78 | #define SCAN_TAB_RELEASED 0x8F |
||
79 | |||
80 | // Home key pressed. |
||
81 | #define SCAN_HOME_PRESSED 0x47 |
||
82 | |||
83 | // Home key released. |
||
84 | #define SCAN_HOME_RELEASED 0xC7 |
||
85 | |||
86 | // End key pressed. |
||
87 | #define SCAN_END_PRESSED 0x4F |
||
88 | |||
89 | // End key released. |
||
90 | #define SCAN_END_RELEASED 0xCF |
||
91 | |||
92 | // Page up key pressed. |
||
93 | #define SCAN_PGUP_PRESSED 0x49 |
||
94 | |||
95 | // Page up key released. |
||
96 | #define SCAN_PGUP_RELEASED 0xC9 |
||
97 | |||
98 | // Page down key pressed. |
||
99 | #define SCAN_PGDOWN_PRESSED 0x51 |
||
100 | |||
101 | // Page down key released. |
||
102 | #define SCAN_PGDOWN_RELEASED 0xD1 |
||
103 | |||
104 | // Up key pressed. |
||
105 | #define SCAN_UP_PRESSED 0x48 |
||
106 | |||
107 | // Up key released. |
||
108 | #define SCAN_UP_RELEASED 0xC8 |
||
109 | |||
110 | // Down key pressed. |
||
111 | #define SCAN_DOWN_PRESSED 0x50 |
||
112 | |||
113 | // Down key released. |
||
114 | #define SCAN_DOWN_RELEASED 0xD0 |
||
115 | |||
116 | // Left key pressed. |
||
117 | #define SCAN_LEFT_PRESSED 0x4B |
||
118 | |||
119 | // Left key released. |
||
120 | #define SCAN_LEFT_RELEASED 0xCB |
||
121 | |||
122 | // Right key pressed. |
||
123 | #define SCAN_RIGHT_PRESSED 0x4D |
||
124 | |||
125 | // Right key released. |
||
126 | #define SCAN_RIGHT_RELEASED 0xCD |
||
127 | |||
128 | // Space key pressed. |
||
129 | #define SCAN_SPACE_PRESSED 0x39 |
||
130 | |||
131 | // Space key released. |
||
132 | #define SCAN_SPACE_RELEASED 0xB9 |
||
133 | #endif // _SCANCODES_H |
Powered by WebSVN v2.8.3