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

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

8.3.1 Wire Adapter Class-Specific Requests

Table 8-4. Wire Adapter Class-Specific Requests

Request

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

 

Abort RPipe

00100101B

ABORT_RPIPE

Zero

RPipe Index

Zero

None

 

 

 

 

 

 

 

Clear RPipe Feature

00100101B

CLEAR_FEATURE

Feature

RPipe Index

Zero

None

 

 

 

Selector

 

 

 

Clear Wire Adapter

00100001B

CLEAR_FEATURE

Feature

Interface

Zero

None

Feature

 

 

Selector

Number

 

 

Get RPipe Descriptor

10100101B

GET_DESCRIPTOR

Descriptor

RPipe Index

Descriptor

RPipe

 

 

 

Type

 

Length

Descriptor

 

 

 

 

 

 

 

Get RPipe Status

10100101B

GET_STATUS

Zero

RPipe Index

1

RPipe

 

 

 

 

 

 

Status

Get Wire Adapter

10100001B

GET_STATUS

Zero

Interface

4

Wire

Status

 

 

 

Number

 

Adapter

 

 

 

 

 

 

Status

 

 

 

 

 

 

 

Set RPipe Descriptor

00100101B

SET_DESCRIPTOR

Descriptor

RPipe Index

Descriptor

RPipe

 

 

 

Type

 

Length

Descriptor

Set RPipe Feature

00100101B

SET_FEATURE

Feature

RPipe Index

Zero

None

 

 

 

Selector

 

 

 

Set Wire Adapter

00100001B

SET_FEATURE

Feature

Interface

Zero

None

Feature

 

 

Selector

Number

 

 

 

 

 

 

 

 

 

Reset RPipe

00100101B

RESET_RPIPE

Zero

RPipe Index

Zero

None

 

 

 

 

 

 

 

Table 8-5. Wire Adapter Class Request Codes

bRequest

Value

 

 

GET_STATUS

0

 

 

CLEAR_FEATURE

1

 

 

Reserved

2

SET_FEATURE

3

 

 

Reserved

4-5

GET_DESCRIPTOR

6

 

 

SET_DESCRIPTOR

7

Reserved

8-13

 

 

ABORT_RPIPE

14

RESET_RPIPE

15

 

 

Table 8-6. Wire Adapter Class Feature Selector

Feature Selector

Recipient

 

Value

 

 

 

 

WIRE_ADAPTER _ENABLE

Wire Adapter Device

1

 

 

 

WIRE_ADAPTER _RESET

Wire Adapter Device

2

 

 

 

RPIPE_PAUSE

RPipe

1

 

 

 

 

206

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

8.3.1.1 Abort RPipe

This request aborts all transfers pending on the given RPipe.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100101B

ABORT_RPIPE

Zero

RPipe Index

Zero

None

 

 

 

 

 

 

Upon receipt of this request, the Wire Adapter will terminate all pending transfers for the given RPipe and place the RPipe in the Idle state. The Wire Adapter must return a transfer completion notification, transfer result and any data that was received and acknowledged from the targeted endpoint for all terminated transfers.

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

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

8.3.1.2 Clear RPipe Feature

This request resets a value in the reported RPipe status.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100101B

CLEAR_FEATURE

Feature Selector

RPipe Index

Zero

None

 

 

 

 

 

 

The wIndex field contains an RPipe Index. The RPipe index must be a valid RPipe index for that Wire Adapter.

Clearing a feature disables that feature; see Table 8-6 for the feature selector definitions that apply to an RPipe as a recipient. Features that can be cleared with this request are:

RPIPE_PAUSE

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

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

8.3.1.3 Clear Wire Adapter Feature

This request is used to clear or disable a specific feature.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

CLEAR_FEATURE

Feature

Interface

Zero

None

 

 

Selector

Number

 

 

 

 

 

 

 

 

The lower byte of wIndex contains the target interface number. Clearing a feature disables that feature; see Table 8-6 for the feature selector definitions that apply to the controller as a recipient. Features that can be cleared with this request are:

WIRE_ADAPTER_ENABLE

It is a Request Error if wValue is not a feature selector listed in Table 8-6 or wLength is not as specified above. If the interface specified does not exist, then the device responds with a Request Error.

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

207

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

8.3.1.4 Get RPipe Descriptor

This request returns the current Wire Adapter RPipe Descriptor.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

10100101B

GET_DESCRIPTOR

Descriptor Type

RPipe Index

Descriptor

RPipe

 

 

 

 

Length

Descriptor

 

 

 

 

 

 

The GetDescriptor() request for the RPipe descriptor follows the same usage model as that of the standard GetDescriptor() request. The lower byte of wValue must be set to zero and the RPipe Index is given in the lower twelve bits of the wIndex field.

If wLength is larger than the actual length of the descriptor, then only the actual length is returned. If wLength is less than the actual length of the descriptor, then only the first wLength bytes of the descriptor are returned; this is not considered an error even if wLength is zero.

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

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

8.3.1.5 Get RPipe Status

This request returns the current status for the given RPipe.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

10100101B

GET_STATUS

Zero

RPipe Index

1

RPipe Status

 

 

 

 

 

 

The wIndex field contains an RPipe Index. The RPipe index must be a valid RPipe index for that Wire Adapter. The returned value describes the current status of the specified RPipe. The meanings of the individual bits are given in Table 8-7.

Table 8-7. RPipe State Report

Offset

Field

Size

Value

 

 

Description

 

 

 

 

 

0

RPipeState

1

Bitmap

State of this RPipe:

 

 

 

 

Bit

Description

 

 

 

 

0

1

= Idle, 0 = Active

 

 

 

 

1

1

= Paused, 0 = Not Paused

 

 

 

 

2

1

= Configured

 

 

 

 

 

0

= UnConfigured

 

 

 

 

7:3

Reserved

 

 

 

 

 

 

 

The RPipe state diagram is given below.

208

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

Figure 8-6. RPipe State Diagram

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

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

8.3.1.6 Get Wire Adapter Status

This request returns the current status of the Wire Adapter.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

10100001B

GET_STATUS

Zero

Interface

4

Wire

 

 

 

Number

 

Adapter

 

 

 

 

 

Status

 

 

 

 

 

 

The lower byte of wIndex contains the target interface number. The returned value gives the current Wire Adapter status. The meanings of the individual bits are given in Table 8-8.

Table 8-8. Wire Adapter Status Bits

Bit

 

Description

 

 

0

Controller Enabled/Disabled: This field indicates whether the controller is enabled or disabled.

 

Value

Description

 

0

Controller is disabled

 

1

Controller is enabled

 

 

1

Reset: This bit is set while a Reset is in progress. It is cleared by the Wire Adapter once Reset is completed

31:2

Reserved: These bits return 0 when read.

209

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