You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/usb/usb_device/usb_device_uac.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ USB Device UAC
3
3
4
4
:link_to_translation:`zh_CN:[中文]`
5
5
6
-
`esp_device_uac` is a USB Audio Class driver library based on TinyUSB. It supports simulating an ESP chip as an audio device, with customizable audio sampling rates, microphone channels, and speaker channels.
6
+
``esp_device_uac`` is a USB Audio Class driver library based on TinyUSB. It supports simulating an ESP chip as an audio device, with customizable audio sampling rates, microphone channels, and speaker channels.
7
7
8
8
Features:
9
9
@@ -16,7 +16,7 @@ USB Device UAC User Guide
16
16
17
17
- Development Board
18
18
19
-
1. Any ESP32-S2/ESP32-S3 development board with a USB interface can be used.
19
+
1. Any ESP32-S2/ESP32-S3/ESP32-P4 development board with a USB interface can be used.
Copy file name to clipboardExpand all lines: docs/en/usb/usb_device/usb_device_uvc.rst
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,12 @@ USB Device UVC
3
3
4
4
:link_to_translation:`zh_CN:[中文]`
5
5
6
-
``usb_device_uvc`` is a USB ``UVC`` device driver for ESP32-S2/ESP32-S3, which supports streaming JPEG frames to the USB Host. User can wrapper the Camera or any devices as a UVC standard device through the callback functions.
6
+
``usb_device_uvc`` is a USB ``UVC`` device driver for ESP32-S2/ESP32-S3/ESP32-P4, which supports streaming JPEG frames to the USB Host. User can wrapper the Camera or any devices as a UVC standard device through the callback functions.
7
7
8
8
Features:
9
9
10
10
1. Support video stream through the UVC Stream interface
Copy file name to clipboardExpand all lines: docs/en/usb/usb_host/usb_stream.rst
+3-11Lines changed: 3 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,15 +76,8 @@ USB Stream Config Reference
76
76
4. The host will matches the descriptors of the connected devices according to the user parameters. If the device fails to meet the configuration requirements, the driver prompt warning message
77
77
5. If the device meets user configuration requirements, the Host will continue to receive the IN stream (UVC and UAC mic), and will call the user’s callbacks when new frames ready.
78
78
79
-
1. The camera callback will be triggered after a new MJPEG image ready.
80
-
The callback can block during processing, because which works in
81
-
an independent task context.
82
-
2. The mic callback will be triggered after :cpp:func:`mic_min_bytes` bytes
83
-
data received. But the callback here must not block in any way,
84
-
otherwise it will affect the reception of the next frame. If the
85
-
block operations for mic is necessary, you can use the polling
86
-
mode instead of the callback mode through
87
-
:cpp:func:`uac_mic_streaming_read` api.
79
+
1. The camera callback will be triggered after a new MJPEG image ready. The callback can block during processing, because which works in an independent task context.
80
+
2. The mic callback will be triggered after :cpp:func:`mic_min_bytes` bytes data received. But the callback here must not block in any way, otherwise it will affect the reception of the next frame. If the block operations for mic is necessary, you can use the polling mode instead of the callback mode through :cpp:func:`uac_mic_streaming_read` api.
88
81
89
82
6. User can send speaker OUT stream using :cpp:func:`uac_spk_streaming_write` through a ringbuffer, the Host will fetch the data when USB is free to send.
90
83
7. Use the :cpp:func:`usb_streaming_control` to control the stream suspend/resume, uac volume/mute control can also be support if the USB device has such feature unit;
@@ -96,8 +89,7 @@ Bug report
96
89
ESP32-S2 ECO0 Chip SPI screen jitter when work with usb camera
- **ESP_PLATFORM**: This macro needs to be enabled when using the esp-idf platform for compilation.
62
67
63
68
- **CFG_TUSB_OS**: Defines the operating system for tinyusb. If using FreeRTOS, this macro needs to be enabled. It can also be disabled if not using an OS.
@@ -78,6 +83,12 @@ Most of tinyusb's functionalities are controlled through macros, so we need to d
78
83
79
84
#define CFG_TUSB_DEBUG 0
80
85
86
+
- **CFG_TUSB_DEBUG_PRINTF**: Defines the log printing function for tinyusb.
87
+
88
+
.. code:: C
89
+
90
+
#define CFG_TUSB_DEBUG_PRINTF esp_rom_printf
91
+
81
92
- **CFG_TUD_ENABLED**: Set to 1 to enable tinyusb device functionality.
82
93
83
94
- **CFG_TUSB_MEM_SECTION**: This macro can be enabled to allocate tinyusb memory to a specific memory section.
Copy file name to clipboardExpand all lines: docs/en/usb/usb_overview/usb_device_const_COM.rst
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,6 @@ Solution
83
83
84
84
Users have the option to download the script :download:`ignore_hwserial_usb_serial_jtag.bat <../../../_static/ignore_hwserial_usb_serial_jtag.bat>` , then run it with administrative privileges by right-clicking and selecting **Run as Administrator**.
85
85
86
-
87
86
.. Note::
88
87
89
88
The above command is for Windows 10/11. For Windows 7 or other versions, the registry path is different. Please download the script :download:`ignore_hwserial_usb_serial_jtag_win7.bat <../../../_static/ignore_hwserial_usb_serial_jtag_win7.bat>` and run it with Administrative privileges.
Copy file name to clipboardExpand all lines: docs/en/usb/usb_overview/usb_device_self_power.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ According to the USB protocol requirements, self-powered USB devices must detect
8
8
9
9
There are generally two methods for USB device VBUS detection: detection by USB PHY hardware, or \ **detection by software with the help of ADC/GPIO**\.
10
10
11
-
The internal USB PHY of ESP32S2/S3 does not support hardware detection logic, this function needs to be implemented by software with the help of ADC/GPIO. Among them, using the GPIO detection method is the simplest. The implementation is as follows:
11
+
The internal USB PHY of ESP32S2/S3/P4 does not support hardware detection logic, this function needs to be implemented by software with the help of ADC/GPIO. Among them, using the GPIO detection method is the simplest. The implementation is as follows:
12
12
13
13
**For ESP-IDF 4.4 and earlier versions:**
14
14
@@ -22,7 +22,7 @@ The internal USB PHY of ESP32S2/S3 does not support hardware detection logic, th
22
22
*
23
23
* @brief For USB Self-power device, the VBUS voltage must be monitored to achieve hot-plug,
24
24
* The simplest solution is detecting GPIO level as voltage signal.
25
-
* A divider resistance Must be used due to ESP32S2/S3 has no 5V tolerate pin.
25
+
* A divider resistance Must be used due to ESP32S2/S3/P4 has no 5V tolerate pin.
0 commit comments