[][src]Enum lpc55s6x_pac::i2s0::cfg1::MODER

pub enum MODER {
    CLASSIC_MODE,
    DSP_MODE_WS_50_DUTYCYCLE,
    DSP_MODE_WS_1_CLOCK,
    DSP_MODE_WS_1_DATA,
}
[]

Possible values of the field MODE

Variants

CLASSIC_MODE
[]

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
[]

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

DSP_MODE_WS_1_CLOCK
[]

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

DSP_MODE_WS_1_DATA
[]

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

Methods

impl MODER[src][]

pub fn bits(&self) -> u8[src][]

Value of the field as raw bits

pub fn is_classic_mode(&self) -> bool[src][]

Checks if the value of the field is CLASSIC_MODE

pub fn is_dsp_mode_ws_50_dutycycle(&self) -> bool[src][]

Checks if the value of the field is DSP_MODE_WS_50_DUTYCYCLE

pub fn is_dsp_mode_ws_1_clock(&self) -> bool[src][]

Checks if the value of the field is DSP_MODE_WS_1_CLOCK

pub fn is_dsp_mode_ws_1_data(&self) -> bool[src][]

Checks if the value of the field is DSP_MODE_WS_1_DATA

Trait Implementations

impl PartialEq<MODER> for MODER[src][+]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src][]

This method tests for !=.

impl Copy for MODER[src]

impl Debug for MODER[src][+]

impl Clone for MODER[src][+]

fn clone_from(&mut self, source: &Self)1.0.0[src][]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for MODER

impl Sync for MODER

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src][+]

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.

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

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

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

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

type Output = T

Should always be Self