pub struct W(_);
Expand description
Register I2SCFGR
writer
Implementations
sourceimpl W
impl W
sourcepub fn mckoe(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, MCKOE_A, BitM, 25>
pub fn mckoe(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, MCKOE_A, BitM, 25>
Bit 25 - Master clock output enable
sourcepub fn odd(&mut self) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, ODD_A, BitM, 24>
pub fn odd(&mut self) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, ODD_A, BitM, 24>
Bit 24 - Odd factor for the prescaler
sourcepub fn i2sdiv(
&mut self
) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, u8, Safe, 8, 16>
pub fn i2sdiv(
&mut self
) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, u8, Safe, 8, 16>
Bits 16:23 - I2S linear prescaler
sourcepub fn datfmt(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, DATFMT_A, BitM, 14>
pub fn datfmt(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, DATFMT_A, BitM, 14>
Bit 14 - Data format
sourcepub fn wsinv(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, WSINV_A, BitM, 13>
pub fn wsinv(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, WSINV_A, BitM, 13>
Bit 13 - Fixed channel length in SLAVE
sourcepub fn fixch(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, FIXCH_A, BitM, 12>
pub fn fixch(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, FIXCH_A, BitM, 12>
Bit 12 - Word select inversion
sourcepub fn ckpol(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, CKPOL_A, BitM, 11>
pub fn ckpol(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, CKPOL_A, BitM, 11>
Bit 11 - Serial audio clock polarity
sourcepub fn chlen(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, CHLEN_A, BitM, 10>
pub fn chlen(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, CHLEN_A, BitM, 10>
Bit 10 - Channel length (number of bits per audio channel)
sourcepub fn datlen(
&mut self
) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, DATLEN_A, Unsafe, 2, 8>
pub fn datlen(
&mut self
) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, DATLEN_A, Unsafe, 2, 8>
Bits 8:9 - Data length to be transferred
sourcepub fn pcmsync(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, PCMSYNC_A, BitM, 7>
pub fn pcmsync(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, PCMSYNC_A, BitM, 7>
Bit 7 - PCM frame synchronization
sourcepub fn i2sstd(
&mut self
) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, I2SSTD_A, Safe, 2, 4>
pub fn i2sstd(
&mut self
) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, I2SSTD_A, Safe, 2, 4>
Bits 4:5 - I2S standard selection
sourcepub fn i2scfg(
&mut self
) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, I2SCFG_A, Unsafe, 3, 1>
pub fn i2scfg(
&mut self
) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, I2SCFG_A, Unsafe, 3, 1>
Bits 1:3 - I2S configuration mode
sourcepub fn i2smod(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, I2SMOD_A, BitM, 0>
pub fn i2smod(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, I2SMOD_A, BitM, 0>
Bit 0 - I2S mode selection
Methods from Deref<Target = W<I2SCFGR_SPEC>>
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations
sourceimpl From<W<I2SCFGR_SPEC>> for W
impl From<W<I2SCFGR_SPEC>> for W
sourcefn from(writer: W<I2SCFGR_SPEC>) -> W
fn from(writer: W<I2SCFGR_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more