|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
USB Video Class (UVC) device API. More...
Functions | |
| void | uvc_device_init (const struct device *uvc_dev, const struct device *video_dev) |
| Initialize a video device class. | |
| int | uvc_device_add_format (const struct device *const uvc_dev, const struct video_format *const fmt) |
| Add a video format that a UVC instance will present to the host. | |
| int | uvc_device_enable (const struct device *const uvc_dev) |
| Completes the configuration of an UVC device instance. | |
| int | uvc_device_shutdown (const struct device *const uvc_dev) |
| Withdraw the configuration of an UVC device instance. | |
USB Video Class (UVC) device API.
| int uvc_device_add_format | ( | const struct device *const | uvc_dev, |
| const struct video_format *const | fmt ) |
#include <zephyr/usb/class/usbd_uvc.h>
Add a video format that a UVC instance will present to the host.
This information will be used to generate USB descriptors. The particular format selected by the host can be queried with video_get_format.
fmt struct field size must be set prior to call this function, such as calling video_set_format().| uvc_dev | Pointer to the UVC device to configure |
| fmt | The video format to add to this UVC instance |
| int uvc_device_enable | ( | const struct device *const | uvc_dev | ) |
#include <zephyr/usb/class/usbd_uvc.h>
Completes the configuration of an UVC device instance.
Prepare an UVC interface for being used.
| uvc_dev | Pointer to the UVC device to configure |
#include <zephyr/usb/class/usbd_uvc.h>
Initialize a video device class.
Set the video device that a UVC instance will use for control requests.
It will query its supported video controls and frame intervals and use this information to generate the USB descriptors presented to the host. In addition, for every supported UVC control request from the host to this uvc_dev instance, it will issue a matching video API control request to video_dev.
| uvc_dev | Pointer to the UVC device to configure |
| video_dev | Pointer to the video device to which controls requests are sent |
| int uvc_device_shutdown | ( | const struct device *const | uvc_dev | ) |
#include <zephyr/usb/class/usbd_uvc.h>
Withdraw the configuration of an UVC device instance.
Reset the configuration of an USB device class, make it ready to be enabled again.
| uvc_dev | Pointer to the UVC device to deconfigure |