GRXSTSP

         Receive Status Read /Pop Register
      
Module Instance Base Address Register Address
i_usbotg_0_DWC_otg_intreg 0xFFB00000 0xFFB00020
i_usbotg_1_DWC_otg_intreg 0xFFB40000 0xFFB40020

Size: 32

Offset: 0x20

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

GRXSTSP 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
0x0 DATA0
0x1 DATA2
0x2 DATA1
0x3 MDATA
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.
Value Description
0xa Channel or EndPoint 10
0xb Channel or EndPoint 11
0xc Channel or EndPoint 12
0xd Channel or EndPoint 13
0xe Channel or EndPoint 14
0xf Channel or EndPoint 15
0x0 Channel or EndPoint 0
0x1 Channel or EndPoint 1
0x2 Channel or EndPoint 2
0x3 Channel or EndPoint 3
0x4 Channel or EndPoint 4
0x5 Channel or EndPoint 5
0x6 Channel or EndPoint 6
0x7 Channel or EndPoint 7
0x8 Channel or EndPoint 8
0x9 Channel or EndPoint 9
RO 0x0