summaryrefslogtreecommitdiff
path: root/src/class/audio/audio_device.h
diff options
context:
space:
mode:
authorJerzy Kasenberg <[email protected]>2020-09-14 11:28:05 +0200
committerJerzy Kasenberg <[email protected]>2020-09-28 08:41:17 +0200
commit2ace98e943831784e6c9d81258babce2b7b3221c (patch)
tree4a0919fc7d514e1d45ae317c58010a910492668b /src/class/audio/audio_device.h
parent6b5233096978305f1d6a87ef83393ba50e8b0bd2 (diff)
audio_device: Update explicit feedback support
Feedback can be specified by the user code and will be sent at feedback endpoint specified interval.
Diffstat (limited to 'src/class/audio/audio_device.h')
-rw-r--r--src/class/audio/audio_device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/class/audio/audio_device.h b/src/class/audio/audio_device.h
index 2f48955f2..f4029a84c 100644
--- a/src/class/audio/audio_device.h
+++ b/src/class/audio/audio_device.h
@@ -259,6 +259,11 @@ TU_ATTR_WEAK bool tud_audio_rx_done_cb(uint8_t rhport, uint8_t * buffer, uint16_
#if CFG_TUD_AUDIO_EPSIZE_OUT > 0 && CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP
TU_ATTR_WEAK bool tud_audio_fb_done_cb(uint8_t rhport);
+// User code should call this function with feedback value in 16.16 format for FS and HS.
+// Value will be corrected for FS to 10.14 format automatically.
+// (see Universal Serial Bus Specification Revision 2.0 5.12.4.2).
+// Feedback value will be sent at FB endpoint interval till it's changed.
+bool tud_audio_fb_set(uint8_t rhport, uint32_t feedback);
#endif
#if CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN