pub struct AudioControlInterface {
pub interface_descriptors: Vec<InterfaceDescriptor, MAX_ALTERNATE_SETTINGS>,
pub header_descriptor: AudioControlHeaderDescriptor,
pub interrupt_endpoint_descriptor: Option<EndpointDescriptor>,
pub clock_descriptors: FnvIndexMap<u8, ClockDescriptor, MAX_CLOCK_DESCRIPTORS>,
pub unit_descriptors: FnvIndexMap<u8, UnitDescriptor, MAX_UNIT_DESCRIPTORS>,
pub terminal_descriptors: FnvIndexMap<u8, TerminalDescriptor, MAX_TERMINAL_DESCRIPTORS>,
}Expand description
Audio control interface containing all control-related descriptors.
This struct contains the header descriptor, clock descriptors, unit descriptors, terminal descriptors, and optional interrupt endpoint descriptor.
Fields§
§interface_descriptors: Vec<InterfaceDescriptor, MAX_ALTERNATE_SETTINGS>Interface descriptors for this control interface.
header_descriptor: AudioControlHeaderDescriptorAudio control header descriptor.
interrupt_endpoint_descriptor: Option<EndpointDescriptor>Optional interrupt endpoint descriptor for control notifications.
clock_descriptors: FnvIndexMap<u8, ClockDescriptor, MAX_CLOCK_DESCRIPTORS>Map of clock descriptors indexed by clock ID.
unit_descriptors: FnvIndexMap<u8, UnitDescriptor, MAX_UNIT_DESCRIPTORS>Map of unit descriptors indexed by unit ID.
terminal_descriptors: FnvIndexMap<u8, TerminalDescriptor, MAX_TERMINAL_DESCRIPTORS>Map of terminal descriptors indexed by terminal ID.
Implementations§
Source§impl AudioControlInterface
impl AudioControlInterface
Sourcepub fn interface_number(&self) -> u8
pub fn interface_number(&self) -> u8
Interface number of the AudioControl interface.
Requests to the entities of the function (clocks, terminals, units) are addressed to it.
Sourcepub fn clock_step(&self, clock_id: u8) -> ClockStep
pub fn clock_step(&self, clock_id: u8) -> ClockStep
Where the clock path continues after the clock clock_id, on the way to the Clock Source.
Trait Implementations§
Source§impl Debug for AudioControlInterface
impl Debug for AudioControlInterface
Source§impl Format for AudioControlInterface
Available on crate feature defmt only.
impl Format for AudioControlInterface
Available on crate feature
defmt only.Source§impl PartialEq for AudioControlInterface
impl PartialEq for AudioControlInterface
impl StructuralPartialEq for AudioControlInterface
Auto Trait Implementations§
impl Forget for AudioControlInterface
impl Freeze for AudioControlInterface
impl Move for AudioControlInterface
impl RefUnwindSafe for AudioControlInterface
impl Send for AudioControlInterface
impl Sync for AudioControlInterface
impl Unpin for AudioControlInterface
impl UnsafeUnpin for AudioControlInterface
impl UnwindSafe for AudioControlInterface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more