📄 dscr.lst
字号:
A51 MACRO ASSEMBLER DSCR 01/09/2002 17:28:31 PAGE 1
MACRO ASSEMBLER A51 V6.14
OBJECT MODULE PLACED IN .\dscr.OBJ
ASSEMBLER INVOKED BY: C:\KEIL\C51\BIN\A51.EXE .\dscr.a51 SET(SMALL) DEBUG EP
LOC OBJ LINE SOURCE
0001 1 DSCR_DEVICE equ 1 ;; Descriptor type: Device
0002 2 DSCR_CONFIG equ 2 ;; Descriptor type: Configuration
0003 3 DSCR_STRING equ 3 ;; Descriptor type: String
0004 4 DSCR_INTRFC equ 4 ;; Descriptor type: Interface
0005 5 DSCR_ENDPNT equ 5 ;; Descriptor type: Endpoint
6
0000 7 ET_CONTROL equ 0 ;; Endpoint type: Control
0001 8 ET_ISO equ 1 ;; Endpoint type: Isochronous
0002 9 ET_BULK equ 2 ;; Endpoint type: Bulk
0003 10 ET_INT equ 3 ;; Endpoint type: Interrupt
11
12 public DeviceDscr, ConfigDscr, StringDscr, UserDscr, ReportDscr, ReportDscrEnd
13
14 DSCR SEGMENT CODE
15
16 ;;-----------------------------------------------------------------------------
17 ;; Global Variables
18 ;;-----------------------------------------------------------------------------
---- 19 rseg DSCR ;; locate the descriptor table in on-part memory.
20
0000 12 21 DeviceDscr: db deviceDscrEnd-DeviceDscr ;; Descriptor length
0001 01 22 db DSCR_DEVICE ;; Decriptor type
0002 1001 23 db 10H, 01H ;; Specification Version (BCD)
0004 00 24 db 00H ;; Device class
0005 00 25 db 00H ;; Device sub-class
0006 00 26 db 00H ;; Device sub-sub-class
0007 40 27 db 64 ;; Maximum packet size
0008 3412 28 db 34H, 12H ;; Vendor ID ;;************************
000A 7856 29 db 78H, 56H ;; Product ID ;;************************
000C 0001 30 dw 0001H ;; Product version ID
000E 01 31 db 1 ;; Manufacturer string index
000F 02 32 db 2 ;; Product string index
0010 00 33 db 0 ;; Serial number string index
0011 01 34 db 1 ;; Numder of configurations
0012 35 deviceDscrEnd:
36
0012 09 37 ConfigDscr: db ConfigDscrEnd-ConfigDscr ;; Descriptor length
0013 02 38 db DSCR_CONFIG ;; Descriptor type
0014 29 39 db EPAllDscrEnd-ConfigDscr ;; Configuration + End Points length (LSB)
0015 00 40 db 00 ;; Configuration length (MSB)
0016 01 41 db 1 ;; Number of interfaces
0017 01 42 db 1 ;; Interface number
0018 00 43 db 0 ;; Configuration string
0019 A0 44 db 10100000b ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
001A 19 45 db 25 ;; Power requirement (div 2 ma)
001B 46 ConfigDscrEnd:
47
001B 48 IntrfcDscr:
001B 09 49 db IntrfcDscrEnd-IntrfcDscr ;; Descriptor length
001C 04 50 db DSCR_INTRFC ;; Descriptor type
001D 00 51 db 0 ;; Zero-based index of this interface
001E 00 52 db 0 ;; Alternate setting
001F 02 53 db 2 ;; Number of end points
0020 03 54 db 03H ;; Interface class
0021 00 55 db 00H ;; Interface sub class
0022 00 56 db 00H ;; Interface sub sub class
0023 00 57 db 0 ;; Interface descriptor string index
0024 58 IntrfcDscrEnd:
A51 MACRO ASSEMBLER DSCR 01/09/2002 17:28:31 PAGE 2
59
0024 60 HIDDscr:
0024 09 61 db 9 ;; Length
0025 21 62 db 21H ;; Type
0026 1001 63 db 10H, 01H ;; HID class spec.# compliance (0110 = 1.1)
0028 00 64 db 0 ;; Country localization (0=none)
0029 01 65 db 1 ;; Number of descriptors to follow (excluding endpo
int)
002A 22 66 db 22H ;; Descriptor type to follow (report)
002B 3400 67 db ReportDscrEnd - ReportDscr, 0 ;; Report descriptor length
68
002D 69 HIDDscrEnd:
70
002D 71 EpO2Dscr:
002D 07 72 db EpO2DscrEnd-EpO2Dscr ;; Descriptor length
002E 05 73 db DSCR_ENDPNT ;; Descriptor type
002F 02 74 db 00000010b ;; Endpoint number, and direction
0030 03 75 db ET_INT ;; Endpoint type
0031 40 76 db 40H ;; Maximun packet size (LSB)
0032 00 77 db 00H ;; Max packect size (MSB)
0033 64 78 db 100 ;; Polling interval
0034 79 EpO2DscrEnd:
80
0034 81 EpI2Dscr:
0034 07 82 db EpI2DscrEnd-EpI2Dscr ;; Descriptor length
0035 05 83 db DSCR_ENDPNT ;; Descriptor type
0036 82 84 db 10000010b ;; Endpoint number, and direction
0037 03 85 db ET_INT ;; Endpoint type
0038 40 86 db 40H ;; Maximun packet size (LSB)
0039 00 87 db 00H ;; Max packect size (MSB)
003A 64 88 db 100 ;; Polling interval
003B 89 EpI2DscrEnd:
90
003B 91 EpAllDscrEnd:
92
003B 93 ReportDscr:
003B 06A0FF 94 db 06H, 0A0H, 0FFH ;; Usage Page (FFA0H = vendor defined)
003E 0901 95 db 09H, 01H ;; Usage (Vendor defined)
0040 A101 96 db 0A1H, 01H ;; Collection (Application)
0042 0902 97 db 09H, 02H ;; Usage (vendor defined)
0044 A100 98 db 0A1H, 00H ;; Collection (Physical)
0046 06A1FF 99 db 06H, 0A1H, 0FFH ;; Usage Page (vendor defined)
100
101 ;; The input report
0049 0903 102 db 09H, 03H ;; Usage (vendor defined)
004B 0904 103 db 09H, 04H ;; Usage (vendor defined)
004D 1580 104 db 15H, 80H ;; Logical minimum (80H = -128)
004F 257F 105 db 25H, 7FH ;; Logical maximum (7FH = 127)
0051 3500 106 db 35H, 00H ;; Physical minimum (0)
0053 45FF 107 db 45H, 0FFH ;; Physical maximum (255)
0055 7508 108 db 75H, 08H ;; Report size (8 bits)
0057 9508 109 db 95H, 08H ;; Report count (2 fields) ;;***************
*
0059 8102 110 db 81H, 02H ;; Input (Data, Variable, Absolute)
111 ;; The output report
005B 0905 112 db 09H, 05H ;; Usage (vendor defined)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -