AT32WB415
Series Reference Manual
2022.04.13
Page 349
Ver 2.00
must write 1 to clear this bit.
Bit 2
Reserved
0x0
resd
Kept at its default value.
Bit 1
CHHLTD
0x0
rw1c
Channel hated
Indicates that the transfer completed abnorammly either
because of any transfer error or in response to a disable
request by the applicaton.
Bit 0
XFERC
0x0
rw1c
Transfer cmpleted
Transfer completed normally, without any error. This bit
can only be set by the controller. The application must write
1 to clear this bit.
20.6.4.10
OTGFS host channelx interrupt mask register
(OTGFS_HCINTMSKx) (x = 0...8, where x= channel number)
This register is used to mask the channels described in the previous section.
Bit
Register
Reset value
Type
Description
Bit 31: 11 Reserved
0x000000
resd
Kept at its default value.
Bit 10
DTGLERRMSK
0x0
rw
Data toggle error mask
Bit 9
FRMOVRUNMSK
0x0
rw
Frame overrun mask
Bit 8
BBLERRMSK
0x0
rw
Babble error mask
Bit 7
XACTERRMSK
0x0
rw
Transaction error mask
Bit 6
NYETMSK
0x0
rw
NYET response received interrupt mask
Bit 5
ACKMSK
0x0
rw
ACK response received/transmitted interrupt mask
Bit 4
NAKMSK
0x0
rw
NAK response received interrupt mask
Bit 3
STALLMSK
0x0
rw
STALL response received interrupt mask
Bit 2
Reserved
0x0
resd
Kept at its default value.
Bit 1
CHHLTDMSK
0x0
rw
Channel halted mask
Bit 0
XFERCMSK
0x0
rw
Transfer completed mask
20.6.4.11
OTGFS host channelx transfer size register
(OTGFS_HCTSIZx) (x = 0...8, where x= channel number)
Bit
Register
Reset value
Type
Description
Bit 31
Reserved
0x0
resd
Kept at its default value.
Bit 30: 29 PID
0x0
rw
PID (Pid)
The application programs this field with the type of PID
used for the initial transfer. The host controls this filed for
the rest of transfers.
00: DATA0
01: DATA2
10: DATA1
11: MDATA(non-control)/SETUP(control)
Bit 28: 19 PKTCNT
0x000
rw
Packet count
The application programs this field with the expected
number of packets to be transmited or received. The host
decrements the packet count on every successful
transmission or reception of an OUT/IN packet. When this
count reaches zero, the application is interrupted to
indicate normal completion of the transfer.
Bit 18: 0
XFERSIZE
0x00000
rw
Transfer size
For an OUT transfer, this field indicates the number of data
bytes the host sends during a transfer.
For an IN transfer, this field indicates the buffer size that
the application has reserved for the transfer.
For an IN transfer (periodic and non-periodic), the
application must program this field as an integer multiple
of the maximum packet size.
20.6.5 Device-mode registers
These registers are applicable in device mode only. They are not supported in host mode due to unknown
access results. Some of the registers affect all the endpoints, while some affect only one endpoint.
20.6.5.1 OTGFS device configure register (OTGFS_DCFG)