GRXSTSR

         Receive Status Debug Read Register
      
Module Instance Base Address Register Address
i_usbotg_0_DWC_otg_intreg 0xFFB00000 0xFFB0001C
i_usbotg_1_DWC_otg_intreg 0xFFB40000 0xFFB4001C

Size: 32

Offset: 0x1C

Access: RO

Important: The value of a reserved bit must be maintained in software. When you modify registers containing reserved bit fields, you must use a read-modify-write operation to preserve state and prevent indeterminate system behavior.
Bit Fields
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16

Reserved

RESERVED

RO 0x0

FN

RO 0x0

PktSts

RO 0x0

DPID

RO 0x0

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

DPID

RO 0x0

BCnt

RO 0x0

ChNum

RO 0x0

GRXSTSR Fields

Bit Name Description Access Reset
30:25 RESERVED
RESERVED
RO 0x0
24:21 FN
Mode: Device only
Frame Number (FN)
This is the least significant 4 bits of the (micro)Frame number in
which the packet is received on the USB. This field is supported
only when isochronous OUT endpoints are supported.
RO 0x0
20:17 PktSts

Mode: Host only
Packet Status (PktSts)
Indicates the status of the received packet
 4'b0010: IN data packet received
 4'b0011: IN transfer completed (triggers an interrupt)
 4'b0101: Data toggle error (triggers an interrupt)
 4'b0111: Channel halted (triggers an interrupt)
 Others: Reserved
 
 Mode: Device only
 Packet Status (PktSts)
Indicates the status of the received packet
 4'b0001: Global OUT NAK (triggers an interrupt)
 4'b0010: OUT data packet received
 4'b0011: OUT transfer completed (triggers an interrupt)
 4'b0100: SETUP transaction completed (triggers an
interrupt)
 4'b0110: SETUP data packet received
 Others: Reserved
Value Description
0x1 Global OUT NAK in DEVICE mode (triggers an interrupt)
0x2 IN data packet received in HOST mode and OUT data packet received in DEVICE mode
0x3 IN or OUT transfer completed in both HOST and DEVICE mode (triggers an interrupt)
0x4 SETUP transaction completed in DEVICE mode (triggers an interrupt)
0x5 Data toggle error (triggers an interrupt) in HOST mode
0x6 SETUP data packet received in DEVICE mode
0x7 Channel halted in HOST mode (triggers an interrupt)
RO 0x0
16:15 DPID

Mode: Host only
Data PID (DPID)
Indicates the Data PID of the received packet
 2'b00: DATA0
 2'b10: DATA1
 2'b01: DATA2
 2'b11: MDATA
 
Mode: Device only
Data PID (DPID)
Indicates the Data PID of the received OUT data packet
 2'b00: DATA0
 2'b10: DATA1
 2'b01: DATA2
 2'b11: MDATA
Value Description
0x0 DATA0
0x1 DATA2
0x2 DATA1
0x3 MDATA
RO 0x0
14:4 BCnt

Mode: Host only
Byte Count (BCnt)
Indicates the byte count of the received IN data packet.

Mode: Device only
Byte Count (BCnt)
Indicates the byte count of the received data packet.
RO 0x0
3:0 ChNum

Mode: Host only
Channel Number (ChNum)
Indicates the channel number to which the current received
packet belongs.

Mode: Device only
Endpoint Number (EPNum)
Indicates the endpoint number to which the current received
packet belongs.
RO 0x0