pub struct W(_);
Expand description
Register CR2
writer
Implementations§
source§impl W
impl W
sourcepub fn last(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, LAST_A, BitM, 12>
pub fn last(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, LAST_A, BitM, 12>
Bit 12 - DMA last transfer
sourcepub fn dmaen(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, DMAEN_A, BitM, 11>
pub fn dmaen(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, DMAEN_A, BitM, 11>
Bit 11 - DMA requests enable
sourcepub fn itbufen(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, ITBUFEN_A, BitM, 10>
pub fn itbufen(
&mut self
) -> BitWriterRaw<'_, u32, CR2_SPEC, ITBUFEN_A, BitM, 10>
Bit 10 - Buffer interrupt enable
sourcepub fn itevten(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ITEVTEN_A, BitM, 9>
pub fn itevten(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ITEVTEN_A, BitM, 9>
Bit 9 - Event interrupt enable
sourcepub fn iterren(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ITERREN_A, BitM, 8>
pub fn iterren(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ITERREN_A, BitM, 8>
Bit 8 - Error interrupt enable
Methods from Deref<Target = W<CR2_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.