[−][src]Struct lpc54606_pac::i2s0::cfg1::MODE_W
Write proxy for field MODE
Methods
impl<'a> MODE_W<'a>
[src]
pub fn variant(self, variant: MODE_A) -> &'a mut W
[src]
Writes variant
to the field
pub fn classic_mode(self) -> &'a mut W
[src]
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.
pub fn dsp_mode_ws_50_dutycycle(self) -> &'a mut W
[src]
DSP mode where WS has a 50% duty cycle. See remark for mode 0.
pub fn dsp_mode_ws_1_clock(self) -> &'a mut W
[src]
DSP mode where WS has a one clock long pulse at the beginning of each data frame.
pub fn dsp_mode_ws_1_data(self) -> &'a mut W
[src]
DSP mode where WS has a one data slot long pulse at the beginning of each data frame.
pub fn bits(self, value: u8) -> &'a mut W
[src]
Writes raw bits to the field
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,