
EZ-USB FX2 Technical Reference Manual
Page 2-10 EZ-USB FX2 Technical Reference Manual v2.1
2.3.2 Set Feature
Set Feature
is used to enable remote wakeup or stall an endpoint. No data stage is required.
The only Set Feature/Device request presently defined in the USB Specification is to set the
remote wakeup bit. This is the same bit reported back to the host as a result of a Get Status-
Device request (Table 2-3). The host uses this bit to enable or disable remote wakeup by the
device.
The only Set Feature/Endpoint request presently defined in the USB Specification is to stall an
endpoint. The firmware should respond to this request by setting the STALL bit in the EPxCS reg-
ister for the indicated endpoint EP (byte 4 of the request). The firmware can either stall an end-
point on its own or in response to the device request. Endpoint stalls are cleared by the host Clear
Feature/Stall request.
The firmware should respond to the
Set Feature/Stall
request by performing the following tasks:
1. Set the STALL bit in the indicated endpoint’s EPxCS register.
2. Reset the data toggle for the indicated endpoint.
Table 2-6. Set Feature-Device (Set Remote Wakeup Bit)
Byte Field Value Meaning Firmware Response
0 bmRequestType 0x00 OUT, Device
Set the Remote Wakeup Bit
1 bRequest
0x03
“Set Feature”
2 wValueL 0x01 Feature Selector:
3 wValueH 0x00 Remote Wakeup
4 wIndexL 0x00
5 wIndexH 0x00
6 wLengthL 0x00
7 wLengthH 0x00
Table 2-7. Set Feature-Endpoint (Stall)
Byte Field Value Meaning Firmware Response
0 bmRequestType 0x02 OUT, Endpoint
Set the STALL bit for the
1 bRequest
0x03
“Set Feature”
indicated endpoint:.
2 wValueL 0x00 Feature Selector:
3 wValueH 0x00 STALL
4 wIndexL EP 0x00-0x08: OUT0-OUT8
5 wIndexH 0x00 0x80-0x88: IN0-IN8
6 wLengthL 0x00
7 wLengthH 0x00
Comentarios a estos manuales