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

What the device side did, as seen by the simulated USB core. More...

#include <TinyUSBSim.h>

Public Member Functions

void resetControl ()
 
void resetEndpoint ()
 

Public Attributes

uint8_t openEndpoint = 0
 
uint16_t openMaxPacketSize = 0
 
bool claimed = false
 
bool busy = false
 
uint8_t * xferBuf = nullptr
 
uint16_t xferLen = 0
 
bool failNextXfer = false
 test hook: next usbd_edpt_xfer() fails
 
bool ctrlXfer = false
 
bool ctrlStatus = false
 
uint8_t * ctrlBuf = nullptr
 
uint16_t ctrlLen = 0
 
void(* pump )(void *ref) = nullptr
 
void * pumpRef = nullptr
 

Detailed Description

What the device side did, as seen by the simulated USB core.

Member Function Documentation

◆ resetControl()

void tinyuvc::UVCSimBus::resetControl ( )
inline

◆ resetEndpoint()

void tinyuvc::UVCSimBus::resetEndpoint ( )
inline

Member Data Documentation

◆ busy

bool tinyuvc::UVCSimBus::busy = false

◆ claimed

bool tinyuvc::UVCSimBus::claimed = false

◆ ctrlBuf

uint8_t* tinyuvc::UVCSimBus::ctrlBuf = nullptr

◆ ctrlLen

uint16_t tinyuvc::UVCSimBus::ctrlLen = 0

◆ ctrlStatus

bool tinyuvc::UVCSimBus::ctrlStatus = false

◆ ctrlXfer

bool tinyuvc::UVCSimBus::ctrlXfer = false

◆ failNextXfer

bool tinyuvc::UVCSimBus::failNextXfer = false

test hook: next usbd_edpt_xfer() fails

◆ openEndpoint

uint8_t tinyuvc::UVCSimBus::openEndpoint = 0

◆ openMaxPacketSize

uint16_t tinyuvc::UVCSimBus::openMaxPacketSize = 0

◆ pump

void(* tinyuvc::UVCSimBus::pump) (void *ref) = nullptr

Called by UVCDevice::waitReady() via platform::idle(): lets the simulated host read the pending transfer

◆ pumpRef

void* tinyuvc::UVCSimBus::pumpRef = nullptr

◆ xferBuf

uint8_t* tinyuvc::UVCSimBus::xferBuf = nullptr

◆ xferLen

uint16_t tinyuvc::UVCSimBus::xferLen = 0

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