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

Functions every platform layer (platform/UVCPlatform*.h) implements. More...

Classes

struct  AppLock
 Serializes app context calls into the USB stack against the USB task, for USB stacks that need that (a TINYUVC_PLATFORM_CUSTOM layer); a no-op on the supported platforms. More...
 
class  UVCTinyUSBInterface
 The camera as interface of Adafruit_USBD_Device. More...
 

Functions

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

Detailed Description

Functions every platform layer (platform/UVCPlatform*.h) implements.

Function Documentation

◆ allocBuffer()

uint8_t * tinyuvc::platform::allocBuffer ( size_t  size)
inline

Allocates the transfer buffer (DMA capable, aligned)

◆ begin()

bool tinyuvc::platform::begin ( UVCDevice &  )
inline

Registers the UVC function with the USB stack (and starts it if needed)

◆ end()

void tinyuvc::platform::end ( UVCDevice &  )
inline

Unregisters the UVC function, where the USB stack supports that.

◆ esp32LoadDescriptor()

uint16_t tinyuvc::platform::esp32LoadDescriptor ( uint8_t *  dst,
uint8_t *  itf 
)
inline

Descriptor callback of the core (called from USB.begin())

◆ freeBuffer()

void tinyuvc::platform::freeBuffer ( uint8_t *  buf)
inline

◆ idle()

void tinyuvc::platform::idle ( )
inline

Called while waiting: lets the USB stack make progress.

◆ maxPacketSize()

uint16_t tinyuvc::platform::maxPacketSize ( )
inline

Max packet size of the bulk endpoint (64 full speed, 512 high speed)

◆ micros()

uint32_t tinyuvc::platform::micros ( )
inline

◆ millis()

uint32_t tinyuvc::platform::millis ( )
inline

◆ tinyusbInterface()

UVCTinyUSBInterface & tinyuvc::platform::tinyusbInterface ( )
inline