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

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

8.5.3.7 Set Device Info

This request sets the device information buffer that is associated with the device connected downstream of the HWA.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

SET_DEVICE_INFO

Zero

Device Index

36

Device

 

 

 

and Interface

 

Information

 

 

 

Number

 

Buffer

 

 

 

 

 

 

On reception of this request, the HWA will store the device information buffer for the downstream connected device. The format of the device information buffer is given below. The number of devices that an HWA can support at the same time is specified by the bNumPorts field in the Wire Adapter descriptor. The upper byte of wIndex (Device Index) can be any value between 0 and bNumPorts – 1.

The lower byte of wIndex specifies the target interface number.

Table 8-54. Device Information Buffer Format

Offset

Field

Size

Value

 

Description

 

 

 

 

 

0

bmDeviceAvailabilityInfo

32

Bitmap

This bitmap specifies the MAS slots in which the

 

 

 

 

WUSB device can communicate with the host.

 

 

 

 

 

32

bDeviceAddress

1

Number

Address of the attached device

 

 

 

 

 

33

wPHYRates

2

Bitmap

Describes the PHY-level signaling rates

 

 

 

 

capabilities of this device implementation

 

 

 

 

represented as a bit-mask. See Section 7.4.1.1

 

 

 

 

 

 

35

bmDeviceAttribute

1

Bitmap

 

 

 

 

 

 

Bit

Description

 

 

 

 

6:0

Reserved

 

 

 

 

7

Disable. If this bit is set to a

 

 

 

 

 

1B, then the HWA must not

 

 

 

 

 

perform any transactions to

 

 

 

 

 

this device.

It is a Request Error if wLength is other than as specified above or if the Device Index is greater than or equal to the bNumPorts field in the Wire Adapter descriptor.

If the interface specified does not exist, then the device responds with a Request Error.

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

8.5.3.8 Set Device Key

This request sets the key to be used to encrypt/decrypt data when the HWA is sending/receiving data to/from the device connected downstream of the HWA.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

SET_DESCRIPTOR

Descriptor

Device Index

Key

Key

 

 

Type and Key

and Interface

Descriptor

Descriptor

 

 

Index

Number

Length

 

 

 

 

 

 

 

When the HWA receives this command, it uses the key data in the accompanying key descriptor to update its copy of the key to be used when sending/receiving data from this device. Host Wire Adapters are only required to support one key per device.

The upper byte of the wIndex field specifies the Device index. The Device Index must be less than the bNumPorts field in the Wire Adapter descriptor.

248

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

The lower byte of wIndex specifies the target interface number.

It is a Request Error if wValue is other than as specified above or if the Device index greater than or equal to the bNumPorts field in the Wire Adapter descriptor.

If the interface specified does not exist, then the device responds with a Request Error.

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

8.5.3.9 Set Group Key

This request sets the Group key to be used to encrypt data when the HWA is sending data to the WUSB cluster.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

SET_DESCRIPTOR

Descriptor

Interface

Key

Key

 

 

Type and Key

Number

Descriptor

Descriptor

 

 

Index

 

Length

 

 

 

 

 

 

 

When the HWA receives this command, it uses the key data in the accompanying key descriptor to update its copy of the Group key to be used when sending data to the WUSB cluster.

The lower byte of wIndex specifies the target interface number. It is a Request Error if wLength is other than as specified above.

If the interface specified does not exist, then the device responds with a Request Error.

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

8.5.3.10Set Num DNTS Slots

This request sets the interval and raw number of notification message time slots available in the DNTS.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

SET_NUM_DNTS

Interval

Interface

Zero

None

 

 

And Number of

Number

 

 

 

 

 

 

 

 

 

DNTS Slots

 

 

 

 

 

 

 

 

 

Upon receipt of this request, the HWA will schedule DNTS time slots in subsequent transaction groups. The upper byte of the wValue field (Interval) specifies the rate at which the HWA must schedule a DNTS time slot. If the Interval value is set to zero, then the HWA must schedule a DNTS in every transaction group. This field is expressed in milliseconds.

The lower byte of the wValue field specifies the number of slots that must be available. The lower byte of wIndex specifies the target interface number.

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

If the interface specified does not exist, then the device responds with a Request Error.

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

8.5.3.11Set WUSB Cluster ID

This request sets the WUSB Cluster ID.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

SET_CLUSTER_ID

Cluster ID

Interface

Zero

None

 

 

 

Number

 

 

 

 

 

 

 

 

249

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

This request sets the WUSB Cluster ID for this HWA. The wValue field specifies the Cluster Id.

The lower byte of wIndex specifies the target interface number. It is a Request Error if wLength is other than as specified above.

If the interface specified does not exist, then the device responds with a Request Error.

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

8.5.3.12Set WUSB MAS

This request sets the MAS that the HWA can perform transaction in.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

SET_WUSM_MAS

Zero

Interface

32

WUSB MAS

 

 

 

Number

 

 

 

 

 

 

 

 

This request is used to set/update the currently available Media Access Slots that an HWA can use. WUSB MAS is an array of 256 entries, each of which corresponds to one of the 256 MAS within a superframe. The zero entries identify MAS that cannot be used by the HWA while nonzero entries identify MAS in which an HWA may perform WUSB transactions.

The lower byte of wIndex specifies the target interface number. It is a Request Error if wLength is other than as specified above.

If the interface specified does not exist, then the device responds with a Request Error.

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

8.5.3.13Set WUSB Stream Index

This request sets the WUSB Stream Index.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

SET_STREAM_IDX

Stream Index

Interface

Zero

None

 

 

 

Number

 

 

This request sets the WUSB Stream Index for this HWA. The wValue field specifies the Stream Index.

The lower byte of wIndex specifies the target interface number. It is a Request Error if wLength is other than as specified above.

If the interface specified does not exist, then the device responds with a Request Error.

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

8.5.3.14WUSB Channel Stop

This request is used to stop the WUSB channel.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

WUSB_CH_STOP

WUSB

Interface

Zero

None

 

 

Channel Time

Number

 

 

 

 

Offset

 

 

 

On reception of this request, the HWA must stop the Wireless USB channel as described in Section 4.16.2.1 of the Data Flow chapter. The wValue field (WUSB Channel Time Offset) specifies the offset in microseconds

250

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