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

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

All fields that are not marked read only may be changed by host software by using the Set RPipe Descriptor request.

8.4.4 DWA Specific Requests

This section describes all the DWA specific requests.

Table 8-34. DWA Specific Requests

Request

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

 

Clear Port Feature

00100100B

CLEAR_FEATURE

Feature

Selector and

Zero

None

 

 

 

Selector

Port Index

 

 

 

 

 

 

 

 

 

Get Port Status

10100100B

GET_STATUS

Zero

Port Index

4

Port Status

 

 

 

 

 

 

and

 

 

 

 

 

 

Change

 

 

 

 

 

 

Status

 

 

 

 

 

 

 

Set ISOEP Attributes

00100010B

SET_EP_ATTRIB

Zero

Endpoint

6

Endpoint

 

 

 

 

Address

 

Attributes

Set Port Feature

00100100B

SET_FEATURE

Feature

Selector and

Zero

None

 

 

 

Selector

Port Index

 

 

 

 

 

 

 

 

 

Table 8-35. DWA Specific Request Codes

bRequest

Value

 

 

SET_EP_ATTRIB

30

 

 

8.4.4.1 Clear Port Feature

This request resets a value in the reported port status.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100100B

CLEAR_FEATURE

Feature

Selector and

Zero

None

 

 

Selector

Port Index

 

 

 

 

 

 

 

 

The wIndex field contains a Selector type in the upper byte and a Port Index in the lower byte.

Clearing a feature disables that feature; see Table 11-17 in the USB 2.0 specification for the feature selector definitions that apply to a port as a recipient. This request format is used to clear the following features:

PORT_ENABLE

PORT_SUSPEND

PORT_POWER

PORT_INDICATOR

C_PORT_CONNECTION

C_PORT_RESET

C_PORT_ENABLE

C_PORT_SUSPEND

C_PORT_OVER_CURRENT

230

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

See Section 11.24.2.2 of the USB 2.0 Specification for a detailed description on the usage of the Selector in wIndex.

It is a Request Error if wValue is not a feature selector listed in Table 8-6, if wIndex specifies a port that does not exist, or if wLength is not as specified above.

If the Device Wire Adapter is not configured, the Device Wire Adapter’s response to this request is undefined.

8.4.4.2 Get Port Status

This request returns the current port status.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

10100100B

GET_STATUS

Zero

Port Index

4

Port Status

 

 

 

 

 

and

 

 

 

 

 

Change

 

 

 

 

 

Status

The wIndex field contains a Port Index. The port index must be a valid port index for that Device Wire Adapter, greater than zero.

The first word of data contains wPortStatus (refer to Table 11-21 in the USB 2.0 specification). The second word of data contains wPortChange (refer to Table 11-20 in the USB 2.0 specification). The bit locations in the wPortStatus and wPortChange fields correspond in a one-to-one fashion.

It is a Request Error if wValue or wLength are other than as specified above or if wIndex specifies a Port that does not exist.

If the Device Wire Adapter is not configured, the Device Wire Adapter’s response to this request is undefined.

8.4.4.3 Set Isochronous Endpoint Attributes

This request sets the wMaxStreamDelay and wOverTheAirPacketSize for the continuously scalable isochronous endpoint specified on the DWA.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100010B

SET_EP_ATTRIB

Zero

Endpoint

6

Endpoint

 

 

 

Address

 

Attributes

On reception of this request, the DWA will expect to receive or send data as per the wOverTheAirPacketSize specified. The lower byte of wIndex specifies the target endpoint. The format of the endpoint attributes structure is given in Table 8-36.

Table 8-36. Endpoint Attributes Buffer Format

Offset

Field

Size

Value

Description

 

 

 

 

 

0

wMaxStreamDelay

2

Number

The actual stream delay as determined by the host.

 

 

 

 

This field indicates the amount of delay in 128

 

 

 

 

microsecond units. See Table 7-32 for details.

2

wOverTheAirPacketSize

2

Number

New Maximum packet size this endpoint is capable

 

 

 

 

of sending or receiving over the air This must be

 

 

 

 

less than or equal to the original over-the-air

 

 

 

 

Maximum packet size.

4

wReserved

2

Zero

Reserved for future use, must be zero.

 

 

 

 

 

The host must ensure that the buffering allocated to the RPipe is sufficient to support the wMaxStreamDelay value in this request.

It is a Request Error if wValue or wLength are other than as specified above.

231

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