Struct stm32wlxx_hal::pac::rcc::c2apb1enr1::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register C2APB1ENR1
writer
Implementations§
§impl W
impl W
pub fn lptim1en(
&mut self
) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 31>
pub fn lptim1en( &mut self ) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 31>
Bit 31 - CPU2 Low power timer 1 clocks enable
pub fn dac1en(
&mut self
) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 29>
pub fn dac1en( &mut self ) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 29>
Bit 29 - CPU2 DAC1 clock enable
pub fn i2c3en(
&mut self
) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 23>
pub fn i2c3en( &mut self ) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 23>
Bit 23 - CPU2 I2C3 clocks enable
pub fn i2c2en(
&mut self
) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 22>
pub fn i2c2en( &mut self ) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 22>
Bit 22 - CPU2 I2C2 clocks enable
pub fn i2c1en(
&mut self
) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 21>
pub fn i2c1en( &mut self ) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 21>
Bit 21 - CPU2 I2C1 clocks enable
pub fn usart2en(
&mut self
) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 17>
pub fn usart2en( &mut self ) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 17>
Bit 17 - CPU2 USART2 clock enable
pub fn spi2s2en(
&mut self
) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 14>
pub fn spi2s2en( &mut self ) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 14>
Bit 14 - CPU2 SPI2S2 clock enable
pub fn rtcapben(
&mut self
) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 10>
pub fn rtcapben( &mut self ) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 10>
Bit 10 - CPU2 RTC APB clock enable
pub fn tim2en(
&mut self
) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 0>
pub fn tim2en( &mut self ) -> BitWriterRaw<'_, u32, C2APB1ENR1_SPEC, TIM2EN_A, BitM, 0>
Bit 0 - CPU2 TIM2 timer clock enable
Methods from Deref<Target = W<C2APB1ENR1_SPEC>>§
pub 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§
§impl From<W<C2APB1ENR1_SPEC>> for W
impl From<W<C2APB1ENR1_SPEC>> for W
§fn from(writer: W<C2APB1ENR1_SPEC>) -> W
fn from(writer: W<C2APB1ENR1_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations§
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