USB Clinic
AT43DK370 USB Host/Function Dev. Kit User Guide
4-7
3423C–USB–1/04
regardless its configuration number, so the CDIndex should be kept at zero. The device
address ranges from 1 to 7, and it is assigned by the enumeration timing order in which
a device is connected to the AT43DK370 Host.
4.6.3
Get String
Descriptor
The Get String Descriptor command allows the user to obtain the string descriptors.
To obtain a string descriptor, the user first needs to determine the string index. The
string index can be obtained from device, configuration, or interface descriptors. If string
index 0x00 is entered, regardless of the Language ID, the Output Window will display
the list of Language ID that the device supports. The USB Clinic Rev. 1.2 decodes only
the United States English (Language ID 0x0409) string. All other Language IDs will dis-
play only the string descriptor without the properly decoded string.
Figure 4-8.
USB Clinic - Get String Descriptor
4.6.4
Set Configuration
The Set Configuration command allows the user to set the device to a particular con-
figuration. To set the configuration, the user will need to assign the device address and
the configuration number associated with the target device as inputs. The configuration
number can be obtained from the
bConfigurationValue
field of the configuration descrip-
tors. Since the AT43USB370 Library does not support multiple configuration settings,
the Set Configuration command is used mainly in the enumeration stage only to set
the device from Address stage to Configured state. The enumeration is done by the
AT43DK370 firmware upon device connection, therefore the user will not need to exe-
cute this command through the USB Clinic manually. Please refer to “USB Processor
Library Software Development Guide for Host Mode’ and “USB Specification Revision
2.0” for details.
4.6.5
Set Interface
For configurations with multiple interfaces/alternate settings, the Set Interface com-
mand allows the user to set the particular interface/alternate interface setting for the
configuration on the target device. To set the right interface, the user will need to assign
the device address, the interface number, and the alternate number associated with the
target device as inputs.
The interface number or the alternate setting number can be obtained from the
bInterfaceNumber
field and the
bAlternateSetting
field of the interface descriptor (that is
returned followed by the configuration descriptor) respectively.
Summary of Contents for AT43DK370
Page 1: ...AT43DK370 USB Host Function Development Kit User Guide for Revision 1 3...
Page 2: ......
Page 6: ...Table of Contents iv AT43DK370 USB Host Function Dev Kit User Guide 3423C USB 1 04...
Page 8: ...Introduction 1 2 AT43DK370 USB Host Function Dev Kit User Guide 3423C USB 1 04...
Page 46: ...Technical Support 8 2 AT43DK370 USB Host Function Dev Kit User Guide 3423C USB 1 04...
Page 56: ...Appendices 9 10 AT43DK370 USB Host Function Dev Kit User Guide 3423C USB 1 04...