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

USB System Architecture

Hub Request Types

The eight byte data packet that defines the type of request being made is illustrated in Table B-1. Byte zero of the data packet contains a bitmap that defines:

Direction of data transfer

Type of request

Recipient of request

Byte zero of the data packet consists of a bit-mapped value that identifies the packet type for a standard request. That is, if bits 5 and 6 are both zero, then the request is one of the standard requests listed in Table B-2, and a value of 01b specifies that the request is hub-specific. The hub-specific requests are listed in Table B-4.

Table B-1: Format of Setup Transaction Data Phase

Offset

Field

Size

Value

 

Description

 

 

 

 

 

 

 

 

 

 

0

Request-

1

Bitmap

Characteristics of Request

 

Type

 

 

D7

Data xfer direction

 

 

 

 

 

0 = Host to device

 

 

 

 

 

1 = Device to host

 

 

 

 

D6:5

Type

 

 

 

 

 

0 = Standard

 

 

 

 

 

1 = Class

 

 

 

 

 

2 = Vendor

 

 

 

 

 

3 = Reserved

 

 

 

 

D4:0

Recipient

 

 

 

 

 

0 = Device

 

 

 

 

 

1 = Interface

 

 

 

 

 

2 = Endpoint

 

 

 

 

 

3 = Other

 

 

 

 

 

4-31 = Reserved

 

 

 

 

 

1

Request

1

Value

Specific Request.

 

 

 

 

 

2

Value

2

Value

Word-sized field that varies according to

 

 

 

 

request.

 

 

 

 

 

 

 

448

 

 

 

 

Appendix B: Hub Requests

 

 

 

 

 

 

 

Table B-1: Format of Setup Transaction Data Phase

 

 

 

 

 

Offset

Field

Size

Value

Description

 

 

 

 

 

 

 

 

 

 

4

Index

2

Index or

Word-sized field that varies according to

 

 

 

Offset

request. Typically used to pass an index or

 

 

 

 

offset.

 

 

 

 

 

6

Length

2

Count

Number of bytes to transfer if there is a data

 

 

 

 

stage required for this transfer.

 

 

 

 

 

Standard Requests and Hub Response

Hubs must support standard device requests like any other USB device. Table B-2 lists the standard requests and the hub’s responses to these requests.

Table B-2: Hub’s Response to Standard Device Requests

Request

Request

Hub Response

 

Field

 

 

Value

 

 

 

 

 

 

 

CLEAR_FEATURE

1

Clears the selected feature within the device

 

 

 

GET_CONFIGURATION

8

Returns the configuration value used to con-

 

 

figure the device.

 

 

 

GET_DESCRIPTOR

6

Returns the selected descriptor(s).

 

 

 

GET_INTERFACE

10

Optional (hubs only required to support one

 

 

interface).

 

 

 

GET_STATUS

0

Returns status information regarding the

 

 

state of the device.

 

 

 

SET_ADDRESS

5

Used to assign a unique address to the

 

 

device.

 

 

 

SET_CONFIGURATION

9

Used to configure a device by assigning the

 

 

configuration value of the selected configu-

 

 

ration descriptor.

 

 

 

449

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