AT32F425
Series Reference Manual
2022.03.30
Page 393
Ver 2.01
Bit 16
Reserved
0x0
resd
Kept at its default value.
Bit 15
EOPFMSK
0x0
rw
Accesible in device mode only
End of periodic frame interrupt mask
Bit 14
ISOOUTDROPMSK 0x0
rw
Device only isochronous OUT packet dropped interrupt
mask
Bit 13
ENUMDONEMSK
0x0
rw
Accesible in device mode only
Enumeration done mask
Bit 12
USBRSTMSK
0x0
rw
Accesible in device mode only
USB Reset mask
Bit 11
USBSUSPMSK
0x0
rw
Accesible in device mode only
USB suspend interrupt mask
Bit 10
ERLYSUSPMSK
0x0
rw
Accesible in device mode only
Early suspend interrupt mask
Bit 9: 8
Reserved
0x0
resd
Kept at its default value.
Bit 7
GOUTNAKEFFMSK 0x0
rw
Accesible in device mode only
Global OUT NAK effective mask
Bit 6
GINNAKEFFMSK
0x0
rw
Accesible in device mode only
Global Non-periodic IN NAK effective mask
Bit 5
NPTXFEMPMSK
0x0
rw
Accesible in both host and device modes
Non-periodic TxFIFO empty mask
Bit 4
RXFLVLMSK
0x0
rw
Accesible in both host and device modes
Receive FIFO Non-empty mask
Bit 3
SOFMSK
0x0
rw
Accesible in both host and device modes
Start of Frame mask
Bit 2
OTGINTMSK
0x0
rw
Accesible in both host and device modes
OTG interrupt mask
Bit 1
MODEMISMSK
0x0
rw
Accesible in both host and device modes
Mode mismatch interrupt mask
Bit 0
Reserved
0x0
resd
Kept at its default value.
20.6.3.8 OTGFS receive status debug read/OTG status read and POP
registers (OTGFS_GRXSTSR / OTGFS_GRXSTSP)
A read to the Receive Status Debug Read register returns the data of the top of the Receive FIFO. A
read to the Receive Status Read and Pop register pops the data of the top of the Receive FIFO.
The receive status contents are interpreted differently in host and device modes. Then controller ignores
the receive status pop/read when the receive FIFO is empty and returns the value of 0x0000 0000. The
application can only pop the receive status FIFO when the receive FIFO non-empty bit of the Core
Interrupt register register is set.
Host mode:
Bit
Register
Reset value
Type
Description
Bit 31: 21 Reserved
0x000
resd
Kept at its defaut value.
Bit 20: 17 PKTSTS
0x0
ro
Packet status
Indicates the status of the received data packet.
0010: IN data packet received
0011: IN transfer completed (triggers an interrupt)
0101: Data toggle error (triggers an interrupt)
0111: Channel halted (triggers an interrupt)
Others: Reserved
Reset value: 0
Bit 16: 15 DPID
0x0
ro
Data PID
Indicates the data PID of the received data packet.
00: DATA0
10: DATA1
01: DATA2
11: MDATA
Reset value: 0
Bit 14: 4
BCNT
0x000
ro
Byte count
Indicates the byte count of the received IN data packet.
Bit 3: 0
CHNUM
0x0
ro
Channel number
Indicates the channel number to which the currently
received data packet belongs.