TinyUVC 0.1.0
Header-only USB Video Class (UVC) device: turn an MCU into a USB webcam
Loading...
Searching...
No Matches
Classes | Static Public Member Functions | Static Public Attributes | List of all members
tinyuvc::UVCDescriptorBuilder Class Reference

Writes the UVC function descriptors (everything that belongs into the configuration descriptor after its 9 byte header). More...

#include <UVCDescriptor.h>

Static Public Member Functions

static uint16_t length (const UVCDescriptorParams &p)
 Length in bytes of the descriptors for the given parameters.
 
static uint16_t build (const UVCDescriptorParams &p, uint8_t *buf, uint16_t bufLen)
 

Static Public Attributes

static constexpr uint8_t kInterfaceCount = 2
 Number of interfaces the function uses.
 
static constexpr uint32_t kClockFrequency = 1000000
 dwClockFrequency reported in the headers: 1 MHz (PTS in microseconds)
 

Detailed Description

Writes the UVC function descriptors (everything that belongs into the configuration descriptor after its 9 byte header).

Member Function Documentation

◆ build()

static uint16_t tinyuvc::UVCDescriptorBuilder::build ( const UVCDescriptorParams &  p,
uint8_t *  buf,
uint16_t  bufLen 
)
inlinestatic

Writes the descriptors into buf (if not null) and returns their length; returns 0 if the buffer is too small.

◆ length()

static uint16_t tinyuvc::UVCDescriptorBuilder::length ( const UVCDescriptorParams &  p)
inlinestatic

Length in bytes of the descriptors for the given parameters.

Member Data Documentation

◆ kClockFrequency

constexpr uint32_t tinyuvc::UVCDescriptorBuilder::kClockFrequency = 1000000
staticconstexpr

dwClockFrequency reported in the headers: 1 MHz (PTS in microseconds)

◆ kInterfaceCount

constexpr uint8_t tinyuvc::UVCDescriptorBuilder::kInterfaceCount = 2
staticconstexpr

Number of interfaces the function uses.


The documentation for this class was generated from the following file: