|
TinyUVC 0.1.0
Header-only USB Video Class (UVC) device: turn an MCU into a USB webcam
|
Desktop stand-in for the parts of the TinyUSB device API that UVCTinyUSB.h uses. The calls are recorded in UVCSimBus, where UVCHostSimulator (playing the USB host and the TinyUSB core) picks them up. Like this the same class driver code runs on the desktop as on the microcontroller. More...
#include <stdint.h>#include <string.h>

Go to the source code of this file.
Classes | |
| struct | usbd_class_driver_t |
| Desktop stand-in for TinyUSB's class driver table entry. More... | |
| struct | tinyuvc::UVCSimBus |
| What the device side did, as seen by the simulated USB core. More... | |
Namespaces | |
| namespace | tinyuvc |
| TinyUVC: USB Video Class (UVC) device for Arduino and the desktop. | |
Enumerations | |
| enum | xfer_result_t { XFER_RESULT_SUCCESS = 0 , XFER_RESULT_FAILED , XFER_RESULT_STALLED , XFER_RESULT_TIMEOUT , XFER_RESULT_INVALID } |
| enum | { CONTROL_STAGE_IDLE , CONTROL_STAGE_SETUP , CONTROL_STAGE_DATA , CONTROL_STAGE_ACK } |
Functions | |
| struct | __attribute__ ((packed)) |
| usbd_class_driver_t const * | usbd_app_driver_get_cb (uint8_t *driver_count) |
| TinyUSB asks for application class drivers once, in tud_init() | |
| UVCSimBus & | tinyuvc::simBus () |
| bool | usbd_edpt_open (uint8_t, tusb_desc_endpoint_t const *ep) |
| bool | usbd_edpt_claim (uint8_t, uint8_t ep) |
| bool | usbd_edpt_release (uint8_t, uint8_t ep) |
| bool | usbd_edpt_xfer (uint8_t, uint8_t ep, uint8_t *buf, uint16_t len, bool is_isr) |
| bool | tud_control_xfer (uint8_t, tusb_control_request_t const *, void *buf, uint16_t len) |
| bool | tud_control_status (uint8_t, tusb_control_request_t const *) |
Variables | |
| tusb_desc_interface_t | |
| tusb_desc_endpoint_t | |
| tusb_control_request_t | |
Desktop stand-in for the parts of the TinyUSB device API that UVCTinyUSB.h uses. The calls are recorded in UVCSimBus, where UVCHostSimulator (playing the USB host and the TinyUSB core) picks them up. Like this the same class driver code runs on the desktop as on the microcontroller.
The type and function declarations below mirror the TinyUSB device API (https://github.com/hathach/tinyusb): The MIT License (MIT) Copyright (c) 2019 Ha Thach (tinyusb.org) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| anonymous enum |
| enum xfer_result_t |
| struct __attribute__ | ( | (packed) | ) |
|
inline |
|
inline |
| usbd_class_driver_t const * usbd_app_driver_get_cb | ( | uint8_t * | driver_count | ) |
TinyUSB asks for application class drivers once, in tud_init()
|
inline |
|
inline |
|
inline |
|
inline |
| tusb_control_request_t |
| tusb_desc_endpoint_t |
| tusb_desc_interface_t |