Struct stm32_hal2::pac::rcc::c1_apb2enr::W
source · [−]pub struct W(_);
Expand description
Register C1_APB2ENR
writer
Implementations
sourceimpl W
impl W
sourcepub fn tim1en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 0>
pub fn tim1en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 0>
Bit 0 - TIM1 peripheral clock enable
sourcepub fn tim8en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 1>
pub fn tim8en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 1>
Bit 1 - TIM8 peripheral clock enable
sourcepub fn usart1en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 4>
pub fn usart1en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 4>
Bit 4 - USART1 Peripheral Clocks Enable
sourcepub fn usart6en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 5>
pub fn usart6en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 5>
Bit 5 - USART6 Peripheral Clocks Enable
sourcepub fn spi1en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 12>
pub fn spi1en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 12>
Bit 12 - SPI1 Peripheral Clocks Enable
sourcepub fn spi4en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 13>
pub fn spi4en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 13>
Bit 13 - SPI4 Peripheral Clocks Enable
sourcepub fn tim16en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 17>
pub fn tim16en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 17>
Bit 17 - TIM16 peripheral clock enable
sourcepub fn tim15en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 16>
pub fn tim15en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 16>
Bit 16 - TIM15 peripheral clock enable
sourcepub fn tim17en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 18>
pub fn tim17en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 18>
Bit 18 - TIM17 peripheral clock enable
sourcepub fn spi5en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 20>
pub fn spi5en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 20>
Bit 20 - SPI5 Peripheral Clocks Enable
sourcepub fn sai1en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 22>
pub fn sai1en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 22>
Bit 22 - SAI1 Peripheral Clocks Enable
sourcepub fn sai2en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 23>
pub fn sai2en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 23>
Bit 23 - SAI2 Peripheral Clocks Enable
sourcepub fn sai3en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 24>
pub fn sai3en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 24>
Bit 24 - SAI3 Peripheral Clocks Enable
sourcepub fn dfsdm1en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 28>
pub fn dfsdm1en(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 28>
Bit 28 - DFSDM1 Peripheral Clocks Enable
sourcepub fn hrtimen(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 29>
pub fn hrtimen(
&mut self
) -> BitWriterRaw<'_, u32, C1_APB2ENR_SPEC, TIM1EN_A, BitM, 29>
Bit 29 - HRTIM peripheral clock enable
Methods from Deref<Target = W<C1_APB2ENR_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<C1_APB2ENR_SPEC>> for W
impl From<W<C1_APB2ENR_SPEC>> for W
sourcefn from(writer: W<C1_APB2ENR_SPEC>) -> W
fn from(writer: W<C1_APB2ENR_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