9397 750 XXXXX
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
226
Philips Semiconductors
UM10139
Volume 1
Chapter 14: USB Device Controller
14.9.7 Get Device Status (Command: 0xFE, Data: read 1 byte)
The Get Device Status command returns the Device Status Register. Reading the device
status returns 1 byte of data. The bit field definition is same as the Set Device Status
Register as shown in
14.9.8 Get Error Code (Command: 0xFF, Data: read 1 byte)
Different error conditions can arise inside the protocol engine. The Get Error Code
command returns the error code which last occurred. The 4 least significant bits form the
error code.
3
SUS_CH
Suspend (SUS) bit change indicator. The SUS bit can toggle
because:
•
The device goes into the suspended state.
•
The device is disconnected.
•
The device receives resume signalling on its upstream port.
•
The Suspend Change bit is reset after the register has been
read.
0
0
SUS bit not changed.
1
SUS bit changed. At the same time a DEV_STAT interrupt is
generated.
4
RST
Bus Reset bit. On a bus reset, the device will automatically go to
the default state. In the default state:
•
Device is unconfigured.
•
Will respond to address 0.
•
Control endpoint will be in the Stalled state.
•
All endpoints are enabled.
•
Data toggling is reset for all endpoints.
•
All buffers are cleared.
•
There is no change to the endpoint interrupt status.
•
DEV_STAT interrupt is generated.
0
0
This bit is cleared when read.
1
This bit is set when the device receives a bus reset.
7:5
-
Reserved, user software should not write ones to reserved bits.
The value read from a reserved bit is not defined.
NA
Table 229: Set Device Status Register bit description
Bit
Symbol
Value
Description
Reset
value