pub struct DaiSupportedFormats {
pub number_of_channels: Vec<u32>,
pub sample_formats: Vec<DaiSampleFormat>,
pub frame_formats: Vec<DaiFrameFormat>,
pub frame_rates: Vec<u32>,
pub bits_per_slot: Vec<u8>,
pub bits_per_sample: Vec<u8>,
}
Expand description
Formats supported by the DAI. Frames are made up of number_of_channels
samples which have
bits_per_sample
bits of data within bits_per_slot
bits arranged in frame_formats
.
All values listed in each vector are supported. When not all combinations supported by the driver
can be described with one DaiSupportedFormats
, GetDaiSupportedFormats
returns more than one
DaiSupportedFormats
in the returned vector.
For more detailed information see
Digital Audio Interface.
Fields§
§number_of_channels: Vec<u32>
Possible number of channels supported.
sample_formats: Vec<DaiSampleFormat>
Sample formats supported.
frame_formats: Vec<DaiFrameFormat>
Frame formats supported.
frame_rates: Vec<u32>
Rates supported. Values must be listed in ascending order.
bits_per_slot: Vec<u8>
The bits per slot supported. Values must be listed in ascending order.
bits_per_sample: Vec<u8>
Bits per sample supported. Values must be listed in ascending order.
Trait Implementations§
Source§impl Clone for DaiSupportedFormats
impl Clone for DaiSupportedFormats
Source§fn clone(&self) -> DaiSupportedFormats
fn clone(&self) -> DaiSupportedFormats
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DaiSupportedFormats
impl Debug for DaiSupportedFormats
Source§impl<D: ResourceDialect> Decode<DaiSupportedFormats, D> for DaiSupportedFormats
impl<D: ResourceDialect> Decode<DaiSupportedFormats, D> for DaiSupportedFormats
Source§impl<D: ResourceDialect> Encode<DaiSupportedFormats, D> for &DaiSupportedFormats
impl<D: ResourceDialect> Encode<DaiSupportedFormats, D> for &DaiSupportedFormats
Source§impl<D: ResourceDialect, T0: Encode<Vector<u32, 64>, D>, T1: Encode<Vector<DaiSampleFormat, 4>, D>, T2: Encode<Vector<DaiFrameFormat, 64>, D>, T3: Encode<Vector<u32, 64>, D>, T4: Encode<Vector<u8, 8>, D>, T5: Encode<Vector<u8, 8>, D>> Encode<DaiSupportedFormats, D> for (T0, T1, T2, T3, T4, T5)
impl<D: ResourceDialect, T0: Encode<Vector<u32, 64>, D>, T1: Encode<Vector<DaiSampleFormat, 4>, D>, T2: Encode<Vector<DaiFrameFormat, 64>, D>, T3: Encode<Vector<u32, 64>, D>, T4: Encode<Vector<u8, 8>, D>, T5: Encode<Vector<u8, 8>, D>> Encode<DaiSupportedFormats, D> for (T0, T1, T2, T3, T4, T5)
Source§impl Hash for DaiSupportedFormats
impl Hash for DaiSupportedFormats
Source§impl Ord for DaiSupportedFormats
impl Ord for DaiSupportedFormats
Source§fn cmp(&self, other: &DaiSupportedFormats) -> Ordering
fn cmp(&self, other: &DaiSupportedFormats) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DaiSupportedFormats
impl PartialEq for DaiSupportedFormats
Source§impl PartialOrd for DaiSupportedFormats
impl PartialOrd for DaiSupportedFormats
Source§impl TypeMarker for DaiSupportedFormats
impl TypeMarker for DaiSupportedFormats
Source§type Owned = DaiSupportedFormats
type Owned = DaiSupportedFormats
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for DaiSupportedFormats
impl ValueTypeMarker for DaiSupportedFormats
Source§type Borrowed<'a> = &'a DaiSupportedFormats
type Borrowed<'a> = &'a DaiSupportedFormats
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Eq for DaiSupportedFormats
impl Persistable for DaiSupportedFormats
impl StructuralPartialEq for DaiSupportedFormats
Auto Trait Implementations§
impl Freeze for DaiSupportedFormats
impl RefUnwindSafe for DaiSupportedFormats
impl Send for DaiSupportedFormats
impl Sync for DaiSupportedFormats
impl Unpin for DaiSupportedFormats
impl UnwindSafe for DaiSupportedFormats
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)