Hardware Reference
In-Depth Information
genden Texte eingetragen:“Manufacturer“ (als Herstellername), „Product“ (als
Typenbezeichnung) und „SerialNumber“ (als Seriennummer).
;EEPROM data
; Data to be programmed into the Data EEPROM is defined here
eeprom
code_pack
0xf00000
; string with string index 0x01
; EEADR start = 0x00
stringManufacturer
DE
.12,“Manufacturer“,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0
; string with string index 0x02
; EEADR start = 0x20
stringProduct
DE
.07,“Product“,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0
; string with string index 0x03
; EEADR start = 0x40
stringSerialNumber
DE
.12,“SerialNumber“,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0
7.6.7 GET_STRING_CONFIGURATION
Im Configuration Descriptor des USB488-Geräts, das in diesem Buch als Beispiel
beschrieben wird, hat das Datenfeld iConfiguration ,dasdenIndexfürdieBezeich-
nung der Schnittstellen-Konfiguration festlegt, den Wert 0x04.
Datenfeld
Wert
Bedeutung
bmRequestType
10000000
Standard, Device to Host, Recipient: Device
bRequest
00000110
GET_DESCRIPTOR
wValue
0x0304
Typ: String Descriptor, hier: iConfiguration
wIndex
0x0409
Sprache: English, United States
wLength
*
Erwartete Anzahl von Bytes
;******************************************************************************
; USB Standard Request: GET_STRING_CONFIGURATION
;******************************************************************************
GET_STRING_CONFIGURATION
movlw UPPER stringConfiguration
movwf TBLPTRU
movlw HIGH stringConfiguration
movwf TBLPTRH
movlw LOW
stringConfiguration
movwf TBLPTRL
call
IN_Descriptor
bra
transtest_over_ctl_out
 
Search WWH ::




Custom Search