Introducing a new way to review your PRs.

Read the announcement

hathach / tinyusb

An open source cross-platform USB stack for embedded system

View on GitHub

18 documents · Updated Nov 23, 2026

docs / device-application-examples

Device application examples

Device application examples show how a board presents USB functions to a host. They connect a USB class or composite-device use case to descriptors, application data, and a board build. Use this page with Application examples, Host, dual-role, and Type-C examples, USB device stack, and USB class drivers.

Device example model

Each example starts with a host-visible USB use case. Its configuration selects the supported functions, descriptors describe those functions during enumeration, and the application supplies the data or events that the host uses. The board build then shows that the selected USB shape fits a real controller and runtime.

This diagram shows how a device use case becomes a host-visible function on a selected board.

flowchart LR
    A[USB use case] --> B[Class configuration]
    B --> C[Device descriptors]
    C --> D[Board and runtime build]
    D --> E[Host enumeration]
    E --> F[Application data or events]

Example lifecycle

An example joins application behavior, USB descriptors, and class or buffer capacity. The build selects the board and runtime model that provide the controller, memory, and scheduling support. The application then supplies a simple data source or event path, such as generated media, HID reports, serial data, storage callbacks, or network packets.

The video examples use generated color bars to exercise the USB video path without a camera. video_capture can provide a buffered YUY2 frame, fixed MJPEG frames, or a bufferless YUY2 payload. video_capture_2ch exposes two streams with separate pacing and frame state, using YUY2 for one stream and MJPEG for the other.

References: examples/…/CMakeLists.txt• L8-46 examples/…/CMakeLists.txt• L22-36 examples/…/main.c• L114-176 examples/…/main.c• L60-84 examples/…/main.c• L128-155 examples/…/main.c• L233-345 examples/…/main.c• L117-225

USB class scenarios

The examples isolate different host-facing USB contracts. Focused examples are useful when a class or board change must be understood without the extra interfaces and resource pressure of a composite device.

ScenarioRepresentative examplesMain stack feature exercised
Serial and controlcdc_dual_ports, webusb_serial, usbtmcVirtual serial links, browser access, or instrument-style control
Human interfacehid_boot_interface, hid_multiple_interface, hid_composite, hid_generic_inoutBoot protocol, several HID interfaces, report IDs, or raw reports
Audioaudio_test, audio_test_multi_rate, audio_4_channel_mic, uac2_headset, uac2_speaker_fbMicrophone and speaker streams, rates, channels, and feedback
Storage and file transfermsc_dual_lun, mtp, dfu, dfu_runtimeLogical media, object transfer, firmware transfer, and DFU signaling
Music and mediamidi_test, midi2_device, video_capture, video_capture_2chMIDI transport and one or more video streams
Network and specialized peripheralsnet_lwip_webserver, printer_to_cdcUSB networking with host network services or data exchange between peripheral classes

The scenarios also cover different transfer needs. HID and CDC focus on small events or streams. Audio and video focus on time-sensitive data. Storage and transfer tests focus on sustained bulk or control traffic. USB device stack describes how these class contracts fit into the device path.

References: examples/…/main.c• L207-221 examples/…/main.c• L144-169 examples/…/main.c• L62-105 examples/…/main.c• L162-218 examples/…/main.c• L233-345 examples/…/main.c• L57-75 examples/…/main.c• L26-36

Instrument control behavior

The usbtmc example represents a USB Test and Measurement Class (USBTMC) instrument. It presents one instrument interface with bulk command and response traffic, plus an optional interrupt path for status notifications. Its descriptor has full-speed and high-speed forms so the same example can exercise controller endpoint limits and speed-specific transfer sizes.

The application accepts instrument commands and provides a standard identification response. It also reports USB488 capabilities such as SCPI and trigger support. Delayed replies, message-available status, service requests, and clear or abort operations give host tools a path to test normal command exchange and recovery after an interrupted transfer.

This sequence shows the host command path and the control path used to recover or clear a pending response.

sequenceDiagram
    participant H as Host instrument client
    participant D as USBTMC device
    H->>D: Send command
    D-->>D: Prepare response and status
    H->>D: Request response
    D-->>H: Return instrument data
    H->>D: Clear or abort pending transfer
    D-->>H: Confirm cleared state

References: examples/…/usb_descriptors.c• L73-109 examples/…/usb_descriptors.c• L124-200 examples/…/usbtmc_app.c• L33-68 examples/…/usbtmc_app.c• L75-173 examples/…/usbtmc_app.c• L175-215 examples/…/usbtmc_app.c• L259-333

Network device behavior

The net_lwip_webserver example connects a USB network function to an lwIP network interface. Most targets use CDC-NCM. Some targets use a dual RNDIS and CDC-ECM device with two configurations so the host can select its preferred driver path. The NCM build also provides the Windows metadata needed for automatic NCM driver setup.

The device uses 192.168.7.1, gives the host one of the 192.168.7.2 through 192.168.7.4 addresses through DHCP, and serves an HTTP page. Higher-RAM targets add an iperf TCP server and larger transfer capacity. The board button changes the link state seen by the host, while the LED shows USB mount, unmount, suspend, and resume events.

The network path keeps the Ethernet frame limit separate from the IP packet limit. The USB network MTU bounds the full frame, while the lwIP interface MTU excludes the Ethernet header. Outbound frames larger than the USB network limit are rejected, and a frame is sent only when TinyUSB has transmit capacity. Inbound frames are passed to lwIP through held USB buffers when the target supports that path; otherwise the example copies them into lwIP buffers. Receive checksum checks are disabled to reduce CPU use because the example has only the USB link. A product that forwards traffic or needs end-to-end integrity must restore those checks.

The example is a no-OS build and needs the lwIP dependency. Its CMake build uses the repository copy when available and can use a configured external copy when needed. The Make build uses the repository lwIP sources. Both build paths add the network support needed by the selected board.

References: examples/…/README.md• L3-18 examples/…/README.md• L20-30 examples/…/CMakeLists.txt• L6-17 examples/…/CMakeLists.txt• L41-82 examples/…/Makefile• L9-15 examples/…/Makefile• L20-65 examples/…/main.c• L28-39 examples/…/main.c• L117-139 examples/…/main.c• L151-178 examples/…/main.c• L257-287 examples/…/lwipopts.h• L35-85 examples/…/lwipopts.h• L93-103 examples/…/skip.txt• L1-27

Composite device scenarios

Composite examples expose more than one USB function through one device connection. They show how separate host drivers share descriptors, endpoints, application events, and board resources.

Function combinations

The most useful combinations pair a control or data path with storage or media. Each function remains visible to the host while the application can connect the functions when the product needs a bridge or shared source.

ExampleHost-visible combinationProduct pattern
cdc_mscCDC serial plus MSC diskControl channel beside removable storage
cdc_dual_portsTwo independent CDC portsSeparate serial paths over one cable
cdc_uac2CDC serial plus UAC2 audioAudio I/O with serial control
printer_to_cdcPrinter plus CDC serialData bridge between printer and serial paths
webusb_serialWebUSB vendor interface plus CDCBrowser transport beside a standard serial port
uac2_speaker_fbUAC audio plus optional HID telemetryAudio streaming with a debug channel
video_capture_2chTwo UVC video functionsTwo video streams with different formats

References: examples/…/tusb_config.h• L89-108 examples/…/main.c• L72-132 examples/…/msc_disk.c• L29-77 examples/…/tusb_config.h• L92-154 examples/…/usb_descriptors.c• L69-157 examples/…/README.md• L12-27 examples/…/README.md• L14-37 examples/…/main.c• L194-322

Alternate configurations

Some examples change the device personality before enumeration instead of exposing every function at once. dynamic_configuration reads the board button state while the host requests the device descriptor. It then presents either a CDC plus MIDI configuration or an MSC configuration, with matching device and speed descriptors. The host enumerates the selected personality; it does not choose between these two configurations.

midi2_device keeps MIDI 1.0 and MIDI 2.0 paths available through alternate settings so a capable host can use the newer transport while older hosts retain a fallback. A speed-aware audio example applies the same idea to the data format and endpoint capacity selected for the bus.

This distinction matters during descriptor review. A composite device exposes several functions together. A startup-selected configuration presents one of several device personalities. An alternate configuration or setting lets the host choose among supported modes. A speed-aware audio example applies the same idea to the data format and endpoint capacity selected for the bus.

References: examples/…/README.md• L3-21 examples/…/README.md• L3-18 examples/…/README.md• L3-13 examples/…/README.md• L3-29 examples/…/tusb_config.h• L89-105 examples/…/usb_descriptors.c• L29-35 examples/…/usb_descriptors.c• L40-91 examples/…/usb_descriptors.c• L97-113 examples/…/usb_descriptors.c• L153-198 examples/…/usb_descriptors.c• L238-280 examples/…/README.md• L17-26 examples/…/README.md• L7-10

Configuration and board builds

The USB configuration defines the device shape. The board build supplies the controller, clocks, pins, memory, and runtime support needed to make that shape work. A successful build therefore validates one class scenario for one target. It does not make the scenario portable to every board. Per-example skip.txt rules also remove MCU families and boards that cannot support the selected scenario; the network and video examples keep their own target exclusions in examples/…/skip.txt and examples/…/skip.txt.

Descriptor configurations

Class-instance counts and buffer capacity must match the interfaces and endpoints that the descriptors advertise. The examples use these settings to show real limits such as two CDC ports, two storage logical units, four audio input channels, two video streams, and speed-dependent audio formats. Their application code also uses those limits to size generated media, transfers, and network data.

Audio configurations also bind the advertised sample rates, formats, channel counts, and stream buffers to the generated data path. For example, audio_test_multi_rate accepts 32 kHz, 48 kHz, and 96 kHz input choices and changes its generated frame size with the selected format. cdc_uac2 keeps audio and CDC capacity within the limits of the selected MCU, including lower-rate or lower-width audio choices on constrained targets.

The network example selects one network driver family at a time. NCM is the default on most targets. Target rules can select ECM/RNDIS instead, and the descriptor set then exposes the host-facing network configurations for that choice. SRAM tier also changes the network buffer plan: higher-RAM targets use larger NCM transfer blocks and enable iperf, while lower-RAM targets use smaller buffers.

dynamic_configuration keeps the selected device descriptor, configuration descriptor, and high-speed qualifier or other-speed descriptor aligned with the chosen CDC/MIDI or MSC personality. Its full-speed and high-speed forms also keep endpoint sizes aligned with the negotiated bus speed.

References: examples/…/tusb_config.h• L89-105 examples/…/main.c• L62-81 examples/…/tusb_config.h• L95-118 examples/…/main.c• L117-225 examples/…/README.md• L14-35 examples/…/main.c• L60-84 examples/…/tusb_config.h• L94-136 examples/…/tusb_config.h• L92-163 examples/…/README.md• L32-45 examples/…/tusb_config.h• L91-123 examples/…/tusb_config.h• L125-160 examples/…/lwipopts.h• L39-85 examples/…/main.c• L117-154 examples/…/usb_descriptors.c• L64-83 examples/…/usb_descriptors.c• L175-198 examples/…/usb_descriptors.c• L203-261 examples/…/usb_descriptors.c• L266-280

Board selection

Device builds select a BOARD and resolve it through the board support package. Family filters and per-example skip.txt rules remove targets that lack the required hardware, memory, controller, or runtime support. The RTOS audio, CDC plus MSC, composite HID, and MIDI examples use a shared base of unsupported MCU families and FreeRTOS targets. Audio and CDC plus MSC add scenario-specific target exclusions, while the four-channel microphone example also excludes selected LPCXpresso boards. The existing multi-rate audio, MIDI 2.0, and UAC2 rules omit their own unsupported targets. The network and two-channel video examples also keep scenario-specific exclusions for families and boards that cannot meet their needs.

The normal selection path is:

  1. Select an example under examples/device.
  2. Select a board through a CMake preset or -DBOARD=....
  3. Select no-OS or an RTOS mode when the example provides both.
  4. Build and flash the board-specific output through the board's supported flow.

References: examples/…/CMakeLists.txt• L1-6 examples/…/CMakePresets.json• L1-6 examples/…/CMakeLists.txt• L19-24 examples/…/CMakeLists.txt• L96-98 examples/…/Makefile• L1 hw/…/family_support.cmake• L14-46 hw/…/family_support.cmake• L208-225 hw/…/family_support.cmake• L400-425 examples/…/skip.txt• L1-7 examples/…/skip.txt• L1-27 examples/…/skip.txt• L1-24 examples/…/skip.txt• L1-24 examples/…/skip.txt• L1-22 examples/…/skip.txt• L1-22 examples/…/skip.txt• L1-3 examples/…/skip.txt• L1-6 examples/…/skip.txt• L1-2 examples/…/skip.txt• L1-12 examples/…/skip.txt• L1-12 examples/…/skip.txt• L1-27 examples/…/skip.txt• L1-20

Runtime variants

No-OS and RTOS variants keep the USB product shape similar while changing how application work is scheduled. The no-OS form uses a direct application loop. RTOS forms separate device servicing from class work and board indicators. Audio examples produce one frame at a time, while video examples pace each stream and wait for transfer completion before reusing its frame. Scheduling and buffer ownership are therefore part of the class scenario.

The examples also show class-specific application paths. cdc_msc_freertos runs CDC echo work beside USB service and initializes the MSC disk. Its storage path can move read and write work to an RTOS task, while the no-OS form serves the small disk directly. cdc_msc_throughput removes storage and echo work from the measurement path so bulk traffic measures the USB and host-driver ceiling. dfu_runtime reports a DFU detach request through its board indicator rather than performing a bootloader jump. hid_composite_freertos chains keyboard, mouse, consumer-control, and gamepad reports and can request remote wakeup from suspend. midi_test_freertos sends a repeating note sequence and drains incoming packets.

msc_dual_lun also shows that a device example can keep its USB behavior while changing its scheduler support across no-OS, FreeRTOS, and ThreadX. mtp follows the same common device lifecycle without adding a separate application data task in this entry point.

The usbtest example is a transfer-stress case rather than a product class demo. It presents a vendor-specific source and sink interface to the Linux USB test pair. Its capability tiers add vendor control, interrupt, and isochronous paths to a bulk base. Alternate setting zero carries no endpoints. Alternate setting one carries the active source and sink endpoints, so the host can select the full test path without claiming isochronous bandwidth by default.

The application keeps bulk, interrupt, and isochronous pipes supplied with packet-sized data. It also supports control write/read-back and delayed control answers for host timing tests. Packet length follows the negotiated bus speed, so a high-speed build can still operate correctly when the host enumerates it at full speed.

References: examples/…/main.c• L80-132 examples/…/msc_disk.c• L153-186 examples/…/main.c• L29-37 examples/…/main.c• L69-160 examples/…/main.c• L101-131 examples/…/main.c• L194-328 examples/…/main.c• L173-218 examples/…/main.c• L48-105 examples/…/main.c• L57-75 examples/…/main.c• L295-345 examples/…/main.c• L274-322 examples/…/main.c• L61-79 examples/…/main.c• L119-198 examples/…/main.c• L205-295

Example selection guide

Choose the smallest example that exercises the feature under investigation. Use a composite example for shared descriptors or several host drivers. Use a speed, throughput, or test example for transfer timing, endpoint pressure, or controller behavior.

QuestionStarting point
Does a new board start and report basic I/O?board_test
Does one class enumerate and exchange data?A focused HID, CDC, audio, storage, MIDI, video, network, or specialized-class example
Does one cable need several host functions?cdc_msc, cdc_uac2, printer_to_cdc, or webusb_serial
Does the device need several interfaces of one class?cdc_dual_ports, hid_multiple_interface, video_capture_2ch, or msc_dual_lun
Does the device present one of several modes based on startup state or an alternate setting?dynamic_configuration, midi2_device, or a speed-aware audio example
Does the controller need sustained transfer stress?cdc_msc_throughput or usbtest

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep class-instance counts aligned with every interface, endpoint, and alternate setting in the descriptor.
  • Keep application callbacks and data sources aligned with each function added to a composite device.
  • Check that new endpoints or larger streams fit the selected board's speed, RAM, and controller limits.
  • Add a matching device entry and family-aware build target when a new example is introduced.
  • Preserve the no-OS and RTOS behavior split when both variants exist.
  • Keep scheduler and task-allocation defaults aligned with class timing needs, especially for isochronous audio and video frame pacing.
  • Keep stream completion state aligned with the number of video streams and each stream's negotiated interval.
  • Keep throughput examples free of backing-store or echo work that would change what the measurement represents.
  • Keep DFU detach behavior aligned with the bootloader contract. The runtime example only signals the request.
  • Keep HID report IDs and report-completion order aligned with the composite report descriptor.
  • Drain unused MIDI input when the descriptor exposes an input path, or a host sender can block.
  • Keep the network driver choice, network descriptors, host-driver expectations, and target-specific configuration aligned.
  • Keep the lwIP interface address, DHCP leases, DNS behavior, and USB network link state aligned with the host-facing network example.
  • Keep the lwIP IP MTU below the USB network frame limit by the Ethernet header size. Reject frames that exceed the USB network limit.
  • Keep network packet ownership and USB transmit readiness aligned so lwIP does not reuse or drop a packet before the USB transfer completes.
  • Keep high-throughput SRAM settings aligned with NCM buffer sizes, zero-copy receive support, and iperf availability.
  • Restore lwIP receive checksum checks when the example gains another network path or needs end-to-end integrity.
  • Keep the lwIP dependency available to both CMake and Make build paths.
  • Update family filters and skip.txt rules when a scenario becomes valid or invalid for a target.
  • Review the network and video skip.txt rules when board support, memory needs, or controller limits change for those scenarios.
  • Keep the USBTMC interface, bulk packet sizes, optional interrupt endpoint, and speed-specific descriptors aligned.
  • Keep USBTMC command state, status reporting, and clear or abort callbacks aligned so a host can recover from a pending response.
  • For usbtest, keep the Gadget Zero identity, interface zero, tier value, endpoint layout, packet lengths, and host test assumptions aligned.
  • Keep full-speed and high-speed descriptor variants consistent with the transfer sizes that the application and host test use.
  • Keep the startup-selected mode in dynamic_configuration aligned across the device descriptor, configuration descriptor, device qualifier, and other-speed descriptor.
  • Keep the distinct product IDs for the two dynamic_configuration personalities so the host refreshes its driver match after a mode change.
  • Keep WebUSB and Microsoft OS descriptors tied to the vendor interface and its advertised CDC-plus-vendor configuration.
  • Keep audio format lists, sample-rate controls, channel counts, and generated frame sizes aligned.

Important failure modes

TriggerConsequenceGuard
Class counts and descriptor interfaces do not matchThe host sees missing or unusable functions during enumerationTreat class configuration and descriptors as one change and review the interface map
A composite function exceeds board endpoint or memory limitsThe example may fail to build, fail to enumerate, or lose transfersSelect a target that supports the complete descriptor and buffer plan
An example is built for an unsupported family or boardCMake filters the target or produces no usable imageCheck family filters and skip.txt rules before changing the target
The selected network driver mode does not match the target descriptor or host driverThe host may not load a network interface or may select the wrong configurationKeep NCM, ECM, and RNDIS selection aligned across target rules, descriptors, and host expectations
The lwIP dependency is missing from the selected build pathThe network example cannot configure or linkFetch the repository dependency or set the supported external CMake path
High-throughput network buffers exceed the board's usable RAMThe build can overflow memory or network traffic can fail under loadKeep SRAM tier, NCM block sizes, and iperf selection aligned
Receive checksums stay disabled in a forwarding or multi-link productCorrupt data can pass through lwIP without detectionRestore the lwIP receive checksum options outside the USB-only example
The USB network link state does not follow the lwIP link stateThe host keeps a stale connected or disconnected view and network recovery tests give false resultsSend each link transition from the network interface to the USB network class
Network packets exceed the USB network frame limitlwIP rejects the frame and the host loses network trafficKeep the lwIP IP MTU below the USB frame MTU and reject oversized Ethernet frames
The network transmit buffer is still busylwIP reports a buffer or use error and the host loses network trafficWait for USB transmit capacity before handing off a packet
A received network packet is not returned to the USB classFurther host packets can stop arrivingRenew the USB receive buffer after lwIP accepts or rejects the packet
A USBTMC speed descriptor or endpoint map does not match the active controller modeInstrument hosts can reject the interface or fail to exchange bulk messagesKeep full-speed and high-speed descriptors and endpoint choices tied to the class configuration
A USBTMC reply is not reset after clear, abort, or a new commandA stale response can block the next command or leave status bits setReset reply state and re-arm the bus read for each recovery path
A startup mode in dynamic_configuration has mismatched device and configuration descriptorsThe host may bind the wrong driver or reject the device during enumerationKeep the CDC/MIDI and MSC descriptor families synchronized, including qualifier and other-speed forms
A WebUSB or Microsoft OS descriptor points to the wrong interfaceBrowser or Windows support can fail while CDC still enumeratesKeep BOS, vendor requests, interface numbers, and the vendor endpoint pair consistent
A host selects a speed or alternate setting that the application does not supportAudio, video, MIDI, or test traffic can stop after negotiationKeep speed-aware descriptors, class settings, packet sizes, and stream handling consistent
Video data is sent before the prior frame completesFrames can be dropped or the stream can stopKeep one in-flight transfer per stream and clear it on completion
usbtest uses the wrong identity, interface, or capability tierThe Linux test driver does not bind or selects the wrong batteryPreserve the expected Gadget Zero identity and tier encoding
usbtest advertises active isochronous endpoints in alternate setting zeroThe device claims bandwidth before the host selects the test pathKeep alternate setting zero empty and select the full endpoint set in alternate setting one
Host test sizes are not aligned with the device's packet behaviorBulk runs can report overflow, short transfers, or timeoutsUse the host script or pass explicit packet-aligned parameters
An audio RTOS scheduler tick is too slow for USB framesEnumeration can succeed while capture or playback failsKeep the audio scheduling rate matched to the frame service interval
A DFU runtime detach signal is treated as a bootloader jumpThe host sees a detach request but the device does not enter update modeConnect the runtime callback to the board's real bootloader handoff in a product build
A HID report chain does not match its report IDsSome reports are never sent or the host decodes the wrong report typeKeep report IDs, descriptor order, and completion chaining consistent
A storage callback uses a buffer outside the selected disk or returns before async I/O completesThe host can see corrupt sectors or a stalled MSC requestKeep disk capacity, callback bounds, and RTOS I/O completion state aligned
An audio format or rate is advertised without matching application buffer capacityThe host can select a stream that overruns or sends incomplete framesKeep format lists, endpoint sizes, and generated audio frames derived from the same limits

Key files

FileWhy to read it
examples/…/CMakeLists.txtThe device example entry point and family-filtered target list
examples/…/CMakePresets.jsonThe link from device examples to board build presets
examples/…/README.mdA clear composite CDC and MSC product scenario
examples/…/tusb_config.hThe class and buffer shape of a CDC plus MSC device
examples/…/msc_disk.cA small storage backing store and its host-facing storage behavior
examples/…/main.cThe RTOS shape of a CDC plus MSC device
examples/…/msc_disk.cAsynchronous storage work beside USB service
examples/…/main.cA pure USB bulk-throughput measurement path
examples/…/README.mdA device that selects a USB personality at enumeration
examples/…/tusb_config.hThe class choices shared by the selectable personalities
examples/…/usb_descriptors.cThe startup-selected CDC/MIDI and MSC descriptor personalities, including speed variants
examples/…/README.mdA composite control and audio scenario
examples/…/tusb_config.hAudio and CDC limits across target classes
examples/…/usb_descriptors.cThe combined audio and serial host view
examples/…/usb_descriptors.cThe CDC and vendor interface plus WebUSB host metadata
examples/…/README.mdThe network example's host behavior, driver choices, limits, and build requirements
examples/…/main.cA USB network device linked to lwIP, DHCP, HTTP, link-state behavior, and buffer ownership
examples/…/tusb_config.hTarget-based network driver and throughput choices
examples/…/lwipopts.hlwIP limits, checksum policy, and memory settings for the USB-only path
examples/…/CMakeLists.txtThe CMake dependency and board build path for the network example
examples/device/net_lwip_webserver/MakefileThe Make dependency and source selection for the network example
examples/…/skip.txtMCU family and board exclusions for the network scenario
examples/…/usb_descriptors.cThe USBTMC interface, endpoint choices, strings, and speed-specific descriptors
examples/…/usbtmc_app.cThe instrument command, response, status, and recovery behavior
examples/…/main.cGenerated audio data and host audio control handling
examples/…/main.cA multi-channel audio stream with RTOS scheduling
examples/…/README.mdA speed-aware class configuration with multiple audio formats
examples/…/main.cRate selection and generated audio frames
examples/…/skip.txtBoard and family exclusions for the multi-rate audio scenario
examples/…/skip.txtBoard and family exclusions for the UAC2 headset scenario
examples/…/README.mdThe UAC2 speaker and optional HID telemetry scenario
examples/…/skip.txtBoard and family exclusions for the UAC2 speaker feedback scenario
examples/…/main.cA single video stream with selectable frame sources and negotiated frame pacing
examples/…/main.cTwo video streams with separate formats, pacing, and transfer state
examples/…/skip.txtTarget exclusions for the two-stream video scenario
examples/…/main.cComposite HID reports and report completion chaining
examples/…/main.cPeriodic MIDI output and input draining
examples/…/skip.txtBoard and MCU exclusions for the MIDI 2.0 scenario
examples/…/main.cThe runtime-side DFU detach signal
examples/…/main.cThe scheduler variants around a multi-LUN storage device
examples/…/main.cThe common lifecycle for the MTP device example
examples/…/README.mdThe host contract and transfer-stress purpose of the device test peer
examples/…/main.cVendor source and sink pumps plus control-transfer tests
examples/…/usb_descriptors.cThe vendor interface, alternate settings, tiers, and speed-specific endpoint map
examples/device/audio_test_freertos/sdkconfig.defaultsThe scheduler setting for the FreeRTOS audio path
examples/…/skip.txtTarget exclusions for the no-OS microphone scenario
examples/…/skip.txtTarget and runtime exclusions for the RTOS microphone scenario
examples/…/skip.txtTarget exclusions for the two-port CDC scenario
hw/bsp/family_support.cmakeThe shared rules for board, family, runtime, and example support