DPID=B_0x0
OTG host channel 2 transfer size register
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. |