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