Must be kept at reset value
Data PID
Software should write this field before the transfer starts. For OUT transfers, this field
controls the Data PID of the first transmitted packet. For IN transfers, this field controls
the expected Data PID of the first received packet, and DTERR will be triggered if the
Data PID doesn’t match. After the transfer starts, USBFS changes and toggles this field
automatically following the USB protocol.
00: DATA0
10: DATA1
11: SETUP (For control transfer only)
01: Reserved
Packet count
The number of data packets desired to be transmitted (OUT) or received (IN) in a
transfer.
Software should program this field before the channel is enabled. After the transfer starts,
this field is decreased automatically by USBFS after each successful data packet
transmission.
Transfer length
The total data byte number of a transfer.
For OUT transfers, this field is the total data bytes of all the data packets desired to be
transmitted in an OUT transfer. Software should program this field before the channel is
enabled. When software successfully writes a packet into the channel’s data TxFIFO, this
field is decreased by the byte size of the packet.
For IN transfer each time software reads out a packet from the RxFIFO, this field is
decreased by the byte size of the packet.
23.7.3. Device control and status registers
Device configuration register (USBFS_DCFG)
Address offset: 0x0800
Reset value: 0x0000 0000
This register configures the core in device mode after power on or after certain control