USB On-The-Go (OTG) allows two USB devices to "talk" to each other.
An example application which uses the API is provided with any shipment or eval-software including emUSB-Host-OTG. This example starts the OTG stack and waits until a valid session is detected. As soon as a valid session is detected, the ID-pin state is checked to detect whether emUSB-Device or emUSB-Host shall then be initialized. For emUSB-Device a simple mouse sample is used. On emUSB-Host side an MSD-sample is used that detects a USB memory stick and shows information about the detected stick.
|ROM usage||RAM usage|
|App. 350 Byte + (emUSB-Host core incl. driver + emUSB-Device core incl. driver)||4 Byte + (emUSB-Host core incl. driver + emUSB-Device core incl. driver)|