📄 des.lst
字号:
文件:DES.ASM 盛群编译器版本 2.86 页次1
1 0000 ;====================================================================
2 0000 ; ROM Size , HT82A821R = 2K , last page = 0700H
3 0000 ; HT82A822R = 4K , last page = 0F00H
4 0000 ; HT82A832R = 4K , last page = 0F00H
5 0000 ; If use HT82A821R
6 0000 ; #defined HT82A821R 1
7 0000 ; #defined HT82A822R 0
8 0000 ; If use HT82A822R
9 0000 ; #defined HT82A821R 0
10 0000 ; #defined HT82A822R 1
11 0000 ; If use HT82A832R
12 0000 ; #defined HT82A821R 0
13 0000 ; #defined HT82A822R 1
14 0000 ; #define UseReportID 1
15 0000 ;====================================================================
16 0000 ; Use ReportID , Report ID 1 = Volume HID control
17 0000 ; Report ID 3 = Transform Other Data
18 0000 ;====================================================================
19 0000
20 0000
21 0000
22 0000 ;#define HT82A821R 1
23 0000 ;#define HT82A822R 0
24 0000 #define UseReportID 1
25 0000
26 0000 ;IF HT82A821R
27 0000 ;Descript .Section at 0700h 'code'
28 0000 ;ENDIF
29 0000
30 0000
31 0000 ;IF HT82A822R
32 0000 Descript .Section at 0F00h 'code'
33 0000 ;ENDIF
34 0000
35 0000 #define AUDIO_8K 1
36 0000
37 0000
38 0000 control_read_table:
39 0000 device_desc_table:
40 0000 ;;18 bytes
41 0000 0112 DW 00112H ;descriptor type (device descriptor) , size of descriptor (18 bytes)
42 0001 0110 DW 00110H ;USB spec release (ver 1.1)
43 0002 0000 DW 00000H ;device sub-class , device class
44 0003 0800 DW 00800H ;maximum packet size , device sub-sub-class
45 0004 ;; DW 03F03H ;vendor ID
46 0004 ;; DW 03F48H
47 0004 ;DW 004D9H ;vendor ID = 004D9H
48 0004 ;DW 02832H ;product version ID (Sample Device)
49 0004 ;
50 0004
51 0004 3F93 DW 03F93H ;vendor ID = 06993H
52 0005 3F69 DW 03F69H ;vendor ID = 06993H
53 0006 3F01 DW 03F01H ;productID (0B001H)
54 0007 3FB0 DW 03FB0H ;productID (0B001H)
55 0008
56 0008
57 0008 ;DW 03F8CH ;vendor ID = 00D8CH
58 0008 ;DW 03F0DH ;vendor ID = 0000EH
59 0008 ;DW 03F0EH ;productID (0B001H)
文件:DES.ASM 盛群编译器版本 2.86 页次2
60 0008 ;DW 03F00H ;productID (0B001H)
61 0008
62 0008 0000 DW 00000H ;product version ID
63 0009 ;DW 00201H ;product string index , manufacturer string index
64 0009 0200 DW 00200H ;product string index , manufacturer string index
65 000A 0100 DW 00100H ;number of configurations , serial number string index
66 000B config_desc_table:
67 000B ;;9 bytes
68 000B 0209 DW 00209H ;descriptor type (config descriptor) , size of descriptor
69 000C 00D9 DW 000D9H ;total length of descriptor (D9 H=217 bytes)
70 000D 0104 DW 00104H ;index of this configuration , 4 interface
71 000E 3F00 DW 03F00H ;configuration string index
72 000F 3F80 DW 03F80H ;configuration attributes (bus supply)
73 0010 3FFA DW 03FFAH ;maxpower (500ma)
74 0011 Interface_Descriptor:
75 0011 Interface0_descriptor:
76 0011 standard_audio_control_interface_control:
77 0011 ;;9 bytes
78 0011 0409 DW 00409H ;descriptor type (interface descriptor) , size of descriptor (9 bytes)
79 0012 0000 DW 00000H ;interface alternate setting , interface number (0 base)
80 0013 0100 DW 00100H ;interface class(01H for audio class) , number of endpoint (0 end point)
81 0014 0001 DW 00001H ;interface protocol , interface sub-class (audio control)
82 0015 3F00 DW 03F00H ;x , interface string index
83 0016 class_specific_audio_control_interface_descriptor:
84 0016 ;;10 bytes
85 0016 240A DW 0240AH ;descriptor type (CS_INTERFACE) , size of descriptor (10 bytes)
86 0017 3F01 DW 03F01H ;descriptor subtype (Header)
87 0018 0100 DW 00100H ;audio device class specification release number(1.00)
88 0019 ;modify 2006-08-09
89 0019 0046 DW 00046H ;total number of bytes for the class-specific audiocontrol interface descriptor
90 001A ;---------------------
91 001A 0102 DW 00102H ;streaming interface number belongs to audio control interface , the number of streaming interface
92 001B 3F02 DW 03F02H ;Streaming interface number 2 belongs to this audio control interface. In Interface
93 001C
94 001C da_input_terminal:
95 001C ;;12 bytes
96 001C ;;(ID=1)
97 001C 240C DW 0240CH ;descriptor type(CS_INTERFACE) , size of descriptor
98 001D 0102 DW 00102H ;ID of this terminal(ID=1) , descriptor subtype(INPUT_TERMINAL)
99 001E 0101 DW 00101H ;terminal type(USB streaming type)
100 001F 0200 DW 00200H ;number of channel(two channel) , associate with output terminal
101 0020 0003 DW 00003H ;channel config(Left/Right Front)
102 0021 0000 DW 00000H ;channelname(unused) , terminal name(unused)
103 0022 lineout_terminal:
104 0022 ;;9 bytes
105 0022 ;;(ID=3)
106 0022 2409 DW 02409H ;descriptor type(CS_INTERFACE) , size of descriptor(9 bytes)
107 0023 0303 DW 00303H ;terminal ID(03) , descriptorsubtype(OUTPUT_TERMINAL)
108 0024 0301 DW 00301H ;terminal is speaker
109 0025 0200 DW 00200H ;sourceID(feature unit ID=0D) , associate terminal
110 0026 3F00 DW 03F00H ;index of this descriptor
111 0027 feature_unit_line_out:
112 0027 ;;10 bytes
113 0027 ;;(ID=2)
114 0027 240A DW 0240AH ;descriptor type(CS_INTERFACE) , size of descriptor(10 bytes)
115 0028 0206 DW 00206H ;UnitID , descriptorSubtype(FEATURE_UNIT)
116 0029 0101 DW 00101H ;control size(1) , SourceID(input terminal 01)
117 002A ;---------------------
118 002A ;modify 2006-07-27
119 002A 0300 DW 00300H ;D1(volume)control is enable foe channel 1 , D0(mute) D1(volume) is enable for channel 0
文件:DES.ASM 盛群编译器版本 2.86 页次3
120 002B 0003 DW 00003H ;index of this descriptor , D1(volume)control is enable for channel 2
121 002C ;---------------------
122 002C analog_mic_input_terminal:
123 002C ;;12 bytes
124 002C ;;(ID=5)
125 002C 240C DW 0240CH ;CS_INTERFACE , Size of this descriptor
126 002D 0502 DW 00502H ;ID of this terminal , INPUT_TERMINAL subtype
127 002E 0201 DW 00201H ;Terminal is microphone
128 002F 0100 DW 00100H ;One channel , No Associated
129 0030 0000 DW 00000H ;Mono sets no positions bit
130 0031 0000 DW 00000H ;Unused , Unused
131 0032 ad_output_terminal:
132 0032 ;;9 bytes
133 0032 ;;(ID=7)
134 0032 2409 DW 02409H ;CS_INTERFACE , Size of this descriptor
135 0033 0703 DW 00703H ;ID of this terminal , OUTPUT_TERMINAL subtype
136 0034 0101 DW 00101H ;Terminal is USB streaming
137 0035 0600 DW 00600H ;From Feature Unit(ID=6) , No Associate
138 0036 3F00 DW 03F00H ;Unused
139 0037 feature_unit_record_volume:
140 0037 ;;(ID=6)
141 0037 ;;8 bytes
142 0037 2408 DW 02408H ;CS_INTERFACE , Size of this descriptor
143 0038 0606 DW 00606H ;ID of this feature Unit , FEATURE_UNIT
144 0039 0105 DW 00105H ;One byte Control Array , From analog_mic_input_terminal
145 003A 0003 DW 00003H ;Unused , D0(Mute)D1(Volume) supported
146 003B
147 003B Interface1_descriptor:
148 003B zero_bw:
149 003B ;;9 bytes
150 003B 0409 DW 00409H ;descriptor type(INTERFACE) , sizoe of descriptor
151 003C 0001 DW 00001H ;index of ths setting(alternatesetting = 0) , index of this interface
152 003D 0100 DW 00100H ;interface-class(AUDIO) , number of endpoint(0)
153 003E 0002 DW 00002H ;interface protocol(unused) , InterfaceSubClass(AUDIO_STREAMING)
154 003F 3F00 DW 03F00H ;index string of this descriptor
155 0040 audio_streaming:
156 0040 ;;9 bytes
157 0040 0409 DW 00409H ;descriptor type(INTERFACE) , size of descriptor
158 0041 0101 DW 00101H ;index of the setting(alternatesetting = 1) ,index of this interface
159 0042 0101 DW 00101H ;interface-class(AUDIO) , number of endpoint(1)
160 0043 0002 DW 00002H ;interface protocol(unused) , InterfaceSubClass(AUDIO_STREAMING)
161 0044 3F00 DW 03F00H ;index string of this descriptor
162 0045 class_specific_as_interface_desc:
163 0045 ;;7 bytes
164 0045 2407 DW 02407H ;descriptor type(CS_INTERFACE) , size of descriptor
165 0046 0101 DW 00101H ;terminalLink(Input terminal) , descriptor subtype(AS_GENERAL)
166 0047 3F01 DW 03F01H ;interface delay(1)
167 0048 0001 DW 00001H ;PCM format
168 0049 format_type_descriptor:
169 0049 ;;11 bytes
170 0049 240B DW 0240BH ;descriptor type(CS_INTERFACE) , size of descriptor
171 004A 0102 DW 00102H ;FormatType(FORMAT_TYPE_I) , descriptorSubType(FORMAT_TYPE)
172 004B 0202 DW 00202H ;SubFrameSize(2 byte per slot) , number of channel(2 channels)
173 004C 0110 DW 00110H ;SamFreqType(support 1 type) , BitSolution(16 bits)
174 004D if AUDIO_8K
175 004D 3F40 DW 03F40H ;Sample Frequency(8000 Hz)
176 004E 001F DW 0001FH ;
177 004F else
178 004F DW 03F80H ;Sample Frequency(48000 Hz)
179 004F DW 000BBH ;
文件:DES.ASM 盛群编译器版本 2.86 页次4
180 004F endif
181 004F end_point_descriptor:
182 004F ;;9 bytes
183 004F 0509 DW 00509H ;descriptor type(END_POINT) , size of descriptor
184 0050 0902 DW 00902H ;endpoint attributes(adaptive,isochronous) , endpoint2(out direction)
185 0051 if AUDIO_8K
186 0051 0020 DW 00020H ;maxPacketSize(32 bytes)
187 0052 else
188 0052 DW 000C0H ;maxPacketSize(192 bytes)
189 0052 endif
190 0052 0001 DW 00001H ;Refresh(0) , Interval(1ms)
191 0053 3F00 DW 03F00H ;index string of this descriptor
192 0054 class_specific_endpoint_descriptor:
193 0054 ;;7 bytes
194 0054 2507 DW 02507H ;descriptor type(CS_ENDPOINT) , size of descriptor
195 0055 0001 DW 00001H ;Attributes(no sampling frequency , no pitch , no maxpackets control) , descriptorType(EP_GENERAL)
196 0056 3F00 DW 03F00H ;LockedDelayUnit(unused)
197 0057 0000 DW 00000H ;LockDelay(unused)
198 0058
199 0058 Inetrface2_descriptor:
200 0058 ad_zero_bw:
201 0058 ;;9 bytes
202 0058 0409 DW 00409H ;INTERFACE descriptor , Size of this descriptor
203 0059 0002 DW 00002H ;Index of this setting , Index of this interface
204 005A 0100 DW 00100H ;AUDIO , 0 Endpoint
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -