pub struct W(_);
Expand description
Register APB1ENR
writer
Implementations§
source§impl W
impl W
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 - Timer 2 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 - Timer 3 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 - Timer 4 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 - Timer 5 clock enable
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
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
sourcepub fn tim12en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 6>
pub fn tim12en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 6>
Bit 6 - Timer 12 clock enable
sourcepub fn tim13en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 7>
pub fn tim13en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 7>
Bit 7 - Timer 13 clock enable
sourcepub fn tim14en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 8>
pub fn tim14en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 8>
Bit 8 - Timer 14 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 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 - SPI 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 - SPI 3 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 usart3en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 18>
pub fn usart3en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 18>
Bit 18 - USART 3 clock enable
sourcepub fn uart4en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 19>
pub fn uart4en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 19>
Bit 19 - UART 4 clock enable
sourcepub fn uart5en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 20>
pub fn uart5en(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 20>
Bit 20 - UART 5 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 - I2C 1 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 - I2C 2 clock enable
sourcepub fn usben(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 23>
pub fn usben(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 23>
Bit 23 - USB clock enable
sourcepub fn canen(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 25>
pub fn canen(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 25>
Bit 25 - CAN clock enable
sourcepub fn bkpen(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 27>
pub fn bkpen(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 27>
Bit 27 - Backup interface clock enable
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 dacen(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 29>
pub fn dacen(
&mut self
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 29>
Bit 29 - DAC interface 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.