Skip to content

Configuration

pschatzmann edited this page Nov 25, 2026 · 2 revisions

Compile-time limits (define before including, or as build flags):

Define Default Meaning
TINYUVC_MAX_FORMATS 2 formats (MJPEG, YUY2)
TINYUVC_MAX_FRAMES 6 resolutions per format
TINYUVC_MAX_INTERVALS 4 frame rates per resolution
TINYUVC_PAYLOAD_SIZE 16384 payload size, capped at 32 packets: 2048 bytes at full speed
TINYUVC_CONFIG_BUFFER_SIZE 1024 configuration descriptor buffer (Adafruit TinyUSB)
TINYUVC_LOG_LEVEL 2 0 = off, 1 = error, 2 = warning, 3 = info, 4 = debug
TINYUVC_DEFAULT_NAME "TinyUVC Camera" interface name shown by the host

TinyUVC registers itself as TinyUSB application class driver (usbd_app_driver_get_cb()), which is defined in TinyUVC.h. If you include TinyUVC.h in more than one .cpp file, define TINYUVC_NO_APP_DRIVER in all but one of them.

Clone this wiki locally