usbrf.inc
来自「基于HT82K96E的usb鼠标实现源程序」· INC 代码 · 共 27 行
INC
27 行
; for timer
timer0_on equ tmr0c.4
timer1_on equ tmr1c.4
timer0_int equ intc.2
;-----------------------------------------------------------------------------------
interface_no equ 2
endpoint_no equ 3
standard_request_no equ 0dh
class_request_no equ 0ch
report_type_no equ 04h
report_mouse_size equ 8
report_kb_size equ 8
kb_output_size equ 1
entity_length_0 equ 3fh ;kb length
entity_length_1 equ 34h ;mouse length
;-----------------------------------------------------------------------------------
;"fifo_type"
@setup_d equ 7 ;direction
@interface equ 0
setup_type equ 60h ;type
setup_rev equ 1fh ;recipient (just use 2 bits)
wvalueh_typ equ 60h ;d6..5 type: 0-standard, 1-class, 2-vendor
wvalueh_dst equ 1fh ;
;-----------------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?