Hardware Reference
In-Depth Information
7.6.8 GET_STRING_INTERFACE
Im Interface Descriptor des USB488-Geräts, das in diesem Buch als Beispiel
beschrieben wird, hat das Datenfeld iInterface , das den Index für die Bezeichnung
des Interface festlegt, den Wert 0x05.
Datenfeld
Wert
Bedeutung
bmRequestType
10000000
Standard, Device to Host, Recipient: Device
bRequest
00000110
GET_DESCRIPTOR
wValue
0x0305
Typ: String Descriptor, hier: iInterface
wIndex
0x0409
Sprache: English, United States
wLength
*
Erwartete Anzahl von Bytes
;******************************************************************************
; USB Standard Request: GET_STRING_INTERFACE
;******************************************************************************
GET_STRING_INTERFACE
movlw UPPER stringInterface
movwf TBLPTRU
movlw HIGH stringInterface
movwf TBLPTRH
movlw LOW
stringInterface
movwf TBLPTRL
call
IN_Descriptor
bra
transtest_over_ctl_out
Interface String des Beispielgeräts
Da die eine Konfiguration des Geräts nur ein Interface kennt, wurde es „USB488“
genannt.
; string with string index 0x05
stringInterface
DB
.14 ;packet length (lower byte)
DB
.0
;packet length (higher byte)
; USB-part:
DB
.14
DB
0x03
;descriptor Type
DB
„U“,0x00
DB
„S“,0x00
DB
„B“,0x00
DB
„4“,0x00
DB
„8“,0x00
DB
„8“,0x00
 
Search WWH ::




Custom Search