pub struct W(/* private fields */);
Expand description
Register CR1
writer
Implementations§
source§impl W
impl W
sourcepub fn mckdiv(
&mut self
) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, u8, Unsafe, 4, 20>
pub fn mckdiv( &mut self ) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, u8, Unsafe, 4, 20>
Bits 20:23 - Master clock divider
sourcepub fn nodiv(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, NODIV_A, BitM, 19>
pub fn nodiv(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, NODIV_A, BitM, 19>
Bit 19 - No divider
sourcepub fn dmaen(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, DMAEN_A, BitM, 17>
pub fn dmaen(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, DMAEN_A, BitM, 17>
Bit 17 - DMA enable
sourcepub fn saien(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SAIEN_A, BitM, 16>
pub fn saien(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, SAIEN_A, BitM, 16>
Bit 16 - Audio block A enable
sourcepub fn outdriv(
&mut self
) -> BitWriterRaw<'_, u32, CR1_SPEC, OUTDRIV_A, BitM, 13>
pub fn outdriv( &mut self ) -> BitWriterRaw<'_, u32, CR1_SPEC, OUTDRIV_A, BitM, 13>
Bit 13 - Output drive
sourcepub fn syncen(
&mut self
) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, SYNCEN_A, Unsafe, 2, 10>
pub fn syncen( &mut self ) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, SYNCEN_A, Unsafe, 2, 10>
Bits 10:11 - Synchronization enable
sourcepub fn ckstr(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, CKSTR_A, BitM, 9>
pub fn ckstr(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, CKSTR_A, BitM, 9>
Bit 9 - Clock strobing edge
sourcepub fn lsbfirst(
&mut self
) -> BitWriterRaw<'_, u32, CR1_SPEC, LSBFIRST_A, BitM, 8>
pub fn lsbfirst( &mut self ) -> BitWriterRaw<'_, u32, CR1_SPEC, LSBFIRST_A, BitM, 8>
Bit 8 - Least significant bit first
sourcepub fn ds(
&mut self
) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, DS_A, Unsafe, 3, 5>
pub fn ds( &mut self ) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, DS_A, Unsafe, 3, 5>
Bits 5:7 - Data size
sourcepub fn prtcfg(
&mut self
) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, PRTCFG_A, Unsafe, 2, 2>
pub fn prtcfg( &mut self ) -> FieldWriterRaw<'_, u32, CR1_SPEC, u8, PRTCFG_A, Unsafe, 2, 2>
Bits 2:3 - Protocol configuration
Methods from Deref<Target = W<CR1_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§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
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