beautypg.com

5 get port status, Isp1122, Philips semiconductors – Philips Universal Serial Bus ISP1122 User Manual

Page 19

background image

Philips Semiconductors

ISP1122

USB stand-alone hub

Product specification

Rev. 03 — 29 March 2000

19 of 48

9397 750 07002

© Philips Electronics N.V. 2000. All rights reserved.

9.4.5

Get port status

The hub returns 4 bytes. The first 2 bytes contain the port status bits (wPortStatus,
see

Table 20

). The last 2 bytes hold the port status change bits (wPortChange, see

Table 21

).

Table 20: Get port status response (wPortStatus)

Bit #

Function

Value

Description

0

current connect status

0

no device present

1

device present on this port

1

port enabled/disabled

0

port disabled

1

port enabled

2

suspend

0

port not suspended

1

port suspended

3

overcurrent indicator

0

no overcurrent condition

1

overcurrent condition detected

4

reset

0

reset not asserted

1

reset asserted

5 to 7

reserved

0

-

8

port power

0

port powered off

1

port power on

9

low-speed device attached

0

full-speed device attached

1

low-speed device attached

10 to 15

reserved

0

-

Table 21: Get port status response (wPortChange)

Bit #

Function

Value

Description

0

connect status change

0

no change in current connect status

1

current connect status changed

1

port enabled/disabled
change

0

no port error

1

port disabled by a port error

2

suspend change

0

no change in suspend status

1

resume complete

3

overcurrent indicator change 0

no change in overcurrent status

1

overcurrent indicator changed

4

reset change

0

no change in reset status

1

reset complete

5 to 15

reserved

0

-