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

USB System Architecture

Transfer Types

The following sections describe the capabilities and limitations of the four transfer types. Each device endpoint has an associated descriptor that defines the transfer type it requires. Table 6-1 on page 122 lists a portion of an endpoint descriptor that includes the transfer type field. The shaded area at offset 3 defines the transfer type associated with a given endpoint.

Table 6-1: Endpoint Descriptor Transfer Type Definition

Offset

Field

Size

Value

Description

 

 

 

 

 

 

 

 

 

 

0

Length

1

Number

Size of this descriptor in bytes.

 

 

 

 

 

1

DescriptorType

1

Constant

ENDPOINT Descriptor Type.

 

 

 

 

 

2

EndpointAddress

1

Endpoint

The address of the endpoint on the USB

 

 

 

 

device described by this descriptor. The

 

 

 

 

address is encoded as follows:

 

 

 

 

Bit 0:3

Endpoint number

 

 

 

 

Bit 4:6 Reserved, reset to zero

 

 

 

 

Bit 7

Direction (ignored for con-

 

 

 

 

 

trol endpoints)

 

 

 

 

0 =

OUT endpoint

 

 

 

 

1 =

IN endpoint

 

 

 

 

 

3

Attributes

1

BitMap

This field describes the endpoint’s

 

 

 

 

transfer type once the device is config-

 

 

 

 

ured.

 

 

 

 

 

Bit 1:0

Transfer Type

 

 

 

 

0:0

Control

 

 

 

 

0:1

Isochronous

 

 

 

 

1:0

Bulk

 

 

 

 

1:1

Interrupt

 

 

 

 

All other bits are reserved.

 

 

 

 

 

 

122

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