📄 dscr.lst
字号:
A51 MACRO ASSEMBLER DSCR 10/15/2007 20:16:02 PAGE 1
MACRO ASSEMBLER A51 V7.07
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
1 ;;-----------------------------------------------------------------------------
2 ;; File: dscr.a51
3 ;; Contents: This file contains descriptor data tables.
4 ;;
5 ;; $Archive: /USB/Examples/Fx2lp/bulkloop/dscr.a51 $
6 ;; $Date: 9/01/03 8:51p $
7 ;; $Revision: 3 $
8 ;;
9 ;;
10 ;;-----------------------------------------------------------------------------
11 ;; Copyright 2003, Cypress Semiconductor Corporation
12 ;;-----------------------------------------------------------------------------;;----------
-------------------------------------------------------------------
13 ;; 描述符类型:设备,配置,字符串,接口,端点,
0001 14 DSCR_DEVICE equ 1 ;; Descriptor type: Device
0002 15 DSCR_CONFIG equ 2 ;; Descriptor type: Configuration
0003 16 DSCR_STRING equ 3 ;; Descriptor type: String
0004 17 DSCR_INTRFC equ 4 ;; Descriptor type: Interface
0005 18 DSCR_ENDPNT equ 5 ;; Descriptor type: Endpoint
0006 19 DSCR_DEVQUAL equ 6 ;; Descriptor type: Device Qualifier
20
0012 21 DSCR_DEVICE_LEN equ 18
0009 22 DSCR_CONFIG_LEN equ 9
0009 23 DSCR_INTRFC_LEN equ 9
0007 24 DSCR_ENDPNT_LEN equ 7
000A 25 DSCR_DEVQUAL_LEN equ 10
26 ;; 端点类型:控制,同步,批量,中断。
0000 27 ET_CONTROL equ 0 ;; Endpoint type: Control
0001 28 ET_ISO equ 1 ;; Endpoint type: Isochronous
0002 29 ET_BULK equ 2 ;; Endpoint type: Bulk
0003 30 ET_INT equ 3 ;; Endpoint type: Interrupt
31
32 public DeviceDscr, DeviceQualDscr, HighSpeedConfigDscr, FullSpeedConfigDscr, StringDsc
r, UserDscr
33
34 DSCR SEGMENT CODE PAGE
35
36 ;;-----------------------------------------------------------------------------
37 ;; Global Variables
38 ;; 全局变量
39 ;;-----------------------------------------------------------------------------
---- 40 rseg DSCR ;; locate the descriptor table in on-part memory.
41 ;; 将描述符表置于片上存储器中.
0000 42 DeviceDscr: ;; 设备描述符..一台设备只能有一个设备描述符
.
0000 12 43 db DSCR_DEVICE_LEN ;; Descriptor length (描述符长度.)
0001 01 44 db DSCR_DEVICE ;; Decriptor type (描述符类型.)
0002 0002 45 dw 0002H ;; Specification Version (BCD) (协议版本(BCD).
0004 00 46 db 00H ;; Device class (设备类.)
0005 00 47 db 00H ;; Device sub-class (设备子类.)
0006 00 48 db 00H ;; Device sub-sub-class (设备子-子类.)
0007 40 49 db 64 ;; Maximum packet size (最大包长度.)
0008 B404 50 dw 0B404H ;; Vendor ID (制造商ID(V ID).)
000A 0410 51 dw 0410H ;; Product ID (Sample Device) (产品ID(PID:Sample Device).)
000C 0000 52 dw 0000H ;; Product version ID (产品版本ID.)
000E 01 53 db 1 ;; Manufacturer string index (生产厂商字符串索引.)
000F 02 54 db 2 ;; Product string index (产品字符串索引.)
0010 00 55 db 0 ;; Serial number string index (序列号字符串索引.)
A51 MACRO ASSEMBLER DSCR 10/15/2007 20:16:02 PAGE 2
0011 01 56 db 1 ;; Number of configurations (配置数.)
57
0012 58 DeviceQualDscr: ;; (设备限定描述符...对设备的限定特性.)
0012 0A 59 db DSCR_DEVQUAL_LEN ;; Descriptor length (描述符长度.)
0013 06 60 db DSCR_DEVQUAL ;; Decriptor type (描述符类型.)
0014 0002 61 dw 0002H ;; Specification Version (BCD) (协议版本(BCD).)
0016 00 62 db 00H ;; Device class (设备类.)
0017 00 63 db 00H ;; Device sub-class (设备子类.)
0018 00 64 db 00H ;; Device sub-sub-class (设备子-子类.)
0019 40 65 db 64 ;; Maximum packet size (最大包长度.)
001A 01 66 db 1 ;; Number of configurations (配置数.)
001B 00 67 db 0 ;; Reserved (保留.)
68
001C 69 HighSpeedConfigDscr: ;; 高速配置描述符.
001C 09 70 db DSCR_CONFIG_LEN ;; Descriptor length
001D 02 71 db DSCR_CONFIG ;; Descriptor type
001E 2E 72 db (HighSpeedConfigDscrEnd-HighSpeedConfigDscr) mod 256 ;; Total Length (LSB)
73 ;; 总长度(
LSB)
001F 00 74 db (HighSpeedConfigDscrEnd-HighSpeedConfigDscr) / 256 ;; Total Length (MSB)
75 ;; 总长度(MSB)
0020 01 76 db 1 ;; Number of interfaces (接口数)
0021 01 77 db 1 ;; Configuration number (配置数)
0022 00 78 db 0 ;; Configuration string (配置字符串)
0023 80 79 db 10000000b ;; Attributes (b7 - buspwr, b6 - selfpwr, b5 - rwu)
80 ;; 属性(B7为BUSPWR,B6为SELFPWR,B5为RWU)
0024 32 81 db 50 ;; Power requirement (div 2 ma) (功率需求)
82
83 ;; Interface Descriptor 接口描述符
0025 09 84 db DSCR_INTRFC_LEN ;; Descriptor length (长度)
0026 04 85 db DSCR_INTRFC ;; Descriptor type (类型)
0027 00 86 db 0 ;; Zero-based index of this interface (该接口基于0的索引)
0028 00 87 db 0 ;; Alternate setting (交替设置)
0029 04 88 db 4 ;; Number of end points (端点数)
002A FF 89 db 0ffH ;; Interface class (接口子类)
002B 00 90 db 00H ;; Interface sub class (接口子-子类)
002C 00 91 db 00H ;; Interface sub sub class (接口描述符字符串索引)
002D 00 92 db 0 ;; Interface descriptor string index
93
94 ;; Endpoint Descriptor 端点描述符
002E 07 95 db DSCR_ENDPNT_LEN ;; Descriptor length (长度)
002F 05 96 db DSCR_ENDPNT ;; Descriptor type (类型)
0030 02 97 db 02H ;; Endpoint number, and direction (端点数,方向)
0031 02 98 db ET_BULK ;; Endpoint type (端点类型)
0032 00 99 db 00H ;; Maximun packet size (LSB) (最大信息LSB)
0033 02 100 db 02H ;; Max packect size (MSB) (最大信息包MSB)
0034 00 101 db 00H ;; Polling interval (选取间隔)
102
103 ;; Endpoint Descriptor 端点描述符
0035 07 104 db DSCR_ENDPNT_LEN ;; Descriptor length
0036 05 105 db DSCR_ENDPNT ;; Descriptor type
0037 04 106 db 04H ;; Endpoint number, and direction
0038 02 107 db ET_BULK ;; Endpoint type
0039 00 108 db 00H ;; Maximun packet size (LSB)
003A 02 109 db 02H ;; Max packect size (MSB)
003B 00 110 db 00H ;; Polling interval
111
112 ;; Endpoint Descriptor 端点描述符
003C 07 113 db DSCR_ENDPNT_LEN ;; Descriptor length
003D 05 114 db DSCR_ENDPNT ;; Descriptor type
003E 86 115 db 86H ;; Endpoint number, and direction
003F 02 116 db ET_BULK ;; Endpoint type
0040 00 117 db 00H ;; Maximun packet size (LSB)
0041 02 118 db 02H ;; Max packect size (MSB)
0042 00 119 db 00H ;; Polling interval
A51 MACRO ASSEMBLER DSCR 10/15/2007 20:16:02 PAGE 3
120
121 ;; Endpoint Descriptor 端点描述符
0043 07 122 db DSCR_ENDPNT_LEN ;; Descriptor length
0044 05 123 db DSCR_ENDPNT ;; Descriptor type
0045 88 124 db 88H ;; Endpoint number, and direction
0046 02 125 db ET_BULK ;; Endpoint type
0047 00 126 db 00H ;; Maximun packet size (LSB)
0048 02 127 db 02H ;; Max packect size (MSB)
0049 00 128 db 00H ;; Polling interval
129
004A 130 HighSpeedConfigDscrEnd: ;; 高速配置描述符结束.
131
004A 132 FullSpeedConfigDscr: ;; 全速配置描述符.
004A 09 133 db DSCR_CONFIG_LEN ;; Descriptor length (描述符长度)
004B 02 134 db DSCR_CONFIG ;; Descriptor type (描述符类型)
004C 2E 135 db (FullSpeedConfigDscrEnd-FullSpeedConfigDscr) mod 256 ;; Total Length (LSB)
136 ;; 总长度(L
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -