pub struct W(_);
Expand description
Register APB1ENR
writer
Implementations
sourceimpl W
impl W
sourcepub fn pwren(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 28>
pub fn pwren(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 28>
Bit 28 - Power interface clock enable
sourcepub fn i2c3en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 23>
pub fn i2c3en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 23>
Bit 23 - I2C3 clock enable
sourcepub fn i2c2en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 22>
pub fn i2c2en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 22>
Bit 22 - I2C2 clock enable
sourcepub fn i2c1en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 21>
pub fn i2c1en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 21>
Bit 21 - I2C1 clock enable
sourcepub fn usart2en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 17>
pub fn usart2en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 17>
Bit 17 - USART 2 clock enable
sourcepub fn spi3en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 15>
pub fn spi3en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 15>
Bit 15 - SPI3 clock enable
sourcepub fn spi2en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 14>
pub fn spi2en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 14>
Bit 14 - SPI2 clock enable
sourcepub fn wwdgen(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 11>
pub fn wwdgen(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 11>
Bit 11 - Window watchdog clock enable
sourcepub fn tim5en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 3>
pub fn tim5en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 3>
Bit 3 - TIM5 clock enable
sourcepub fn tim4en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 2>
pub fn tim4en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 2>
Bit 2 - TIM4 clock enable
sourcepub fn tim3en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 1>
pub fn tim3en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 1>
Bit 1 - TIM3 clock enable
sourcepub fn tim2en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 0>
pub fn tim2en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 0>
Bit 0 - TIM2 clock enable
Methods from Deref<Target = W<APB1ENR_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<APB1ENR_SPEC>> for W
impl From<W<APB1ENR_SPEC>> for W
sourcefn from(writer: W<APB1ENR_SPEC>) -> W
fn from(writer: W<APB1ENR_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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