summaryrefslogtreecommitdiff
path: root/docs/reference/class/host.rst
diff options
context:
space:
mode:
authorHiFiPHile <[email protected]>2026-09-04 11:27:08 +0200
committerHiFiPHile <[email protected]>2026-09-04 11:27:08 +0200
commit4a5781edda9094852f12d4dea9c2e7bece3f7068 (patch)
tree2830f6a0770ea0062a2bfa32ce512d829de4e116 /docs/reference/class/host.rst
parent3976e532800cfa065b4fbf3f32b01b4a68e4d7f4 (diff)
add audio host class doccodex/class-reference-docs
Signed-off-by: HiFiPHile <[email protected]>
Diffstat (limited to 'docs/reference/class/host.rst')
-rw-r--r--docs/reference/class/host.rst12
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/reference/class/host.rst b/docs/reference/class/host.rst
index ef42e3dfb..ebb5a552f 100644
--- a/docs/reference/class/host.rst
+++ b/docs/reference/class/host.rst
@@ -2,10 +2,10 @@
Using Host Classes
******************
-TinyUSB provides application-level host drivers for CDC serial, HID, MIDI 1.0,
-MIDI 2.0, and Mass Storage. A host application is asynchronous: a mount
-callback reports a ready interface, I/O is queued, and completion or receive
-callbacks advance the application state.
+TinyUSB provides application-level host drivers for Audio, CDC serial, HID,
+MIDI 1.0, MIDI 2.0, and Mass Storage. A host application is asynchronous: a
+mount callback reports a ready interface, I/O is queued, and completion or
+receive callbacks advance the application state.
Setup checklist
===============
@@ -28,6 +28,7 @@ Typical configuration:
#define CFG_TUH_ENABLED 1
#define CFG_TUH_DEVICE_MAX 4
#define CFG_TUH_HUB 1
+ #define CFG_TUH_AUDIO 1
#define CFG_TUH_CDC 1
#define CFG_TUH_HID (3 * CFG_TUH_DEVICE_MAX)
#define CFG_TUH_MSC 1
@@ -137,6 +138,7 @@ Do not block ``tuh_task()`` while waiting for a callback that only it can
dispatch. Prefer the asynchronous APIs. Where a class provides a synchronous
helper, use it only from a context in which the host task can still run.
-Start with :doc:`../../examples/host/cdc_msc_hid` for CDC, HID, and MSC,
+Start with :doc:`../../examples/host/audio_host` for Audio,
+:doc:`../../examples/host/cdc_msc_hid` for CDC, HID, and MSC,
:doc:`../../examples/host/midi_rx` for MIDI 1.0, or
:doc:`../../examples/host/midi2_host` for MIDI 2.0.