summaryrefslogtreecommitdiff
path: root/src/class/audio/audio.h
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2025-10-01 09:42:33 +0200
committerHiFiPhile <[email protected]>2025-10-01 10:05:53 +0200
commit1ee113e0e7e12eb9d7969e58a9410feca6db3976 (patch)
tree644f19fc32ef654c66e6251622a046803d2e232c /src/class/audio/audio.h
parentd5108589b6f3bb1139523765c9cc625c56b08832 (diff)
better EP type detection
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'src/class/audio/audio.h')
-rw-r--r--src/class/audio/audio.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/class/audio/audio.h b/src/class/audio/audio.h
index 1ab0739b5..6042d7cf9 100644
--- a/src/class/audio/audio.h
+++ b/src/class/audio/audio.h
@@ -489,7 +489,12 @@ typedef struct TU_ATTR_PACKED {
uint8_t bLength; ///< Size of this descriptor in bytes: 9.
uint8_t bDescriptorType; ///< Descriptor Type. Value: TUSB_DESC_ENDPOINT.
uint8_t bEndpointAddress;///< The address of the endpoint on the USB device described by this descriptor.
- uint8_t bmAttributes; ///< Endpoint attributes when configured using the bEndpointAddress field.
+ struct TU_ATTR_PACKED {
+ uint8_t xfer : 2; // Control, ISO, Bulk, Interrupt
+ uint8_t sync : 2; // None, Asynchronous, Adaptive, Synchronous
+ uint8_t usage : 2; // Data, Feedback, Implicit feedback
+ uint8_t : 2;
+ } bmAttributes;
uint16_t wMaxPacketSize; ///< Maximum packet size this endpoint is capable of sending or receiving when this configuration is selected.
uint8_t bInterval; ///< Interval for polling endpoint for data transfers.
uint8_t bRefresh; ///< The rate at which the endpoint is refreshed.