📄 dscr.lst
字号:
A51 MACRO ASSEMBLER DSCR 08/04/2008 21:19:39 PAGE 1
MACRO ASSEMBLER A51 V7.10
OBJECT MODULE PLACED IN DSCR.OBJ
ASSEMBLER INVOKED BY: d:\Keil\C51\BIN\A51.EXE DSCR.A51 NOMOD51 SET(SMALL) DEBUG
PAGEWIDTH(80) EP
LOC OBJ LINE SOURCE
1 ;;-------------------------------------------------
----------------------------
2 ;; File: dscr.a51
3 ;; Contents: This file contains descriptor data
tables.
4 ;;
5 ;; Copyright (c) 1997 AnchorChips, Inc. All right
s reserved
6 ;;-------------------------------------------------
----------------------------
7
0001 8 DSCR_DEVICE equ 1 ;; Descriptor type:
Device
0002 9 DSCR_CONFIG equ 2 ;; Descriptor type:
Configuration
0003 10 DSCR_STRING equ 3 ;; Descriptor type:
String
0004 11 DSCR_INTRFC equ 4 ;; Descriptor type:
Interface
0005 12 DSCR_ENDPNT equ 5 ;; Descriptor type:
Endpoint
0006 13 DSCR_DEVQUAL equ 6 ;; Descriptor type:
Device Qualifier
14
0012 15 DSCR_DEVICE_LEN equ 18
0009 16 DSCR_CONFIG_LEN equ 9
0009 17 DSCR_INTRFC_LEN equ 9
0007 18 DSCR_ENDPNT_LEN equ 7
000A 19 DSCR_DEVQUAL_LEN equ 10
20
0000 21 ET_CONTROL equ 0 ;; Endpoint type: C
ontrol
0001 22 ET_ISO equ 1 ;; Endpoint type: I
sochronous
0002 23 ET_BULK equ 2 ;; Endpoint type: B
ulk
0003 24 ET_INT equ 3 ;; Endpoint type: I
nterrupt
25
26 public DeviceDscr, DeviceQualDscr, HighSpeedCo
nfigDscr, FullSpeedConfigDscr, StringDscr, UserDscr
27
28 ;; TGE DSCR SEGMENT CODE
29
30 ;;-------------------------------------------------
----------------------------
31 ;; Global Variables
32 ;;-------------------------------------------------
----------------------------
33
34 ;; TGE rseg DSCR ;; locate the
descriptor table in on-part memory.
35
---- 36 cseg at 90H ;; TODO: this
needs to be changed before release
0090 37 DeviceDscr:
0090 12 38 db DSCR_DEVICE_LEN ;; Descriptor lengt
A51 MACRO ASSEMBLER DSCR 08/04/2008 21:19:39 PAGE 2
h
0091 01 39 db DSCR_DEVICE ;; Decriptor type
0092 0002 40 dw 0002H ;; Specification Ve
rsion (BCD)
0094 00 41 db 00H ;; Device class
0095 00 42 db 00H ;; Device sub-class
0096 00 43 db 00H ;; Device sub-sub-c
lass
0097 40 44 db 64 ;; Maximum packet s
ize
0098 1983 45 dw 1983H;4705H ;; Vendor ID
009A 1983 46 dw 1983H;0210H ;; Product ID (Sample D
evice)
009C 0000 47 dw 0000H ;; Product version
ID
009E 01 48 db 1 ;; Manufacturer str
ing index
009F 02 49 db 2 ;; Product string i
ndex
00A0 00 50 db 0 ;; Serial number st
ring index
00A1 01 51 db 1 ;; Number of config
urations
52
00A2 53 DeviceQualDscr:
00A2 0A 54 db DSCR_DEVQUAL_LEN ;; Descriptor lengt
h
00A3 06 55 db DSCR_DEVQUAL ;; Decriptor type
00A4 0002 56 dw 0002H ;; Specification Ve
rsion (BCD)
00A6 00 57 db 00H ;; Device class
00A7 00 58 db 00H ;; Device sub-class
00A8 00 59 db 00H ;; Device sub-sub-c
lass
00A9 40 60 db 64 ;; Maximum packet s
ize
00AA 01 61 db 1 ;; Number of config
urations
00AB 00 62 db 0 ;; Reserved
63
00AC 64 HighSpeedConfigDscr:
00AC 09 65 db DSCR_CONFIG_LEN ;; Descriptor lengt
h
00AD 02 66 db DSCR_CONFIG ;; Descriptor type
00AE 19 67 db (HighSpeedConfigDscrEnd-HighSpeedConfigD
scr) mod 256 ;; Total Length (LSB)
00AF 00 68 db (HighSpeedConfigDscrEnd-HighSpeedConfigD
scr) / 256 ;; Total Length (MSB)
00B0 01 69 db 1 ;; Number of interf
aces
00B1 01 70 db 1 ;; Configuration nu
mber
00B2 00 71 db 0 ;; Configuration st
ring
00B3 A0 72 db 10100000b ;; Attributes (b7 -
buspwr, b6 - selfpwr, b5 - rwu)
00B4 32 73 db 50 ;; Power requiremen
t (div 2 ma)
74
75 ;; Interface Descriptor
00B5 09 76 db DSCR_INTRFC_LEN ;; Descriptor lengt
h
00B6 04 77 db DSCR_INTRFC ;; Descriptor type
00B7 00 78 db 0 ;; Zero-based index
of this interface
00B8 00 79 db 0 ;; Alternate settin
A51 MACRO ASSEMBLER DSCR 08/04/2008 21:19:39 PAGE 3
g
00B9 01 80 db 1 ;; Number of end po
ints
00BA FF 81 db 0ffH ;; Interface class
00BB 00 82 db 00H ;; Interface sub cl
ass
00BC 00 83 db 00H ;; Interface sub su
b class
00BD 00 84 db 0 ;; Interface descri
ptor string index
85
86 ;; Endpoint Descriptor
00BE 07 87 db DSCR_ENDPNT_LEN ;; Descriptor lengt
h
00BF 05 88 db DSCR_ENDPNT ;; Descriptor type
00C0 82 89 db 82H ;; Endpoint number,
and direction
00C1 02 90 db ET_BULK ;; Endpoint type
00C2 00 91 db 00H ;; Maximun packet s
ize (LSB)
00C3 02 92 db 02H ;; Max packect size
(MSB)
00C4 00 93 db 00H ;; Polling interval
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
00C5 122 HighSpeedConfigDscrEnd:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -