</>EmbeddedInterview

What are the USB transfer types?

MediumCommunication Protocols

Short answer: USB has four transfer types. Control transfers configure and query devices on endpoint 0 (enumeration, standard and class requests) with guaranteed delivery. Bulk transfers move large amounts of data with error checking and retries but no timing guarantee (mass storage, printers, CDC serial data). Interrupt transfers carry small, periodic data with a guaranteed maximum polling interval (keyboards, mice, HID, status). Isochronous transfers reserve bandwidth with fixed timing but no retransmission (audio, video).

Type Guaranteed delivery Guaranteed timing Max packet (FS / HS) Typical use
Control yes best effort (reserved share) 64 / 64 enumeration, configuration
Bulk yes (retries) no 64 / 512 storage, serial data, network
Interrupt yes (retries) bounded polling interval 64 / 1024 HID, sensors, notifications
Isochronous no yes 1023 / 1024 audio, video streaming

Key facts

  • The host initiates every transfer; a device can only answer when polled. "Interrupt" transfers are therefore polled, not true interrupts.
  • Endpoints: a device has endpoint 0 (control, bidirectional) plus up to 15 IN and 15 OUT endpoints. IN = device to host.
  • Classes standardise drivers: HID, CDC-ACM (virtual serial port), MSC (mass storage), UAC (audio), UVC (video), DFU (firmware update). Using a standard class means no custom host driver.
  • Speeds: low (1.5 Mbps), full (12 Mbps), high (480 Mbps), SuperSpeed (5 Gbps+); most MCUs have full-speed device controllers, some high-speed with an external or internal ULPI PHY.

Embedded stacks: TinyUSB, vendor stacks (STM32 USB device library), Zephyr USB, and on Linux the gadget framework (configfs).