![ARTERY AT32F435 Series Reference Manual Download Page 484](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592484.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 484
Rev 2.03
21.6.5.6 OTGFS device all endpoints interrupt mask register
(OTGFS_DAINT)
When an event occurs on an endpoint, The IN/OUT endpoint interrupt bits in the OTGS_DAINT register
can be used to interrupt the application. There is one interrupt pit per endpoint, up to 8 interrupt bits for
OUT endpoints and 8 bits for IN endpoints. For a bidirectional endpoint, the corresponding IN and OUT
interrupt bits are used at the same time. The corresponding bits in this register are set and cleared when
the application sets and clears the bits in the corresponding device endpoint-x interrupt register.
Bit
Register
Reset value
Type
Description
Bit 31: 24 Reserved
0x0000
resd
Kept at its default value.
Bit 23: 16 OUTEPTINT
0x0000
ro
OUT endpoint interrupt bits
One OUT endpoint per bit. Bit 16 for OUT endpoint 0, bit
18 for OUT endpoint 2.
Bit 15: 8
Reserved
0x0000
resd
Kept at its default value.
Bit 7: 0
INEPTINT
0x0000
ro
IN endpoint interrupt bits
One IN endpoint per bit. Bit 0 for IN endpoint 0, bit 7 for
IN endpoint 7.
21.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 default 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 default 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
21.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 default 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 endpoint. Bit 0
for IN endpoint 0, bit 7 for IN endpoint 7.
0: Interrupt masked
1: Interrupt unmasked
21.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: