arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
UsbEndpointDescriptorView Struct Reference

Backend-agnostic mirror of tusb_desc_endpoint_t (USB 2.0 spec Table 9-13). wMaxPacketSize is kept in its raw little-endian form (bits 10..0 = size, bits 12..11 = high-speed additional transactions per microframe) so it round-trips bit-for-bit back into a real endpoint descriptor for backends that need one; use packetSize() for the masked value the UAC2 driver's own sizing logic uses (this mirrors TinyUSB's tu_edpt_packet_size(), which also only masks the low 11 bits and does not apply the HS multiplier). More...

#include <USBAudioBackend.h>

Public Member Functions

UsbDir direction () const
 
uint16_t packetSize () const
 

Public Attributes

uint8_t bEndpointAddress = 0
 
uint8_t bInterval = 0
 
uint8_t sync = 0
 
uint8_t usage = 0
 
uint16_t wMaxPacketSize = 0
 
UsbXferType xferType = UsbXferType::Control
 

Detailed Description

Backend-agnostic mirror of tusb_desc_endpoint_t (USB 2.0 spec Table 9-13). wMaxPacketSize is kept in its raw little-endian form (bits 10..0 = size, bits 12..11 = high-speed additional transactions per microframe) so it round-trips bit-for-bit back into a real endpoint descriptor for backends that need one; use packetSize() for the masked value the UAC2 driver's own sizing logic uses (this mirrors TinyUSB's tu_edpt_packet_size(), which also only masks the low 11 bits and does not apply the HS multiplier).

Member Function Documentation

◆ direction()

UsbDir direction ( ) const
inline

◆ packetSize()

uint16_t packetSize ( ) const
inline

Member Data Documentation

◆ bEndpointAddress

uint8_t bEndpointAddress = 0

◆ bInterval

uint8_t bInterval = 0

◆ sync

uint8_t sync = 0

◆ usage

uint8_t usage = 0

◆ wMaxPacketSize

uint16_t wMaxPacketSize = 0

◆ xferType


The documentation for this struct was generated from the following file: