Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
USB System Architecture (USB 2.0).pdf
Скачиваний:
173
Добавлен:
03.05.2015
Размер:
7.03 Mб
Скачать

Chapter 20: Hub Configuration

Hub Interface Descriptor

An interface descriptor is included for each function. The first interface descriptor will define the hub function, and subsequent interfaces will be included for embedded devices (i.e., compound hub). The specification pre-defines values for two fields within a hub’s interface descriptor:

Number of endpoints (offset 4 in Table 20-3 on page 383) — The hub function must contain at least one endpoint descriptor to define the status change endpoint, thus the number of endpoints is pre-defined as 01h. However, additional endpoints can be defined by a hub class device. Note that the default endpoint is pre-defined by the specification and does not require a descriptor. The enumerator is aware that every device implements the default control endpoint to permit access to the device; therefore, a descriptor for the default endpoint is not needed. Note that when reading this descriptor, the USB enumerator will not know that the interface being described is a hub function if the hub is a compound device.

Interface (offset 8 in Table 20-3 on page 383) — The interface value of 01h identifies the offset of the string descriptor that describes this interface.

Table 20-3: Hub Interface Descriptor

Offset

Field

Size

Value

Description

 

 

 

 

 

 

 

 

 

 

0

Length

1

Number

Size of this descriptor in bytes.

 

 

 

 

 

1

Descriptor-

1

04

INTERFACE Descriptor Type = 4.

 

Type

 

 

 

 

 

 

 

 

2

Interface-

1

Number

Number of interface. Zero-based value

 

Number

 

 

identifying the index in the array of

 

 

 

 

concurrent interfaces supported by

 

 

 

 

this configuration.

 

 

 

 

 

3

Alternate-

1

Number

Value used to select alternate setting

 

Setting

 

 

for the interface identified in the prior

 

 

 

 

field.

 

 

 

 

 

383

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]