Lines Matching refs:u8
4 pub const NUM_SCAN_CODES: u8 = 0x80;
6 pub const TYPE1_KEYCODE_MAP_TABLE_COLS: u8 = 2;
9 pub const TYPE1_KEYCODE_FLAG_BREAK: u8 = 0x80; // 用于判断按键是否被按下
12 #[repr(u8)]
42 pub fn parse(&mut self, scancode: u8) -> TypeOneFSMState { in parse()
54 PauseBreak(u8),
60 PrtscPress(u8),
61 PrtscRelease(u8),
66 fn parse(&self, scancode: u8, scancode_status: &mut ScanCodeStatus) -> TypeOneFSMState { in parse() argument
89 fn handle_start(&self, scancode: u8, scancode_status: &mut ScanCodeStatus) -> TypeOneFSMState { in handle_start() argument
108 scancode: u8, in handle_pause_break() argument
111 static PAUSE_BREAK_SCAN_CODE: [u8; 6] = [0xe1, 0x1d, 0x45, 0xe1, 0x9d, 0xc5]; in handle_pause_break()
128 fn handle_func0(&self, scancode: u8, scancode_status: &mut ScanCodeStatus) -> TypeOneFSMState { in handle_func0() argument
278 fn handle_type3(&self, scancode: u8, scancode_status: &mut ScanCodeStatus) -> TypeOneFSMState { in handle_type3() argument
353 fn to_ctrl(ch: u8, shift: bool) -> u8 { in to_ctrl() argument
369 fn emit(ch: u8) { in emit() argument
377 scancode: u8, in handle_prtsc_press() argument
380 static PRTSC_SCAN_CODE: [u8; 4] = [0xe0, 0x2a, 0xe0, 0x37]; in handle_prtsc_press()
402 scancode: u8, in handle_prtsc_release() argument
405 static PRTSC_SCAN_CODE: [u8; 4] = [0xe0, 0xb7, 0xe0, 0xaa]; in handle_prtsc_release()
491 const TYPE1_KEY_CODE_MAPTABLE: [u8; 256] = [