stm32 /stm32h7rs /STM32H7S /OTG_HS /OTG_HCTSIZ6

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as OTG_HCTSIZ6

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0XFRSIZ0PKTCNT0 (B_0x0)DPID 0 (DOPNG)DOPNG

DPID=B_0x0

Description

OTG host channel 6 transfer size register

Fields

XFRSIZ

Transfer size For an OUT, this field is the number of data bytes the host sends during the transfer. For an IN, this field is the buffer size that the application has reserved for the transfer. The application is expected to program this field as an integer multiple of the maximum packet size for IN transactions (periodic and non-periodic).

PKTCNT

Packet count This field is programmed by the application with the expected number of packets to be transmitted (OUT) or received (IN). The host decrements this count on every successful transmission or reception of an OUT/IN packet. Once this count reaches zero, the application is interrupted to indicate normal completion.

DPID

Data PID The application programs this field with the type of PID to use for the initial transaction. The host maintains this field for the rest of the transfer.

0 (B_0x0): DATA0

1 (B_0x1): DATA2

2 (B_0x2): DATA1

3 (B_0x3): SETUP (control) / MDATA (non-control)

DOPNG

Do Ping This bit is used only for OUT transfers. Setting this field to 1 directs the host to do PING protocol. Note: Do not set this bit for IN transfers. If this bit is set for IN transfers, it disables the channel.

Links

()