Skip to main content
  • Products
  • Evaluate our Software
  • Downloads
  • Free Utilities
  • Purchase
  • Support
  • About Us
  • Blog
  • Forum
  • Search
    • Contact Us
    • Forum
    • Knowledge Base
    • Web Shop
    • Newsletter
    • RSS
  •   Jobs
  •   Videos
  •   Blog
  •   Sustainability
  • emUSB-Host
  • On-The-Go
  • Technology
  • Add-Ons
  • Accessories

On-The-Go

Contact us
Downloads
Documentation
SEGGER emUSB-Host
  1. 1.Overview
    1. 1.1.Key features
  2. 2.Example code included
  3. 3.Resource usage by this class

Overview

USB On-The-Go (OTG) introduces the dual-role device, meaning a device capable of functioning as either host or peripheral. USB OTG retains the standard USB host/peripheral model, in which a single host talks to USB peripherals. emUSB OTG offers a simple interface in order to detect the role of the USB OTG controller.

Key features

  • Detection of the USB role of the device
  • Virtually any USB OTG transceiver can be used
  • Simple interface to OTG-hardware
  • Seamless integration with emUSB-Host and emUSB-Device

Example code included

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.

printer camera

USB On-The-Go (OTG) allows two USB devices to "talk" to each other.

Resource usage by this class

ROM usageRAM 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)

Comparison of all add-ons for emUSB-Host

Headquarters

SEGGER Microcontroller GmbH

Ecolab-Allee 5
40789 Monheim am Rhein, Germany
info@segger.com
Tel.: +49-2173-99312-0
Fax: +49-2173-99312-28

Locations

USA: SEGGER Microcontroller Systems LLC

Boston area
101 Suffolk Lane
Gardner, MA 01440, USA
us-east@segger.com
Tel.: +1-978-874-0299
Fax: +1-978-874-0599

Silicon Valley
Milpitas, CA 95035, USA
us-west@segger.com
Tel.: +1-408-767-4068

China: SEGGER Microcontroller China Co., Ltd.

Room 218, Block A, Dahongqiaoguoji
No. 133 Xiulian Road
Minhang District, Shanghai 201199, China
china@segger.com
Tel.: +86-133-619-907-60

ISO 9001 certified

ISO 9001

30+ years of experience

First-class embedded software tools since 1992
  • Imprint
  • Disclaimer
  • Privacy Policy
© 2025 SEGGER - All rights reserved.