pub struct W(/* private fields */);
Expand description
Register APB2ENR
writer
Implementations§
Source§impl W
impl W
Sourcepub fn tim1en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 0>
pub fn tim1en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 0>
Bit 0 - TIM1 clock enable
Sourcepub fn tim8en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 1>
pub fn tim8en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 1>
Bit 1 - TIM8 clock enable
Sourcepub fn usart1en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 4>
pub fn usart1en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 4>
Bit 4 - USART1 clock enable
Sourcepub fn usart6en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 5>
pub fn usart6en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 5>
Bit 5 - USART6 clock enable
Sourcepub fn adc1en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 8>
pub fn adc1en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 8>
Bit 8 - ADC1 clock enable
Sourcepub fn adc2en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 9>
pub fn adc2en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 9>
Bit 9 - ADC2 clock enable
Sourcepub fn adc3en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 10>
pub fn adc3en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 10>
Bit 10 - ADC3 clock enable
Sourcepub fn sdioen(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 11>
pub fn sdioen( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 11>
Bit 11 - SDIO clock enable
Sourcepub fn spi1en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 12>
pub fn spi1en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 12>
Bit 12 - SPI1 clock enable
Sourcepub fn syscfgen(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 14>
pub fn syscfgen( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 14>
Bit 14 - System configuration controller clock enable
Sourcepub fn tim9en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 16>
pub fn tim9en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 16>
Bit 16 - TIM9 clock enable
Sourcepub fn tim10en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 17>
pub fn tim10en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 17>
Bit 17 - TIM10 clock enable
Sourcepub fn tim11en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 18>
pub fn tim11en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 18>
Bit 18 - TIM11 clock enable
Sourcepub fn spi6en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 21>
pub fn spi6en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 21>
Bit 21 - SPI6 clock enable
Sourcepub fn sai1en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 22>
pub fn sai1en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 22>
Bit 22 - SAI1 clock enable
Sourcepub fn ltdcen(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 26>
pub fn ltdcen( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 26>
Bit 26 - LTDC clock enable
Sourcepub fn spi4en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 13>
pub fn spi4en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 13>
Bit 13 - SPI4 clock enable
Sourcepub fn spi5en(
&mut self,
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 20>
pub fn spi5en( &mut self, ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, TIM1EN_A, BitM, 20>
Bit 20 - SPI5 clock enable
Methods from Deref<Target = W<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§
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