AT32F425
Series Reference Manual
2022.03.30
Page 407
Ver 2.01
endpoint 7.
20.6.5.7 OTGFS all endpoints interrupt mask register
(OTGFS_DAINTMSK)
When an event occurs on a device endpoint, the device endpoint interrupt mask register works with the
device endpoint interrupt register to interrupt the application. However, the device all endpoints interrupt
register corresponding to this interrupt is still set.
Bit
Register
Reset value
Type
Description
Bit 31: 24 Reserved
0x0000
resd
Kept at its defaut value.
Bit 23: 16 OUTEPTMSK
0x0000
rw
OUT EP interrupt mask bits
One OUT endpoint per bit. Bit 16 for OUT endpoint 0, bit
18 for OUT endpoint 2.
0: Interrupt masked
1: Interrupt unmasked
Bit 15: 8
Reserved
0x0000
resd
Kept at its defaut value.
Bit 7: 0
INEPTMSK
0x0000
rw
IN EP interrupt mask bits
One IN endpoint per bit. Bit 0 for IN endpoint 0, bit 7 for IN
endpoint 7.
0: Interrupt masked
1: Interrupt unmasked
20.6.5.8 OTGFS device IN endpoint FIFO empty interrupt mask
register (OTGFS_DIEPEMPMSK)
This register works witH the TXFE_OTGFS_DIEPINTx register to generate an interrupt.
Bit
Register
Reset value
Type
Description
Bit 31: 8
Reserved
0x0000
resd
Kept at its defaut value.
Bit 7: 0
INEPTXFEMSK
0x0000
rw
IN endpoint Tx FIFO empty interrupt mask bits
These bits serve as mask bits for the device IN endpoint
interrupt register.
A transmit FIFO empty interrupt bit per IN endpint. Bit 0 for
IN endpoint 0, bit 7 for IN endpoint 7.
0: Interrupt masked
1: Interrupt unmasked
20.6.5.9 OTGFS device control IN endpoint 0 control register
(OTGFS_DIEPCTL0)
This section describes the control IN endpoint 0 control register. Nonzero control endpoint uses registers
for endpoints 1-7.
Bit
Register
Reset value
Type
Description
Bit 31
EPTENA
0x0
rw1s
Endpoint enable
–
The application sets this bit to start data transmission on
the endpoint 0.
–
The controller clears this bit before generating the
following interrupts:
–
Endpoint disabled
–
Transfer completed.
Bit 30
EPTDIS
0x0
ro
Endpoint disable
The application sets this bit to stop data transmission on
an endpoint. The application must wait for the endpoint
disabled interrupt before treating the endpoint as disabled.
The controller clears this bit before setting the endpoint
disabled interrupt. The application must set this bit only
when the endpoint is enabled.
Bit 29: 28 Reserved
0x0
resd
Kept at its default value.
Bit 27
SNAK
0x0
wo
Set NAK
A write to this bit sets the NAK bit of the endpoint. The
application can use this bit to control the transmission of
NAK handshakes on the endpoint. The controller also sets
this bit when a SETUP data packet is received on the
endpoint.
Bit 26
CNAK
0x0
wo
Clear NAK