
EZ-USB FX2 Technical Reference Manual
Page 2-20 EZ-USB FX2 Technical Reference Manual v2.1
2.3.5.1 Set Configuration
When the host issues the Set Configuration request, the firmware saves the configuration number
(byte 2, CFG, in Tabl e2-18), performs any internal operations necessary to support the configura-
tion, and finally clears the HSNAK bit (by writing 1 to it) to terminate the Set Configuration
CONTROL transfer.
After setting a configuration, the host issues Set Interface commands to set up the various inter-
faces contained in the configuration.
2.3.6 Get Configuration
When the host issues the
Get Configuration
request, the firmware returns the current configuration
number. It loads the configuration number into EP0BUF, loads a byte count of one into EP0BCH:L,
and finally clears the HSHAK bit (
by writing 1 to it
) to terminate the
Set Configuration
CONTROL
transfer.
Table 2-18. Set Configuration
Byte Field Value Meaning Firmware Response
0 bmRequestType 0x00 OUT, Device
Read and store CFG, change
1 bRequest
0x09
“Set Configuration”
configurations in firmware.
2wValueL CFG Configuration Number
3 wValueH 0x00
4 wIndexL 0x00
5 wIndexH 0x00
6 wLengthL 0x00
7 wLengthH 0x00
Table 2-19. Get Configuration
Byte Field Value Meaning Firmware Response
0 bmRequestType
0x80
IN, Device
Send CFG over EP0 after
1 bRequest
0x08
“Get Configuration”
re-configuring.
2 wValueL 0x00
3 wValueH 0x00
4 wIndexL 0x00
5 wIndexH 0x00
6 wLengthL 1 LenL
7 wLengthH 0 LenH
Kommentare zu diesen Handbüchern