11#include "../UVCDevice.h"
12#include "../desktop/TinyUSBSim.h"
38 std::this_thread::sleep_for(std::chrono::milliseconds(1));
42 using namespace std::chrono;
43 static const auto start = steady_clock::now();
44 return (uint32_t)duration_cast<milliseconds>(steady_clock::now() - start).count();
48 using namespace std::chrono;
49 static const auto start = steady_clock::now();
50 return (uint32_t)duration_cast<microseconds>(steady_clock::now() - start).count();
54 return (uint8_t *)std::malloc((size + 63) & ~(
size_t)63);
USB Video Class (UVC 1.1) device - a USB webcam.
Definition UVCDevice.h:95
TinyUVC: USB Video Class (UVC) device for Arduino and the desktop.
UVCDesktopSettings & desktopSettings()
Definition UVCPlatformDesktop.h:22
UVCSimBus & simBus()
Definition TinyUSBSim.h:138
Settings of the simulated USB bus.
Definition UVCPlatformDesktop.h:17
uint16_t maxPacketSize
64 = full speed (ESP32-S2/S3, RP2040, STM32 OTG_FS), 512 = high speed
Definition UVCPlatformDesktop.h:19
What the device side did, as seen by the simulated USB core.
Definition TinyUSBSim.h:106
void(* pump)(void *ref)
Definition TinyUSBSim.h:122
void * pumpRef
Definition TinyUSBSim.h:123