#[repr(u8)]pub enum DaiFrameFormatStandard {
None = 1,
I2S = 2,
StereoLeft = 3,
StereoRight = 4,
Tdm1 = 5,
Tdm2 = 6,
Tdm3 = 7,
}
Expand description
Standard Frame format.
Variants§
None = 1
No frame format as in samples without a frame sync like PDM.
I2S = 2
Format as specified in the I2S specification (left justified, 2 channels, 32 bits per channel, frame sync stays low for the left channel and high for the right channel, data starts one clock cycle after frame sync changes clocked out at the falling edge of sclk).
StereoLeft = 3
Left justified, 2 channels. Data starts at frame sync changes from low to high clocked out at the falling edge of sclk. The frame sync must stay high for bits_per_channel bits for the first channel and low for bits_per_channel bits for the second channel.
StereoRight = 4
Right justified, 2 channels. The frame sync must stay high for bits_per_channel bits for the first channel and low for bits_per_channel bits for the second channel.
Tdm1 = 5
Left justified, variable number of channels, data starts at frame sync changes from low to high clocked out at the rising edge of sclk. The frame sync must stay high for exactly 1 clock cycle.
Tdm2 = 6
Left justified, variable number of channels, data starts one clock cycle after the frame sync changes from low to high clocked out at the rising edge of sclk. The frame sync must stay high for exactly 1 clock cycle.
Tdm3 = 7
Left justified, variable number of channels, data starts two clock cycles after the frame sync changes from low to high clocked out at the rising edge of sclk. The frame sync must stay high for exactly 1 clock cycle.
Implementations§
Source§impl DaiFrameFormatStandard
impl DaiFrameFormatStandard
pub fn from_primitive(prim: u8) -> Option<Self>
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
Source§impl Clone for DaiFrameFormatStandard
impl Clone for DaiFrameFormatStandard
Source§fn clone(&self) -> DaiFrameFormatStandard
fn clone(&self) -> DaiFrameFormatStandard
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DaiFrameFormatStandard
impl Debug for DaiFrameFormatStandard
Source§impl<D: ResourceDialect> Decode<DaiFrameFormatStandard, D> for DaiFrameFormatStandard
impl<D: ResourceDialect> Decode<DaiFrameFormatStandard, D> for DaiFrameFormatStandard
Source§impl<D: ResourceDialect> Encode<DaiFrameFormatStandard, D> for DaiFrameFormatStandard
impl<D: ResourceDialect> Encode<DaiFrameFormatStandard, D> for DaiFrameFormatStandard
Source§impl Hash for DaiFrameFormatStandard
impl Hash for DaiFrameFormatStandard
Source§impl Ord for DaiFrameFormatStandard
impl Ord for DaiFrameFormatStandard
Source§fn cmp(&self, other: &DaiFrameFormatStandard) -> Ordering
fn cmp(&self, other: &DaiFrameFormatStandard) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DaiFrameFormatStandard
impl PartialEq for DaiFrameFormatStandard
Source§impl PartialOrd for DaiFrameFormatStandard
impl PartialOrd for DaiFrameFormatStandard
Source§impl TypeMarker for DaiFrameFormatStandard
impl TypeMarker for DaiFrameFormatStandard
Source§type Owned = DaiFrameFormatStandard
type Owned = DaiFrameFormatStandard
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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 moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
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 DaiFrameFormatStandard
impl ValueTypeMarker for DaiFrameFormatStandard
Source§type Borrowed<'a> = DaiFrameFormatStandard
type Borrowed<'a> = DaiFrameFormatStandard
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for DaiFrameFormatStandard
impl Eq for DaiFrameFormatStandard
impl StructuralPartialEq for DaiFrameFormatStandard
Auto Trait Implementations§
impl Freeze for DaiFrameFormatStandard
impl RefUnwindSafe for DaiFrameFormatStandard
impl Send for DaiFrameFormatStandard
impl Sync for DaiFrameFormatStandard
impl Unpin for DaiFrameFormatStandard
impl UnwindSafe for DaiFrameFormatStandard
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
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)
clone_to_uninit
)