pub struct W(/* private fields */);
Expand description
Register I2SCFGR
writer
Implementations§
source§impl W
impl W
sourcepub fn i2smod(
&mut self
) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, I2SMOD_A, BitM, 11>
pub fn i2smod( &mut self ) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, I2SMOD_A, BitM, 11>
Bit 11 - I2S mode selection
sourcepub fn i2se(&mut self) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, I2SE_A, BitM, 10>
pub fn i2se(&mut self) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, I2SE_A, BitM, 10>
Bit 10 - I2S Enable
sourcepub fn i2scfg(
&mut self
) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, I2SCFG_A, Safe, 2, 8>
pub fn i2scfg( &mut self ) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, I2SCFG_A, Safe, 2, 8>
Bits 8:9 - I2S configuration mode
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 ckpol(&mut self) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, CKPOL_A, BitM, 3>
pub fn ckpol(&mut self) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, CKPOL_A, BitM, 3>
Bit 3 - Steady state clock polarity
sourcepub fn datlen(
&mut self
) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, DATLEN_A, Unsafe, 2, 1>
pub fn datlen( &mut self ) -> FieldWriterRaw<'_, u32, I2SCFGR_SPEC, u8, DATLEN_A, Unsafe, 2, 1>
Bits 1:2 - Data length to be transferred
sourcepub fn chlen(&mut self) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, CHLEN_A, BitM, 0>
pub fn chlen(&mut self) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, CHLEN_A, BitM, 0>
Bit 0 - Channel length (number of bits per audio channel)
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§
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more