pub struct W(/* private fields */);
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 - TIM2 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 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 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 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 - TIM6 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 - TIM7 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 - TIM12 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 - TIM13 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 - TIM14 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 - SPI2 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 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 - USART3 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 - UART4 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 - UART5 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 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 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 can1en(
&mut self,
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 25>
pub fn can1en( &mut self, ) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 25>
Bit 25 - CAN 1 clock enable
Sourcepub fn can2en(
&mut self,
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 26>
pub fn can2en( &mut self, ) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 26>
Bit 26 - CAN 2 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
Sourcepub fn uart7en(
&mut self,
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 30>
pub fn uart7en( &mut self, ) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 30>
Bit 30 - UART7 clock enable
Sourcepub fn uart8en(
&mut self,
) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 31>
pub fn uart8en( &mut self, ) -> BitWriterRaw<'_, u32, APB1ENR_SPEC, TIM2EN_A, BitM, 31>
Bit 31 - UART8 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§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more