7.3.9 Get Interface
Table 7-19. Get Interface (Actually, Get Alternate Setting AS for interface IF)
Byte
0
Field
bmRequestType
bRequest
wValueL
Value
Meaning
8051 Response
Send AS for Interface IF over
OUT0BUF (1 byte)
0x81 IN, Device
0x0A “Get_Interface”
0x00
1
2
3
wValueH
0x00
4
wIndexL
IF
0x00
1
For this interface
5
wIndexH
6
wLengthL
wLengthH
LenL
LenH
7
0
The 8051 simply returns the alternate setting for the requested interface IF, and clears the
HSNAK bit by writing “1” to it.
7.3.10 Set Address
When a USB device is first plugged in, it responds to device address 0 until the host
assigns it a unique address using the Set_Address request. The EZ-USB core copies this
device address into the FNADDR (Function Address) register, and subsequently responds
only to requests to this address. This address is in effect until the USB device is
unplugged, the host issues a USB Reset, or the host powers down.
The FNADDR register can be read, but not written by the 8051. Whenever the EZ-USB
core ReNumerates , it automatically resets the FNADDR to zero allowing the device to
come back as new.
An 8051 program does not need to know the device address, because the EZ-USB core
automatically responds only to the host-assigned FNADDR value. The EZ-USB core
makes it readable by the 8051 for debug/diagnostic purposes.
EZ-USB TRM v1.9
Chapter 7. EZ-USB CPU
Page 7-21