summaryrefslogtreecommitdiff
path: root/docs/reference/configuration.rst
diff options
context:
space:
mode:
authorc1570 <[email protected]>2025-09-25 00:20:45 +0200
committerc1570 <[email protected]>2025-10-20 21:07:06 +0200
commite7b851d9ac2657e591f772dd3fa326e2d8d00270 (patch)
tree5cc40736eba8e2bf5a36039aa3b70b3f7bb957fe /docs/reference/configuration.rst
parente4ff88f3640458f820838efd047a3831333446d8 (diff)
Naming conventions, buffer handling
Diffstat (limited to 'docs/reference/configuration.rst')
-rw-r--r--docs/reference/configuration.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/reference/configuration.rst b/docs/reference/configuration.rst
index 8d6dd6190..79aeb15d8 100644
--- a/docs/reference/configuration.rst
+++ b/docs/reference/configuration.rst
@@ -106,6 +106,11 @@ Device Classes
#define CFG_TUD_VENDOR 1 // Number of vendor interfaces
#define CFG_TUD_VENDOR_EPSIZE 64 // Vendor endpoint size
+ #define CFG_TUD_VENDOR_RX_BUFSIZE 64 // RX buffer size (0 = no buffering)
+ #define CFG_TUD_VENDOR_TX_BUFSIZE 64 // TX buffer size (0 = no buffering)
+
+.. note::
+ Unlike other classes, vendor class supports setting buffer sizes to 0 to disable internal buffering. When disabled, data goes directly to ``tud_vendor_rx_cb()`` and the ``tud_vendor_read()``/``tud_vendor_write()`` functions are not available - applications must handle data directly in callbacks.
Host Stack Configuration
========================