![ARTERY AT32WB415 Series Reference Manual Download Page 348](http://html1.mh-extra.com/html/artery/at32wb415-series/at32wb415-series_reference-manual_2977599348.webp)
AT32WB415
Series Reference Manual
2022.04.13
Page 348
Ver 2.00
This field must be set to at least 0x01.
Bit 19: 18 EPTYPE
0x0
rw
Endpoint type
Indicates the transfer type selected.
00: Control transfer
01: Synchronous transfer
10: Bulk transfer
11: Interrupt transfer
Bit 17
LSPDDEV
0x0
rw
Low-speed device
The application sets this bit to indicate that this channel is
communicating to a low-speed device.
Bit 16
Reserved
0x0
resd
Kept at its default value.
Bit 15
EPTDIR
0x0
rw
Endpoint direction
Indicates whether the transfer is in IN or OUT.
0: OUT
1: IN
Bit 14: 11 EPTNUM
0x0
rw
Endpoint number
Indicates the endpoint number on the device (serving as
data source or receiver)
Bit 10: 0
MPS
0x000
rw
Maximum packet size
Indicates the maximum packet size of the corresponding
port.
20.6.4.9 OTGFS host channelx interrupt register ( OTGFS_HCINTx) (x
= 0...8, where x= channel number)
This register contains the status of a channel related to USB and AHB events, as shown in
is clocked by the PCLK, and uses system reset as its reset signal. The comparator still works
in Deepsleep mode, which can be used as an EXINT interrupt source to wakeup device from low-power
mode.
. The application must read this register when the host channels interrupt bit is set in the controller
interrupt register. Before reading this register, the application must read the host all channels interrupt
register to get the exact channel number ofr the host channel-n interrupt register. The application must
clear the corresponding bit in this register to clear the corresponding bits in the OTGFS_HAIN and
OTGFS_GINTSTS registers.
Bit
Register
Reset value
Type
Description
Bit 31: 11 Reserved
0x000000
resd
Kept at its default value.
Bit 10
DTGLERR
0x0
rw1c
Data toggle error
This bit can only be set by the controller. The application
must write 1 to clear this bit.
Bit 9
FRMOVRUN
0x0
rw1c
Frame overrun
This bit can only be set by the controller. The application
must write 1 to clear this bit.
Bit 8
BBLERR
0x0
rw1c
Babble error
This bit can only be set by the controller. The application
must write 1 to clear this bit.
Bit 7
XACTERR
0x0
rw1c
Transaction error
Indicates one of the following errors occurred on the USB
bus:
CRC check failure
Timeout
Bit stuffing error
EOP error
This bit can only be set by the controller. The application
must write 1 to clear this bit.
Bit 6
Reserved
0x0
resd
Kept at its default value.
Bit 5
ACK
0x0
rw1c
ACK response received/Transmitted interrupt
This bit can only be set by the controller. The application
must write 1 to clear this bit.
Bit 4
NAK
0x0
rw1c
NAK rsponse rceived iterrupt
This bit can only be set by the controller. The application
must write 1 to clear this bit.
Bit 3
STALL
0x0
rw1c
STALL rsponse reeived iterrupt
This bit can only be set by the controller. The application