?? dscr.lst
字號:
A51 MACRO ASSEMBLER DSCR 01/31/2007 10:30:01 PAGE 1
MACRO ASSEMBLER A51 V7.07
OBJECT MODULE PLACED IN dscr.OBJ
ASSEMBLER INVOKED BY: d:\install\Keil\C51\BIN\A51.EXE dscr.a51 SET(SMALL) DEBUG 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 rights 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: Control
0001 22 ET_ISO equ 1 ;; Endpoint type: Isochronous
0002 23 ET_BULK equ 2 ;; Endpoint type: Bulk
0003 24 ET_INT equ 3 ;; Endpoint type: Interrupt
25
26 public DeviceDscr, DeviceQualDscr, HighSpeedConfigDscr, FullSpeedConfigDscr, StringDsc
r, 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 length
0091 01 39 db DSCR_DEVICE ;; Decriptor type
0092 0002 40 dw 0002H ;; Specification Version (BCD)
0094 00 41 db 00H ;; Device class
0095 00 42 db 00H ;; Device sub-class
0096 00 43 db 00H ;; Device sub-sub-class
0097 40 44 db 64 ;; Maximum packet size
0098 4705 45 dw 4705H ;; Vendor ID
009A 0210 46 dw 0210H ;; Product ID (Sample Device)
009C 0000 47 dw 0000H ;; Product version ID
009E 01 48 db 1 ;; Manufacturer string index
009F 02 49 db 2 ;; Product string index
00A0 00 50 db 0 ;; Serial number string index
00A1 01 51 db 1 ;; Number of configurations
52
00A2 53 DeviceQualDscr:
00A2 0A 54 db DSCR_DEVQUAL_LEN ;; Descriptor length
00A3 06 55 db DSCR_DEVQUAL ;; Decriptor type
00A4 0002 56 dw 0002H ;; Specification Version (BCD)
00A6 00 57 db 00H ;; Device class
A51 MACRO ASSEMBLER DSCR 01/31/2007 10:30:01 PAGE 2
00A7 00 58 db 00H ;; Device sub-class
00A8 00 59 db 00H ;; Device sub-sub-class
00A9 40 60 db 64 ;; Maximum packet size
00AA 01 61 db 1 ;; Number of configurations
00AB 00 62 db 0 ;; Reserved
63
00AC 64 HighSpeedConfigDscr:
00AC 09 65 db DSCR_CONFIG_LEN ;; Descriptor length
00AD 02 66 db DSCR_CONFIG ;; Descriptor type
00AE 20 67 db (HighSpeedConfigDscrEnd-HighSpeedConfigDscr) mod 256 ;; Total Length (LSB)
00AF 00 68 db (HighSpeedConfigDscrEnd-HighSpeedConfigDscr) / 256 ;; Total Length (MSB)
00B0 01 69 db 1 ;; Number of interfaces
00B1 01 70 db 1 ;; Configuration number
00B2 00 71 db 0 ;; Configuration string
00B3 A0 72 db 10100000b ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
00B4 32 73 db 50 ;; Power requirement (div 2 ma)
74
75 ;; Interface Descriptor
00B5 09 76 db DSCR_INTRFC_LEN ;; Descriptor length
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 setting
00B9 02 80 db 2 ;; Number of end points
00BA FF 81 db 0ffH ;; Interface class
00BB 00 82 db 00H ;; Interface sub class
00BC 00 83 db 00H ;; Interface sub sub class
00BD 00 84 db 0 ;; Interface descriptor string index
85
86 ;; Endpoint Descriptor
00BE 07 87 db DSCR_ENDPNT_LEN ;; Descriptor length
00BF 05 88 db DSCR_ENDPNT ;; Descriptor type
00C0 02 89 db 02H ;; Endpoint number, and direction
00C1 02 90 db ET_BULK ;; Endpoint type
00C2 00 91 db 00H ;; Maximun packet size (LSB)
00C3 02 92 db 02H ;; Max packect size (MSB)
00C4 00 93 db 00H ;; Polling interval
94
95 ;; Endpoint Descriptor
00C5 07 96 db DSCR_ENDPNT_LEN ;; Descriptor length
00C6 05 97 db DSCR_ENDPNT ;; Descriptor type
00C7 86 98 db 86H ;; Endpoint number, and direction
00C8 02 99 db ET_BULK ;; Endpoint type
00C9 00 100 db 00H ;; Maximun packet size (LSB)
00CA 02 101 db 02H ;; Max packect size (MSB)
00CB 00 102 db 00H ;; Polling interval
103
00CC 104 HighSpeedConfigDscrEnd:
105
00CC 106 FullSpeedConfigDscr:
00CC 09 107 db DSCR_CONFIG_LEN ;; Descriptor length
00CD 02 108 db DSCR_CONFIG ;; Descriptor type
00CE 20 109 db (FullSpeedConfigDscrEnd-FullSpeedConfigDscr) mod 256 ;; Total Length (LSB)
00CF 00 110 db (FullSpeedConfigDscrEnd-FullSpeedConfigDscr) / 256 ;; Total Length (MSB)
00D0 01 111 db 1 ;; Number of interfaces
00D1 01 112 db 1 ;; Configuration number
00D2 00 113 db 0 ;; Configuration string
00D3 A0 114 db 10100000b ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
00D4 32 115 db 50 ;; Power requirement (div 2 ma)
116
117 ;; Interface Descriptor
00D5 09 118 db DSCR_INTRFC_LEN ;; Descriptor length
00D6 04 119 db DSCR_INTRFC ;; Descriptor type
00D7 00 120 db 0 ;; Zero-based index of this interface
00D8 00 121 db 0 ;; Alternate setting
00D9 02 122 db 2 ;; Number of end points
00DA FF 123 db 0ffH ;; Interface class
A51 MACRO ASSEMBLER DSCR 01/31/2007 10:30:01 PAGE 3
00DB 00 124 db 00H ;; Interface sub class
00DC 00 125 db 00H ;; Interface sub sub class
00DD 00 126 db 0 ;; Interface descriptor string index
127
128 ;; Endpoint Descriptor
00DE 07 129 db DSCR_ENDPNT_LEN ;; Descriptor length
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -