[][src]Enum lpc54606_pac::i2s0::cfg1::MODE_A

#[repr(u8)]pub enum MODE_A {
    CLASSIC_MODE,
    DSP_MODE_WS_50_DUTYCYCLE,
    DSP_MODE_WS_1_CLOCK,
    DSP_MODE_WS_1_DATA,
}

Selects the basic I2S operating mode. Other configurations modify this to obtain all supported cases. See Formats and modes for examples.

Value on reset: 0

Variants

CLASSIC_MODE

0: I2S mode a.k.a. 'classic' mode. WS has a 50% duty cycle, with (for each enabled channel pair) one piece of left channel data occurring during the first phase, and one pieces of right channel data occurring during the second phase. In this mode, the data region begins one clock after the leading WS edge for the frame. For a 50% WS duty cycle, FRAMELEN must define an even number of I2S clocks for the frame. If FRAMELEN defines an odd number of clocks per frame, the extra clock will occur on the right.

DSP_MODE_WS_50_DUTYCYCLE

1: DSP mode where WS has a 50% duty cycle. See remark for mode 0.

DSP_MODE_WS_1_CLOCK

2: DSP mode where WS has a one clock long pulse at the beginning of each data frame.

DSP_MODE_WS_1_DATA

3: DSP mode where WS has a one data slot long pulse at the beginning of each data frame.

Trait Implementations

impl Clone for MODE_A[src]

impl Copy for MODE_A[src]

impl Debug for MODE_A[src]

impl From<MODE_A> for u8[src]

impl PartialEq<MODE_A> for MODE_A[src]

impl StructuralPartialEq for MODE_A[src]

Auto Trait Implementations

impl Send for MODE_A

impl Sync for MODE_A

impl Unpin for MODE_A

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.