pub struct W(_);
Expand description
Register APB2EN
writer
Implementations
sourceimpl W
impl W
sourcepub fn cfgcmpen(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
pub fn cfgcmpen(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
Bit 0 - System configuration and comparator clock enable
sourcepub fn adcen(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
pub fn adcen(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
Bit 9 - ADC interface clock enable
sourcepub fn timer0en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
pub fn timer0en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
Bit 11 - TIMER0 timer clock enable
sourcepub fn spi0en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
pub fn spi0en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
Bit 12 - SPI0 clock enable
sourcepub fn usart0en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
pub fn usart0en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
Bit 14 - USART0 clock enable
sourcepub fn timer14en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
pub fn timer14en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
Bit 16 - TIMER14 timer clock enable
sourcepub fn timer15en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
pub fn timer15en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
Bit 17 - TIMER15 timer clock enable
sourcepub fn timer16en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
pub fn timer16en(
&mut self
) -> BitWriterRaw<'_, u32, APB2EN_SPEC, CFGCMPEN_A, BitM, 0_u8>
Bit 18 - TIMER16 timer clock enable
Methods from Deref<Target = W<APB2EN_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<APB2EN_SPEC>> for W
impl From<W<APB2EN_SPEC>> for W
sourcefn from(writer: W<APB2EN_SPEC>) -> W
fn from(writer: W<APB2EN_SPEC>) -> W
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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