DeviceDscr:
db DSCR_DEVICE_LEN ;; Descriptor length
db DSCR_DEVICE ;; Decriptor type
dw 0002H ;; Specification Version (BCD)
db 00H ;; Device class
db 00H ;; Device sub-class
db 00H ;; Device sub-sub-class
db 64 ;; Maximum packet size
dw 0B404H ;; Vendor ID
dw 0410H ;; Product ID (Sample Device)
dw 0000H ;; Product version ID
db 1 ;; Manufacturer string index
db 2 ;; Product string index
db 0 ;; Serial number string index
db 1 ;; Number of configurations
;; 上述Serial number string index缺省是0,即没有序号。为了增加串号,改为3;
;; 并增加3对应的描述如下:
;;
StringDscr3:
db StringDscr3End - StringDscr3 ;; Descriptor length
db DSCR_STRING
db '1',00
db '2',00
db '3',00
db '4',00
db '5',00
StringDscr3End: