TinyUVC 0.1.0
Header-only USB Video Class (UVC) device: turn an MCU into a USB webcam
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
UVCPlatformDesktop.h File Reference

Desktop platform: there is no USB device controller, the device is driven by UVCHostSimulator (desktop/UVCHostSimulator.h). More...

#include <chrono>
#include <cstdlib>
#include <thread>
#include "../UVCDevice.h"
#include "../desktop/TinyUSBSim.h"
Include dependency graph for UVCPlatformDesktop.h:

Go to the source code of this file.

Classes

struct  tinyuvc::UVCDesktopSettings
 Settings of the simulated USB bus. More...
 

Namespaces

namespace  tinyuvc
 TinyUVC: USB Video Class (UVC) device for Arduino and the desktop.
 
namespace  tinyuvc::platform
 Functions every platform layer (platform/UVCPlatform*.h) implements.
 

Functions

UVCDesktopSettings & tinyuvc::desktopSettings ()
 
bool tinyuvc::platform::begin (UVCDevice &dev)
 Registers the UVC function with the USB stack (and starts it if needed)
 
void tinyuvc::platform::end (UVCDevice &dev)
 Unregisters the UVC function, where the USB stack supports that.
 
uint16_t tinyuvc::platform::maxPacketSize ()
 Max packet size of the bulk endpoint (64 full speed, 512 high speed)
 
void tinyuvc::platform::idle ()
 Called while waiting: lets the USB stack make progress.
 
uint32_t tinyuvc::platform::millis ()
 
uint32_t tinyuvc::platform::micros ()
 
uint8_t * tinyuvc::platform::allocBuffer (size_t size)
 Allocates the transfer buffer (DMA capable, aligned)
 
void tinyuvc::platform::freeBuffer (uint8_t *buf)
 

Detailed Description

Desktop platform: there is no USB device controller, the device is driven by UVCHostSimulator (desktop/UVCHostSimulator.h).