Struct stm32wlxx_hal::pac::rcc::apb2enr::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register APB2ENR
writer
Implementations§
§impl W
impl W
pub fn tim17en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 18>
pub fn tim17en( &mut self ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 18>
Bit 18 - CPU1 TIM17 timer clock enable
pub fn tim16en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 17>
pub fn tim16en( &mut self ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 17>
Bit 17 - CPU1 TIM16 timer clock enable
pub fn usart1en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 14>
pub fn usart1en( &mut self ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 14>
Bit 14 - CPU1 USART1clocks enable
pub fn spi1en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 12>
pub fn spi1en( &mut self ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 12>
Bit 12 - CPU1 SPI1 clock enable
pub fn tim1en(
&mut self
) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 11>
pub fn tim1en( &mut self ) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 11>
Bit 11 - CPU1 TIM1 timer clock enable
pub fn adcen(&mut self) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 9>
pub fn adcen(&mut self) -> BitWriterRaw<'_, u32, APB2ENR_SPEC, ADCEN_A, BitM, 9>
Bit 9 - CPU1 ADC clocks enable
Methods from Deref<Target = W<APB2ENR_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<APB2ENR_SPEC>> for W
impl From<W<APB2ENR_SPEC>> for W
§fn from(writer: W<APB2ENR_SPEC>) -> W
fn from(writer: W<APB2ENR_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