English
Language : 

RM0385 Datasheet, PDF (1408/1644 Pages) STMicroelectronics – This reference manual targets application developers
USB on-the-go full-speed/high-speed (OTG_FS/OTG_HS)
RM0385
Operational model
The application must initialize a channel before communicating to the connected device.
This section explains the sequence of operation to be performed for different types of USB
transactions.
• Writing the transmit FIFO
The OTG_FS/OTG_HS host automatically writes an entry (OUT request) to the
periodic/non-periodic request queue, along with the last DWORD write of a packet. The
application must ensure that at least one free space is available in the periodic/non-
periodic request queue before starting to write to the transmit FIFO. The application
must always write to the transmit FIFO in DWORDs. If the packet size is non-DWORD
aligned, the application must use padding. The OTG_FS/OTG_HS host determines the
actual packet size based on the programmed maximum packet size and transfer size.
Figure 444. Transmit FIFO write task
^ƚĂƌƚ
5HDG27*B+37;67627*B+137;676
UHJLVWHUVIRUDYDLODEOH),)2DQGTXHXH
VSDFHV
:DLWIRU137;)(37;)(LQWHUUXSWLQ
27*B*,17676
Ï­DW^
1R Žƌ>W^&/&KƐƉĂĐĞ
ĂǀĂŝůĂďůĞ͍
<HV
<HV
:ULWHSDFNHW
GDWDWRWUDQVPLW
),)2
DŽƌĞ
ƉĂĐŬĞƚƐƚŽ
ƐĞŶĚ͍
1R
0360D[LPXPSDFNHWVL]H
/36/DVWSDFNHWVL]H
ŽŶĞ
ĂŝϭϱϲϳϯĐ
• Reading the receive FIFO
The application must ignore all packet statuses other than IN data packet (bx0010).
1408/1644
DocID026670 Rev 1