pub struct W(_);
Expand description
Register APB1ENR
writer
Implementations
sourceimpl W
impl W
sourcepub fn lptim1en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 31>
pub fn lptim1en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 31>
Bit 31 - Low power timer clock enable bit
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 bit
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 bit
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 bit
sourcepub fn lpuart1en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 18>
pub fn lpuart1en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 18>
Bit 18 - LPUART1 clock enable bit
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 - UART2 clock enable bit
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 bit
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 bit
sourcepub fn tim6en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 4>
pub fn tim6en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 4>
Bit 4 - Timer 6 clock enable bit
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 - Timer2 clock enable bit
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 - Timer 3 clock enbale bit
sourcepub fn tim7en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 5>
pub fn tim7en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 5>
Bit 5 - Timer 7 clock enable bit
sourcepub fn usart4en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 19>
pub fn usart4en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 19>
Bit 19 - USART4 clock enable bit
sourcepub fn usart5en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 20>
pub fn usart5en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 20>
Bit 20 - USART5 clock enable bit
sourcepub fn i2c3en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 30>
pub fn i2c3en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 30>
Bit 30 - I2C3 clock enable bit
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 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