AT32WB415
Series Reference Manual
2022.04.13
Page 331
Ver 2.00
20.6.3.2 OTGFS interrupt status control register ( OTGFS_GOTGINT)
The application reads this register to know about which kind of OTG interrupt is generated, and writes
this register to clear the OTG interrupt.
Bit
Register
Reset value
Type
Description
Bit 31: 3
Reserved
0x0000
resd
Kept at its default value.
Bit 2
SESENDDET
0x0
rw1c
Available in both host and device modes
Session end detected
The controller sets this bit when a Bvalid (Vbus) signal is
disconnected. This register can only be set by hardware.
Writing 1 by software clears this bit.
Bit 1: 0
Reserved
0x0000
resd
Kept at its default value.
20.6.3.3 OTGFS AHB configuration register (OTGFS_GAHBCFG)
This register is used to configure the controller after power-on or mode change. This register mainly
contains AHB-related parameters. Do not change this register after the initial configuration. The
application must configure this register before starting transmission on either the AHB or USB.
Bit
Register
Reset value
Type
Description
Bit 31: 9
Reserved
0x000000
resd
Kept at its default value.
Bit 8
PTXFEMPLVL
0x0
rw
Accesible in host mode only
Periodic TxFIFO empty level
It indicates when the periodic TxFIFO empty interrupt bit in
the GINTSTS register is triggered.
0: PTXFEMP (GINTSTS) interrupt indicates that the
periodic TxFIFO is half empty
1: PTXFEMP (GINTSTS) interrupt indicates that the
periodic TxFIFO is fully empty
Bit 7
NPTXFEMPLVL
0x0
rw
Accesible in both host mode and device modes
Non-Periodic TxFIFO empty level
In host mode, this bit indicates when the non-periodic
TxFIFO empty interrupt (NPTXFEMP in GINTSTS) is
triggered.
In device mode, this bit indicates when the IN endpoint
TxFIFO empty interrupt (TXFEMP bit in DIEPINTn) is
triggered.
0: The TxFEMP (in DIEPINTn) interrupt indicates that the
IN endpoint TxFIFO is half empty
1: The TxFEMP (in DIEPINTn) interrupt indicates that the
IN endpoint TxFIFO is fully empty
Bit 6: 1
Reserved
0x00
resd
Kept at its default value.
Bit 0
GLBINTMSK
0x0
rw
Accesible in both host mode and device modes
Global interrupt mask
The application uses this bit to mask or unmask the
interrupts sent by the interrupt line to itself.
0: Mask the interrupts sent to the application
1: Unmask the interrupts sent to the application