pub struct W(_);
Expand description
Register APB2ENR
writer
Implementations
sourceimpl W
impl W
sourcepub fn dbgen(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 22>
pub fn dbgen(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 22>
Bit 22 - DBG clock enable bit
sourcepub fn usart1en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 14>
pub fn usart1en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 14>
Bit 14 - USART1 clock enable bit
sourcepub fn spi1en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 12>
pub fn spi1en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 12>
Bit 12 - SPI1 clock enable bit
sourcepub fn adcen(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 9>
pub fn adcen(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 9>
Bit 9 - ADC clock enable bit
sourcepub fn fwen(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 7>
pub fn fwen(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 7>
Bit 7 - Firewall clock enable bit
sourcepub fn tim22en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 5>
pub fn tim22en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 5>
Bit 5 - TIM22 timer clock enable bit
sourcepub fn tim21en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 2>
pub fn tim21en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 2>
Bit 2 - TIM21 timer clock enable bit
sourcepub fn syscfgen(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 0>
pub fn syscfgen(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, SYSCFGEN_A, BitM, 0>
Bit 0 - System configuration controller clock enable bit
Methods from Deref<Target = W<APB2ENR_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
sourceimpl From<W<APB2ENR_SPEC>> for W
impl From<W<APB2ENR_SPEC>> for W
sourcefn from(writer: W<APB2ENR_SPEC>) -> W
fn from(writer: W<APB2ENR_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more