Скачиваний:
31
Добавлен:
02.05.2014
Размер:
3.51 Mб
Скачать

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

The field bmBandGroup is a bit mask that reports which UWB band groups are supported by this implementation. A 1B in a bit position indicates all of the bands and channels in the associated PHY bandgroup are supported (i.e. a 1B in bit position 0 indicates that all bands in band group one are supported). For this revision of the specification, all devices are required to support bandgroup one (0001H). At this time, only 5 bandgroups are defined, therefore bits [15:5] are reserved. For full details on the PHY, refer to reference [4].

7.4.2 Configuration

The configuration descriptor describes information about a specific device configuration. Please refer to Section 9.6.3 of the USB 2.0 specification for a full description of the Configuration descriptor. The descriptor is included in its entirety below (for completeness). The Wireless USB specific additions/requirements are documented in the description column of Table 7-30.

Table 7-30. Standard Configuration Descriptor

Offset

Field

Size

Value

 

Description

 

 

 

 

 

0

bLength

1

Number

Refer to Table 9-10 in Section 9.6.3 in the USB 2.0

 

 

 

 

specification for a full description.

1

bDescriptorType

1

Constant

 

 

 

 

 

 

 

 

2

wTotalLength

2

Number

 

 

 

 

 

 

 

 

4

bNumInterfaces

1

Number

 

 

 

 

 

 

 

 

5

bConfigurationValue

1

Number

 

 

 

 

 

 

 

 

6

iConfiguration

1

Index

 

 

 

 

 

 

 

7

bmAttributes

1

Bitmap

Configuration characteristics

 

 

 

 

D7:

Reserved (set to one)

 

 

 

 

D6:

Self-powered

 

 

 

 

D5:

Remote Wakeup

 

 

 

 

D4

Battery-powered

 

 

 

 

D3...0: Reserved (reset to zero)

 

 

 

 

D7 is reserved and must be set to one for historical

 

 

 

 

reasons.

 

 

 

 

 

All attributes are available for a USB 2.0 device

 

 

 

 

implementation.

 

 

 

 

 

A Wireless USB device must always set Self-

 

 

 

 

powered (D6) to a one (1B).

 

 

 

 

If a device configuration supports remote wakeup,

 

 

 

 

D5 is set to one.

 

 

 

 

 

 

8

bMaxPower

1

mA

A Wireless USB device must always set this field to

 

 

 

 

zero.

 

 

 

 

 

 

 

166

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

7.4.3 Endpoint

The purpose and function of the endpoint descriptor is the same as defined in the USB 2.0 specification, see Section 9.6.6. This section describes the requirement modifications to the endpoint descriptor required for Wireless USB. The entire descriptor from the USB 2.0 specification is repeated here for convenience, with the explicit changes for Wireless USB identified. In addition, Wireless USB defines an Endpoint Companion descriptor for endpoint capabilities required for Wireless USB, that would not fit inside the existing endpoint descriptor footprint.

A Wireless USB endpoint descriptor must not be used in a USB 2.0 (wired) device configuration.

Table 7-31. Standard Endpoint Descriptor for Wireless USB Devices

Offset

Field

Size

Value

 

 

Description

0

bLength

1

Number

Size of this descriptor in bytes

1

bDescriptorType

1

Constant

ENDPOINT Descriptor Type

2

bEndpointAddress

1

Endpoint

The address of the endpoint on the USB device

 

 

 

 

described by this descriptor. The address is encoded

 

 

 

 

as follows:

 

 

 

 

 

 

Bits

Description

 

 

 

 

3:0

The endpoint number

 

 

 

 

6:4

Reserved and must be set to zero

 

 

 

 

7

Direction (ignored for Control endpoints)

 

 

 

 

 

0B

OUT endpoint

 

 

 

 

 

1B

IN endpoint

167

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

Table 7-31. Standard Endpoint Descriptor for Wireless USB Devices (cont.)

Offset

Field

Size

Value

 

 

Description

 

 

 

 

 

3

bmAttributes

1

Bitmap

This field describes the endpoint’s attributes when it is

 

 

 

 

configured using the bConfigurationValue.

 

 

 

 

Bits

Description

 

 

 

 

 

1:0

Transfer type. Values have the following

 

 

 

 

 

encoding:

 

 

 

 

 

 

 

00B

Control

 

 

 

 

 

 

01B

Isochronous

 

 

 

 

 

10B

Bulk

 

 

 

 

 

 

11B

Interrupt

 

 

 

 

 

6:2

This field is reserved and must be set to

 

 

 

 

 

zero if the Transfer Type field is Control

 

 

 

 

 

or Bulk.

 

 

 

 

 

 

 

If the Transfer Type field is Interrupt,

 

 

 

 

 

then bits [6:3] are reserved and must be

 

 

 

 

 

set to zero and bit [2] has the following

 

 

 

 

 

meaning:

 

 

 

 

 

 

 

0B

Normal power interrupt

 

 

 

 

 

 

endpoint

 

 

 

 

 

 

1B

Low power interrupt endpoint

 

 

 

 

 

If the Transfer Type field is Isochronous,

 

 

 

 

 

then this field has the following encoding:

 

 

 

 

 

Bits

Meaning

 

 

 

 

 

 

3:2

Synchronization type

 

 

 

 

 

 

00B

No Synchronization

 

 

 

 

 

 

01B

Asynchronous

 

 

 

 

 

 

10B

Adaptive

 

 

 

 

 

 

11B

Synchronous

 

 

 

 

 

5:4

Usage type

 

 

 

 

 

 

00B

Data endpoint

 

 

 

 

 

 

01B

Feedback endpoint

 

 

 

 

 

 

10B

Implicit feedback

 

 

 

 

 

 

 

endpoint

 

 

 

 

 

 

11B

Reserved

 

 

 

 

 

6

Reserved. Must be zero.

 

 

 

 

7

Data packet size adjustment flag. This bit

 

 

 

 

 

must be set to zero for Control and

 

 

 

 

 

Isochronous endpoints.

 

 

 

 

 

0B

Data packet size adjustment

 

 

 

 

 

 

not supported

 

 

 

 

 

1B

Data packet size adjustment

 

 

 

 

 

 

supported

168

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

Table 7-31. Standard Endpoint Descriptor for Wireless USB Devices (cont.)

Offset

Field

Size

Value

Description

 

 

 

 

 

4

wMaxPacketSize

2

Number

When transfer type is bulk, control or interrupt:

 

 

 

 

Maximum packet size this endpoint is capable of

 

 

 

 

sending or receiving when this configuration is

 

 

 

 

selected.

 

 

 

 

If the transfer type is isochronous the value of this

 

 

 

 

field is the logical maximum packet size.

 

 

 

 

Note: If there are not software compatibility issues

 

 

 

 

using the wOverTheAirPacketSize, wMaxPacketSize

 

 

 

 

must be set to the same value as

 

 

 

 

wOverTheAirPacketSize.

 

 

 

 

Note, for all endpoints, bits [15:0] specify the

 

 

 

 

maximum packet size (in bytes). Note that each

 

 

 

 

endpoint transfer type has additional constraints

 

 

 

 

defined that limit the valid range of values for this

 

 

 

 

field. See Chapter 4 For additional details.

6

bInterval

1

Number

When the transfer type is bulk or control, this field is

reserved and must be set to zero.

 

 

 

 

 

 

 

 

For interrupt endpoints, the bInterval value is used as

 

 

 

 

the exponent for a 2bInterval-1 value; e.g., a bInterval of

 

 

 

 

6 means a period of 32 (26-1) units of 128

 

 

 

 

microseconds.

 

 

 

 

For wireless interrupt endpoints this value must be

 

 

 

 

from 6 to 16.

 

 

 

 

Note: Not all service interval bounds in this range

 

 

 

 

may be achievable. See Section 4.11.2.2 for details.

 

 

 

 

For isochronous endpoints the value of this field is

 

 

 

 

the logical service interval. This field allows

 

 

 

 

isochronous endpoints to report a different value than

 

 

 

 

bOverTheAirInterval to software for legacy

 

 

 

 

compatibility reasons. The encoding is identical to

 

 

 

 

the USB 2.0 specification encoding for FS/HS

 

 

 

 

isochronous endpoints. The logical service interval

 

 

 

 

value must be in the range 1 to 16. If there is no need

 

 

 

 

to report different values the bInterval and

 

 

 

 

bOverTheAirInterval.values must be identical.

 

 

 

 

A continuously scalable dynamic switching capable

 

 

 

 

isochronous endpoint specifies zero for the bInterval

 

 

 

 

value and must support any interval.

The bmAttributes field has several changes from the definition in the USB 2.0 specification. These are enumerated below:

Bits [6:2] are interpreted based on the value of the Transfer Type field. They are reserved and must be zero if Bulk or Control.

Bit [2] for an Interrupt type endpoint flags whether the endpoint is a normal or low-power type endpoint (see Section 4.6) but the remaining bits [6:3] are reserved and must be set to zero.

For Isochronous, the purpose of bits [5:2] remains unchanged from USB 2.0.5 Bit [6] is reserved and must be set to zero.

5 Warning: Acceptable response timeouts for feedback endpoints may be significantly longer than wired USB 2.0.

169

Соседние файлы в папке Wireless USB Specification Revision 1.0 May 12, 2005