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

USB System Architecture

Table 19-3: Format of Port Status Fields Returned During the Get Port Status Request

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reserved

 

Reset

Over-

Suspend

Port

Current

(returns all zeros when read)

Status

Current

Status

Enabled/

Connect

 

 

 

 

Indicator

 

Disabled

Status

 

 

 

 

 

 

 

 

15

14

13

12*

11*

10*

9

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Port

Port

High-

Low-Speed

Port

Reserved (returns all zeros when

Indicator

Test

Speed

Device

Power

 

read)

 

Control

 

Device

Attached

 

 

 

 

 

 

Attached

 

 

 

 

 

 

 

 

 

 

Following the GetStatus request, the hub client must clear the Status Change bit in order for the port to detect another connection event. This is done via a control transfer defined as ClearPort Feature command with the feature field set to clear port connections (C_Port_Connections). See “Port Status Fields” on page 457 for details regarding the other field’s definition and use.

Resetting the Port

Once the hub client has detected the device, it must issue a port reset request, and when this happens, the attached device is reset. Port reset is accomplished via a control transfer delivered to the hub, called SetPortFeature. The format of the 8-byte setup transaction is shown in Table 19-4. The request field (second column) is specified as Set_Feature, the value field in column three is set to Reset_Port to define the Reset_Port feature, and the index field identifies the port number to be reset.

Table 19-4: Hub Class-Specific Reset Port Request

Request-

Request

Value

Index

Length

Data

Type

 

 

 

 

 

 

 

 

 

 

 

00100011B

SET_FEATURE

Feature = Reset_Port

Port number

Zero

None

 

(03h)

(04h)

 

 

 

 

 

 

 

 

 

352

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