|
TinyUVC 0.1.0
Header-only USB Video Class (UVC) device: turn an MCU into a USB webcam
|
Connects UVCDevice to TinyUSB as an application class driver (usbd_app_driver_get_cb()). This works with every TinyUSB build - the one in the ESP32 Arduino core and the Adafruit TinyUSB Library - whether its own video class (CFG_TUD_VIDEO) is compiled in or not, because application drivers are asked first. More...


Go to the source code of this file.
Namespaces | |
| namespace | tinyuvc |
| TinyUVC: USB Video Class (UVC) device for Arduino and the desktop. | |
| namespace | tinyuvc::tusb_glue |
| TinyUSB class driver callbacks that connect TinyUSB to UVCDevice. | |
Connects UVCDevice to TinyUSB as an application class driver (usbd_app_driver_get_cb()). This works with every TinyUSB build - the one in the ESP32 Arduino core and the Adafruit TinyUSB Library - whether its own video class (CFG_TUD_VIDEO) is compiled in or not, because application drivers are asked first.
TinyUSB knows only one usbd_app_driver_get_cb(): this header defines it unless TINYUVC_NO_APP_DRIVER is defined. Define TINYUVC_NO_APP_DRIVER in every additional .cpp file that includes TinyUVC.h, or if you need to combine TinyUVC with another application driver: then return tinyuvc::tusb_glue::driver() from your own usbd_app_driver_get_cb().
| usbd_class_driver_t const * usbd_app_driver_get_cb | ( | uint8_t * | driver_count | ) |
TinyUSB asks for application class drivers once, in tud_init()