pub struct W(_);
Expand description
Register CR1
writer
Implementations§
source§impl W
impl W
sourcepub fn rwu(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, RWU_A, BitM, 1>
pub fn rwu(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, RWU_A, BitM, 1>
Bit 1 - Receiver wakeup
sourcepub fn te(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, TE_A, BitM, 3>
pub fn te(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, TE_A, BitM, 3>
Bit 3 - Transmitter enable
sourcepub fn idleie(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, IDLEIE_A, BitM, 4>
pub fn idleie(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, IDLEIE_A, BitM, 4>
Bit 4 - IDLE interrupt enable
sourcepub fn rxneie(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, RXNEIE_A, BitM, 5>
pub fn rxneie(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, RXNEIE_A, BitM, 5>
Bit 5 - RXNE interrupt enable
sourcepub fn tcie(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, TCIE_A, BitM, 6>
pub fn tcie(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, TCIE_A, BitM, 6>
Bit 6 - Transmission complete interrupt enable
sourcepub fn txeie(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, TXEIE_A, BitM, 7>
pub fn txeie(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, TXEIE_A, BitM, 7>
Bit 7 - TXE interrupt enable
sourcepub fn peie(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, PEIE_A, BitM, 8>
pub fn peie(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, PEIE_A, BitM, 8>
Bit 8 - PE interrupt enable
sourcepub fn ps(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, PS_A, BitM, 9>
pub fn ps(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, PS_A, BitM, 9>
Bit 9 - Parity selection
sourcepub fn pce(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, PCE_A, BitM, 10>
pub fn pce(&mut self) -> BitWriterRaw<'_, u32, CR1_SPEC, PCE_A, BitM, 10>
Bit 10 - Parity control enable
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.