⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 des.lst

📁 Holtek audio decoder , Dongle 参考范例
💻 LST
📖 第 1 页 / 共 2 页
字号:
 194  005B              	    ;;9 bytes
 195  005B  0409        	    	DW	00409H	;INTERFACE , Size of this descriptor
 196  005C  0102        	    	DW	00102H	;index of this setting , index of this interface
 197  005D  0101        	    	DW	00101H	;AUDIO , 1 endpoint
 198  005E  0002        	    	DW	00002H	;Unused , AUDIO_STREAMING
 199  005F  3F00        	    	DW	03F00H	;null string
 200  0060              	    ad_class_specific_audio_streaming_interface_descriptor:
 201  0060              	    ;;7 bytes
 202  0060  2407        	    	DW	02407H	;CS_INTERFACE , Size of this descriptor
 203  0061  0701        	    	DW	00701H	;Unit ID of terminal(Output terminal ID) , AS_GENERAL
 204  0062  3F01        	    	DW	03F01H	;Interface delay
 205  0063  0001        	    	DW	00001H	;PCM format
 206  0064              	    ad_typeI_format_type:
 207  0064              	    ;;11 bytes
 208  0064  240B        	    	DW	0240BH	;CS_INTERFACE , Size of this descriptor
 209  0065  0102        	    	DW	00102H	;FORMAT_TYPE_I , FORMAT_TYPE
 210  0066  0201        	    	DW	00201H	;two bytes per slot , one channel
 211  0067  0110        	    	DW	00110H	;1 frequency , 16 bits
 212  0068  3F40        	    	DW	03F40H	;8000hZ
 213  0069  001F        	    	DW	0001FH	;
 214  006A              	    ad_standard_endpoint_descriptor:
 215  006A              	    ;;9 bytes	
 216  006A  0509        	    	DW	00509H	;ENFPOINT descriptor , Size of this descriptor
 217  006B  0183        	    	DW	00183H	;(bmAttributes) Isochronous , asynchronous,not share , IN endpoint 3
 218  006C  0010        		DW	00010H	;2bytes*8sample*1ch=16 byte/frame
 219  006D  0001        		DW	00001H	;Unused , 1 packet every frame(must be set to 1)
 220  006E  3F00        		DW	03F00H	;Unused
 221  006F              	    ad_class_specific_isochronous_audio_data_endpoint_descriptor:
 222  006F              	    ;;7 bytes
 223  006F  2507        	    	DW	02507H	;CS_ENDPOINT , Size of this descriptor
 224  0070  0001        	    	DW	00001H	;no Sampling frequency control , no pitch control , no packet padding,EP_GENERAL
 225  0071  3F00        	    	DW	03F00H	;Unused
 226  0072  0000        	    	DW	00000H	;Unused
 227  0073              
 228  0073              	    Interface3_descriptor:
 229  0073              	    HID_class:
 230  0073  0409        	    	DW	00409H	;INTERFACE descriptor , Size of this descriptor
 231  0074  0003        	    	DW	00003H	;Index of this string , index of this interface
 232  0075  0301        	    	DW	00301H	;HID , 1 endpoint
 233  0076  0000        	    	DW	00000H	;Unused , Non-Boot Device
 234  0077  3F00        	    	DW	03F00H	;null string
 235  0078              	    HID_Desc:
 236  0078  2109        	    	DW	02109H	;HID , Size of this descriptor
 237  0079  0110        	    	DW	00110H	;HID spec rev #1.10
 238  007A  0100        	    	DW	00100H	;bNumDescriptor , bCountryCode
 239  007B  3F22        	    	DW	03F22H	;Report Descriptor
"File: DES.ASM       Holtek Cross-Assembler  Version 2.86      Page 5

 240  007C              	    	;====================================================================
 241  007C              	    	;	Use ReportID , Report ID 1 = Volume HID control
 242  007C              	    	;		       Report ID 3 = Transform Other Data
 243  007C              	    	;====================================================================
 244  007C              	    	IF	UseReportID
 245  007C  0043        	    	DW	00043H	;67 bytes
 246  007D              		ELSE
 247  007D              		DW	0001FH	;31 bytes
 248  007D              		ENDIF
 249  007D              
 250  007D              	    HID_end_point_descriptor:
 251  007D  0507        	    	DW	00507H	;Endpoint descriptor , Length of this descriptor
 252  007E  0381        	    	DW	00381H	;Interrupt , Endpoint 1 In direction
 253  007F  0008        	    	DW	00008H	;wMaxPacketSize = 8 Bytes
 254  0080  3F30        	    	DW	03F30H	;48ms Interval
 255  0081              	end_config_desc_table:
 256  0081              
 257  0081              	hid_report_desc_table:
 258  0081  0C05        		DW	00C05H		;//Usage Page(Consumer)
 259  0082  0109        		DW	00109H		;//Usage Page(Consumer Control)
 260  0083  01A1        		DW	001A1H		;//Collection(Application)
 261  0084              
 262  0084              		IF UseReportID
 263  0084  0185        		DW	00185H		;//Report_ID(01)
 264  0085              		ENDIF
 265  0085              
 266  0085  0015        		DW	00015H		;//Logic Minimum(0)
 267  0086  0125        		DW	00125H		;//Logic Maximum(1)
 268  0087  3F09        		DW	03F09H		;//Usage(Volume Increment)
 269  0088  3FE9        		DW	03FE9H		
 270  0089  3F09        		DW	03F09H		;//Usage(Volume Decrement)
 271  008A  3FEA        		DW	03FEAH		
 272  008B  0175        		DW	00175H		;//Report Size(1) : DataLength(1)bit
 273  008C  0295        		DW	00295H		;//Report Count(2): Number of Data(INC,DEC)
 274  008D  2A81        		DW	02A81H		;//Input(Data,Variable,Absolute,No_Wrap,No_Preferred)
 275  008E  3F09        		DW	03F09H		;//Usage(Mute)
 276  008F  3FE2        		DW	03FE2H		
 277  0090  0195        		DW	00195H		;//Report Count(1)
 278  0091  2E81        		DW	02E81H		;//Input(Data,Variable,Relative,No_Wrap,No_preferred)
 279  0092  0595        		DW	00595H		;//Report Count(5)
 280  0093              
 281  0093              		;;Add By Ansonku . (add call playmedia)
 282  0093              		;;DW	
 283  0093              
 284  0093  0181        		DW	00181H		;//Input(Constant)
 285  0094  3FC0        		DW	03FC0H		;//End Collection
 286  0095              		
 287  0095              ;====================================================================
 288  0095              ;	Use ReportID , Report ID 1 = Volume HID control
 289  0095              ;		       Report ID 3 = Transform Other Data
 290  0095              ;====================================================================		
 291  0095              		IF UseReportID
 292  0095              		;;vender defined
 293  0095  3F06        		DW	03F06H		;//Usage Page(Global)
 294  0096  3F00        		DW	03F00H
 295  0097  3FFF        		DW	03FFFH		;//Usage Page
 296  0098              
 297  0098              
 298  0098              
 299  0098  3F09        		DW	03F09H		;//Usage(Local 1 bytes)
"File: DES.ASM       Holtek Cross-Assembler  Version 2.86      Page 6

 300  0099  3FA5        		DW	03FA5H
 301  009A  01A1        		DW	001A1H		;//collection(Main)
 302  009B  0385        		DW	00385H		;//Report_ID(03)
 303  009C              		;input report
 304  009C  3F19        		DW	03F19H
 305  009D  3FA6        		DW	03FA6H
 306  009E  3F29        		DW	03F29H		;//Usage(Local)
 307  009F  3FAC        		DW	03FACH
 308  00A0  3F15        		DW	03F15H		;//Global Logical Minimum
 309  00A1  3F80        		DW	03F80H
 310  00A2  3F25        		DW	03F25H		;//Global Logical Maximum
 311  00A3  3F7F        		DW	03F7FH		
 312  00A4  0875        		DW	00875H		;//Global Report Size 8 bits
 313  00A5  0795        		DW	00795H		;//Global Report Count 7 (field)
 314  00A6  0281        		DW	00281H		;//Main Input (Data,Variable,Absolute)
 315  00A7              		;output
 316  00A7  3F19        		DW	03F19H
 317  00A8  3FB0        		DW	03FB0H
 318  00A9  3F29        		DW	03F29H
 319  00AA  3FB6        		DW	03FB6H
 320  00AB  0875        		DW	00875H		;//Report size (8 bits)
 321  00AC  0795        		DW	00795H		;//Report Count(7)
 322  00AD  0291        		DW	00291H		;//Main Output (Data,Variable,Absolute)
 323  00AE  3FC0        		DW	03FC0H		;End Collection
 324  00AF              		ENDIF
 325  00AF              	end_hid_report_desc_table:	
 326  00AF              	
 327  00AF              
 328  00AF              	string_descriptor:
 329  00AF              	USBStringLanguageDescription:
 330  00AF  0304        	    	DW 	00304h          ; Length , Type (3=string)
 331  00B0  0409            		DW 	00409h          ; Language:  English , Sub-language: US
 332  00B1              	
 333  00B1              	imanufacturer_string:	;Vendor Name
 334  00B1              	USBStringDescription1:	
 335  00B1  0310 0048   		DW	00310h, 00048h, 0004fh, 0004ch, 00054h, 00045h, 0004bh, 00020h	;HOLTEK		
            004F 004C 0054 0045 004B 0020
 336  00B9              	
 337  00B9              	iproduct_string:	;Product Name
 338  00B9              	USBStringDescription2:	
 339  00B9              		;DW	00314h, 00048h, 00054h, 00038h, 00032h, 00041h, 00038h,	00033h, 00032h, 00052h	;HT82A832R
 340  00B9  0334 0048   		DW	00334h, 00048h, 0004fh, 0004ch, 00054h, 00045h, 0004bh, 00020h	;HOLTEK
            004F 004C 0054 0045 004B 0020
 341  00C1  0057 0069   		DW	00057h, 00069h, 00072h, 00065h, 0006Ch, 00065h, 00073h, 00073h, 00020h	;Wireless
            0072 0065 006C 0065 0073 0073 0020
 342  00CA  0055 0053   		DW	00055h, 00053h, 00042h, 00020h					;USB
            0042 0020
 343  00CE  0050 0048   		DW	00050h, 00048h, 0004Fh, 0004Eh, 00045h				;PHONE
            004F 004E 0045
 344  00D3              	
 345  00D3              	isnumber_string:	;Serial Number
 346  00D3              	USBStringDescription3:	
 347  00D3  030A 0038   		DW	0030Ah, 00038h,	00035h, 00031h, 00052h	;851R
            0035 0031 0052
 348  00D8              
 349  00D8              
 350  00D8              	config_desc_length:
 351  00D8  00D9        		DW	000D9H
 352  00D9              	report_desc_length:
 353  00D9              		IF	UseReportID
"File: DES.ASM       Holtek Cross-Assembler  Version 2.86      Page 7

 354  00D9  0043        		DW	00043H
 355  00DA              		ELSE
 356  00DA              		DW	0001FH
 357  00DA              		ENDIF
 358  00DA              		
 359  00DA              	hid_desc_length:
 360  00DA  0009        		DW	00009H
 361  00DB              
 362  00DB              	LogTable:
 363  00DB              		
 364  00DB              	 Public		control_read_table
 365  00DB              	 Public		device_desc_table
 366  00DB              	 Public		config_desc_table
 367  00DB              	 Public		end_config_desc_table
 368  00DB              	 Public		USBStringLanguageDescription
 369  00DB              	 Public		USBStringDescription1
 370  00DB              	 Public		USBStringDescription2
 371  00DB              	 Public		USBStringDescription3
 372  00DB              	 Public		HID_Desc
 373  00DB              	 Public		hid_report_desc_table
 374  00DB              	 Public		end_hid_report_desc_table
 375  00DB              	 
 376  00DB              	 
 377  00DB              	 Public		config_desc_length
 378  00DB              	 Public		hid_desc_length
 379  00DB              	 Public		report_desc_length
 380  00DB              	 Public		LogTable


        0 Errors

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -