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

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

8.5.3 HWA Specific Requests

This section describes all the HWA specific requests.

Table 8-50. HWA Specific Requests

Request

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

 

Add MMC IE

00100001B

ADD_MMC_IE

Interval and

IE Handle

IE Length

IE Block

 

 

 

Repeat Count

and

 

 

 

 

 

 

Interface

 

 

 

 

 

 

Number

 

 

 

 

 

 

 

 

 

Get BPST Adjustment

10100001B

GET_TIME

TIME_ADJ

Interface

1

Adjustment

 

 

 

 

Number

 

Value

Get BPST Time

10100001B

GET_TIME

TIME_BPST

Interface

3

WUSB

 

 

 

 

Number

 

Channel

 

 

 

 

 

 

Time

Get WUSB Time

10100001B

GET_TIME

TIME_WUSB

Interface

3

WUSB

 

 

 

 

Number

 

Channel

 

 

 

 

 

 

Time

 

 

 

 

 

 

 

Remove MMC IE

00100001B

REMOVE_MMC_IE

Zero

IE Handle

Zero

None

 

 

 

 

and

 

 

 

 

 

 

Interface

 

 

 

 

 

 

Number

 

 

 

 

 

 

 

 

 

Set Device

00100001B

SET_ENCRYPTION

Encryption

Device

Zero

None

Encryption

 

 

Value

Index and

 

 

 

 

 

 

Interface

 

 

 

 

 

 

Number

 

 

 

 

 

 

 

 

 

Set Device Info

00100001B

SET_DEVICE_INFO

Zero

Device

36

Device

 

 

 

 

Index and

 

Information

 

 

 

 

Interface

 

Buffer

 

 

 

 

Number

 

 

 

 

 

 

 

 

 

Set Device Key

00100001B

SET_DESCRIPTOR

Descriptor

Device

Key

Key

 

 

 

Type and Key

Index and

Descriptor

Descriptor

 

 

 

Index

Interface

Length

 

 

 

 

 

Number

 

 

 

 

 

 

 

 

 

Set Group Key

00100001B

SET_DESCRIPTOR

Descriptor

Interface

Key

Key

 

 

 

Type and Key

Number

Descriptor

Descriptor

 

 

 

Index

 

Length

 

Set Num DNTS Slots

00100001B

SET_NUM_DNTS

Interval

Interface

Zero

None

 

 

 

And Number

Number

 

 

 

 

 

 

 

 

 

 

 

of DNTS Slots

 

 

 

 

 

 

 

 

 

 

Set WUSB Cluster ID

00100001B

SET_CLUSTER_ID

Cluster ID

Interface

Zero

None

 

 

 

 

Number

 

 

Set WUSB MAS

00100001B

SET_WUSB_MAS

Zero

Interface

32

WUSB

 

 

 

 

Number

 

MAS

Set WUSB Stream

00100001B

SET_STREAM_IDX

Stream Index

Interface

Zero

None

Index

 

 

 

Number

 

 

 

 

 

 

 

 

 

WUSB Channel Stop

00100001B

WUSB_CH_STOP

WUSB

Interface

Zero

None

 

 

 

Channel Time

Number

 

 

 

 

 

Offset

 

 

 

244

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

Table 8-51. HWA Specific Request Codes

bRequest

Value

 

 

ADD_MMC_IE

20

 

 

REMOVE_MMC_IE

21

 

 

SET_NUM_DNTS

22

 

 

SET_CLUSTER_ID

23

 

 

SET_DEVICE_INFO

24

 

 

GET_TIME

25

 

 

SET_STREAM_IDX

26

 

 

SET_WUSB_MAS

27

 

 

WUSB_CH_STOP

28

 

 

Table 8-52. WUSB Channel Time Type

Channel Time Types

Value

 

 

TIME_ADJ

0

 

 

TIME_BPST

1

 

 

TIME_WUSB

2

 

 

8.5.3.1 Add MMC IE

This request is used to add an Information Element to subsequent MMCs.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

ADD_MMC_IE

Interval and

IE Handle

IE Length

IE Block

 

 

Repeat Count

and Interface

 

 

 

 

 

 

 

 

 

 

Number

 

 

 

 

 

 

 

 

Upon receipt of this request, the HWA will store the Information Element block of data internally. The upper byte of the wValue field (Interval) specifies the rate at which the HWA must include this Information Element block in an MMC. This field is expressed in milliseconds. The lower byte of wValue (Repeat Count) specifies the number of consecutive MMCs that this Information Element must be sent in during each interval. The WA operational requirements when it gets this request are given in Table 8-53.

Table 8-53. WA Add MMC IE Request Operational Requirements

Interval

Repeat Count

Operational Requirement

 

 

 

0

Number

The HWA must send this IE block in every MMC. The value in the

 

 

Repeat Count field must be ignored.

 

 

 

1-254

Number

The HWA must send this IE block every Interval period. The Repeat

 

 

Count field specifies the number of consecutive MMCs that this IE

 

 

block must be sent in per Interval.

 

 

 

255

Number

This value must be treated as an infinite period. The HWA must only

 

 

send this IE block the number of times specified in the Repeat Count

 

 

field.

245

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

The upper byte of wIndex field uniquely identifies an Information Element block. This is the handle to be used by the host software when it needs to modify or remove this IE block from subsequent MMCs. The total number of IE blocks supported by the host controller is specified by bNumMMCIEs specified in the Wire Adapter descriptor.

The lower byte of wIndex specifies the target interface number.

It is a Request Error if wIndex specifies an IE Handle that is larger than bNumMMCIEs. 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.2 Get BPST Adjustment

This request returns the current adjustment value of the BPST.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

10100001B

GET_TIME

TIME_ADJ

Interface

1

Adjustment

 

 

 

Number

 

Value

 

 

 

 

 

 

The lower byte of wIndex specifies the target interface number. The returned value gives the adjustment value in microseconds.

It is a Request Error if wValue or wLength are 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.3 Get BPST Time

This request returns the WUSB channel time at the BPST of the next super frame.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

10100001B

GET_TIME

TIME_BPST

Interface

3

WUSB

 

 

 

Number

 

Channel

 

 

 

 

 

Time

 

 

 

 

 

 

The lower byte of wIndex specifies the target interface number. The returned value gives the 24-bit WUSB channel time value at the Beacon Period Start Time (BPST) of the current MBOA MAC superframe.

It is a Request Error if wValue or wLength are 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.4 Get WUSB Time

This request returns the current WUSB channel time.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

10100001B

GET_TIME

TIME_WUSB

Interface

3

WUSB

 

 

 

Number

 

Channel

 

 

 

 

 

Time

 

 

 

 

 

 

The lower byte of wIndex specifies the target interface number. The returned value gives the current 24-bit WUSB channel time value.

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

246

Chapter 8

 

Wire Adapter

Wireless Universal Serial Bus Specification, Revision 1.0

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.5 Remove MMC IE

This request is used to remove an Information Element from subsequent MMCs.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

REMOVE_MMC_IE

Zero

IE Handle and

Zero

None

 

 

 

Interface

 

 

 

 

 

Number

 

 

 

 

 

 

 

 

Upon receipt of this request, the HWA will erase the Information Element block of data that is uniquely identified by the IE Handle. The HWA must stop sending this Information Element block in subsequent MMCs. If the IE Handle does not exist, then the HWA is still required to complete the request successfully; however it must not remove any Information Element blocks that were added by any previous Add MMC IE commands.

The upper byte of the wIndex field (IE Handle) uniquely identifies an Information Element block. The total number of IE blocks supported by the HWA is specified by bNumMMCIEs specified in the Wire Adapter descriptor.

The lower byte of wIndex specifies the target interface number.

It is a Request Error if wValue or wLength are other than as specified above or if the upper byte of wIndex species an IE Handle that is larger than bNumMMCIEs.

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.6 Set Device Encryption

This request sets the encryption type to be used when sending/receiving data to/from the device connected downstream of the HWA.

bmRequestType

bRequest

wValue

wIndex

wLength

Data

 

 

 

 

 

 

00100001B

SET_ENCRYPTION

Encryption

Device Index

Zero

None

 

 

Value

and Interface

 

 

 

 

 

Number

 

 

 

 

 

 

 

 

Encryption Value comes from one of the Encryption Type descriptors contained in the Security Descriptor returned in the configuration descriptor. A value of Zero always represents UNSECURE or no encryption. The upper byte of wIndex (Device Index) specifies the Device Index

The lower byte of wIndex specifies the target interface number.

It is a Request Error if Encryption Value does not represent a valid encryption type. It is a Request Error to attempt to set WIRED as the current encryption type.

It is a Request Error if wLength 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.

247

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