Struct stm32wlxx_hal::pac::spi1::i2scfgr::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register I2SCFGR
writer
Implementations§
§impl W
impl W
pub 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 - CHLEN
pub 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 - DATLEN
pub 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 - CKPOL
pub 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 - I2SSTD
pub 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 - PCMSYNC
pub 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 - I2SCFG
pub 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 - I2SE
pub 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 - I2SMOD
pub fn astrten(&mut self) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, bool, BitM, 12>
pub fn astrten(&mut self) -> BitWriterRaw<'_, u32, I2SCFGR_SPEC, bool, BitM, 12>
Bit 12 - ASTRTEN
Methods from Deref<Target = W<I2SCFGR_SPEC>>§
pub 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§
§impl From<W<I2SCFGR_SPEC>> for W
impl From<W<I2SCFGR_SPEC>> for W
§fn 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§
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