Zephyr Project API 4.2.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
USB Video Class (UVC) device API

USB Video Class (UVC) device API. More...

Functions

void uvc_set_video_dev (const struct device *uvc_dev, const struct device *video_dev)
 Set the video device that a UVC instance will use.
 

Detailed Description

USB Video Class (UVC) device API.

Since
4.2
Version
0.1.0
See also
uvc: "Universal Serial Bus Device Class Definition for Video Devices" Document Release 1.5 (August 9, 2012)

Function Documentation

◆ uvc_set_video_dev()

void uvc_set_video_dev ( const struct device uvc_dev,
const struct device video_dev 
)

#include <include/zephyr/usb/class/usbd_uvc.h>

Set the video device that a UVC instance will use.

It will query its supported controls, formats and frame rates, and use this information to generate USB descriptors sent to the host.

At runtime, it will forward all USB controls from the host to this device.

Note
This function must be called before usbd_enable.
Parameters
uvc_devThe UVC device
video_devThe video device that this UVC instance controls