Lines Matching refs:u8

6 pub const NUM_SCAN_CODES: u8 = 0x80;
8 pub const TYPE1_KEYCODE_MAP_TABLE_COLS: u8 = 2;
11 pub const TYPE1_KEYCODE_FLAG_BREAK: u8 = 0x80; // 用于判断按键是否被按下
14 #[repr(u8)]
18 NoneFlag = 0 as u8,
19 PauseBreak = 1 as u8,
20 PrintScreenPress = 2 as u8,
21 PrintScreenRelease = 4 as u8,
22 OtherKey = 8 as u8, // 除了上面两个按键以外的功能按键(不包括下面的第三类按键)
46 pub fn parse(&mut self, scancode: u8) -> TypeOneFSMState { in parse()
60 PauseBreak(u8),
66 PrtscPress(u8),
67 PrtscRelease(u8),
74 scancode: u8, in parse() argument
104 scancode: u8, in handle_start() argument
126 scancode: u8, in handle_pause_break() argument
130 static PAUSE_BREAK_SCAN_CODE: [u8; 6] = [0xe1, 0x1d, 0x45, 0xe1, 0x9d, 0xc5]; in handle_pause_break()
151 scancode: u8, in handle_func0() argument
271 let ch = '/' as u8; in handle_func0()
279 Self::emit(tty, '\n' as u8); in handle_func0()
293 scancode: u8, in handle_type3() argument
298 let flag_make = if (scancode & (TYPE1_KEYCODE_FLAG_BREAK as u8)) > 0 { in handle_type3()
370 fn emit(tty: &Arc<TtyDevice>, ch: u8) { in emit() argument
378 scancode: u8, in handle_prtsc_press() argument
382 static PRTSC_SCAN_CODE: [u8; 4] = [0xe0, 0x2a, 0xe0, 0x37]; in handle_prtsc_press()
406 scancode: u8, in handle_prtsc_release() argument
410 static PRTSC_SCAN_CODE: [u8; 4] = [0xe0, 0xb7, 0xe0, 0xaa]; in handle_prtsc_release()
498 const TYPE1_KEY_CODE_MAPTABLE: [u8; 256] = [
500 /*0x02*/ '1' as u8, '!' as u8, /*0x03*/ '2' as u8, '@' as u8,
501 /*0x04*/ '3' as u8, '#' as u8, /*0x05*/ '4' as u8, '$' as u8,
502 /*0x06*/ '5' as u8, '%' as u8, /*0x07*/ '6' as u8, '^' as u8,
503 /*0x08*/ '7' as u8, '&' as u8, /*0x09*/ '8' as u8, '*' as u8,
504 /*0x0a*/ '9' as u8, '(' as u8, /*0x0b*/ '0' as u8, ')' as u8,
505 /*0x0c*/ '-' as u8, '_' as u8, /*0x0d*/ '=' as u8, '+' as u8,
506 /*0x0e \b */ 8 as u8, 8 as u8, // BACKSPACE
507 /*0x0f*/ '\t' as u8, '\t' as u8, // TAB
509 /*0x10*/ 'q' as u8,
510 'Q' as u8, /*0x11*/ 'w' as u8, 'W' as u8, /*0x12*/ 'e' as u8, 'E' as u8,
511 /*0x13*/ 'r' as u8, 'R' as u8, /*0x14*/ 't' as u8, 'T' as u8,
512 /*0x15*/ 'y' as u8, 'Y' as u8, /*0x16*/ 'u' as u8, 'U' as u8,
513 /*0x17*/ 'i' as u8, 'I' as u8, /*0x18*/ 'o' as u8, 'O' as u8,
514 /*0x19*/ 'p' as u8, 'P' as u8,
517 /*0x1a*/ '[' as u8,
518 '{' as u8, /*0x1b*/ ']' as u8, '}' as u8, /*0x1c*/ '\n' as u8,
519 '\n' as u8, // ENTER
522 /*0x1e*/ 'a' as u8,
523 'A' as u8, /*0x1f*/ 's' as u8, 'S' as u8, /*0x20*/ 'd' as u8, 'D' as u8,
524 /*0x21*/ 'f' as u8, 'F' as u8, /*0x22*/ 'g' as u8, 'G' as u8,
525 /*0x23*/ 'h' as u8, 'H' as u8, /*0x24*/ 'j' as u8, 'J' as u8,
526 /*0x25*/ 'k' as u8, 'K' as u8, /*0x26*/ 'l' as u8, 'L' as u8,
529 /*0x27*/ ';' as u8,
530 ':' as u8, /*0x28*/ '\'' as u8, '"' as u8, /*0x29*/ '`' as u8, '~' as u8,
532 /*0x2b*/ '\\' as u8, '|' as u8,
534 /*0x2c*/ 'z' as u8,
535 'Z' as u8, /*0x2d*/ 'x' as u8, 'X' as u8, /*0x2e*/ 'c' as u8, 'C' as u8,
536 /*0x2f*/ 'v' as u8, 'V' as u8, /*0x30*/ 'b' as u8, 'B' as u8,
537 /*0x31*/ 'n' as u8, 'N' as u8, /*0x32*/ 'm' as u8, 'M' as u8,
540 /*0x33*/ ',' as u8,
541 '<' as u8, /*0x34*/ '.' as u8, '>' as u8, /*0x35*/ '/' as u8, '?' as u8,
543 /*0x37*/ '*' as u8, '*' as u8, /*0x38*/ 0x38, 0x38, // ALT Left
544 /*0x39*/ ' ' as u8, ' ' as u8, /*0x3a*/ 0, 0, // CAPS LOCK
557 /*0x47*/ '7' as u8, 0, /*PAD HONE*/
558 /*0x48*/ '8' as u8, 0, /*PAD UP*/
559 /*0x49*/ '9' as u8, 0, /*PAD PAGEUP*/
560 /*0x4a*/ '-' as u8, 0, /*PAD MINUS*/
561 /*0x4b*/ '4' as u8, 0, /*PAD LEFT*/
562 /*0x4c*/ '5' as u8, 0, /*PAD MID*/
563 /*0x4d*/ '6' as u8, 0, /*PAD RIGHT*/
564 /*0x4e*/ '+' as u8, 0, /*PAD PLUS*/
565 /*0x4f*/ '1' as u8, 0, /*PAD END*/
566 /*0x50*/ '2' as u8, 0, /*PAD DOWN*/
567 /*0x51*/ '3' as u8, 0, /*PAD PAGEDOWN*/
568 /*0x52*/ '0' as u8, 0, /*PAD INS*/
569 /*0x53*/ '.' as u8, 0, /*PAD DOT*/