summaryrefslogtreecommitdiff
path: root/examples/device/printer_to_cdc/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'examples/device/printer_to_cdc/README.md')
-rw-r--r--examples/device/printer_to_cdc/README.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/examples/device/printer_to_cdc/README.md b/examples/device/printer_to_cdc/README.md
index ecb9a678f..efba70ffb 100644
--- a/examples/device/printer_to_cdc/README.md
+++ b/examples/device/printer_to_cdc/README.md
@@ -7,13 +7,26 @@ This example demonstrates a USB composite device with a Printer class interface
This is useful for debugging printer class communication or as a reference for implementing printer class devices.
-#### USB Interfaces
+#### USB Descriptors
| Interface | Class | Description |
|-----------|-------|-------------|
| 0 | CDC ACM | Virtual serial port |
| 2 | Printer | USB Printer (bidirectional, protocol 2) |
+#### Configuration
+
+Notable `tusb_config.h` settings:
+
+```c
+#define CFG_TUD_CDC 1
+#define CFG_TUD_PRINTER 1
+#define CFG_TUD_CDC_RX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
+#define CFG_TUD_CDC_TX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
+#define CFG_TUD_PRINTER_RX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
+#define CFG_TUD_PRINTER_TX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
+```
+
#### How to Test
The device exposes two endpoints on the host: