Struct W

Source
pub struct W { /* private fields */ }
Expand description

Value to write to the register

Implementations§

Source§

impl W

Source

pub fn reset_value() -> W

Reset value of the register

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register

Source

pub fn tim2en(&mut self) -> _Tim2enW<'_>

Bit 0 - Timer 2 clock enable

Source

pub fn tim3en(&mut self) -> _Tim3enW<'_>

Bit 1 - Timer 3 clock enable

Source

pub fn tim6en(&mut self) -> _Tim6enW<'_>

Bit 4 - Timer 6 clock enable

Source

pub fn tim7en(&mut self) -> _Tim7enW<'_>

Bit 5 - TIM7 timer clock enable

Source

pub fn tim14en(&mut self) -> _Tim14enW<'_>

Bit 8 - Timer 14 clock enable

Source

pub fn wwdgen(&mut self) -> _WwdgenW<'_>

Bit 11 - Window watchdog clock enable

Source

pub fn spi2en(&mut self) -> _Spi2enW<'_>

Bit 14 - SPI 2 clock enable

Source

pub fn usart2en(&mut self) -> _Usart2enW<'_>

Bit 17 - USART 2 clock enable

Source

pub fn usart3en(&mut self) -> _Usart3enW<'_>

Bit 18 - USART3 clock enable

Source

pub fn usart4en(&mut self) -> _Usart4enW<'_>

Bit 19 - USART4 clock enable

Source

pub fn i2c1en(&mut self) -> _I2c1enW<'_>

Bit 21 - I2C 1 clock enable

Source

pub fn i2c2en(&mut self) -> _I2c2enW<'_>

Bit 22 - I2C 2 clock enable

Source

pub fn usbrst(&mut self) -> _UsbrstW<'_>

Bit 23 - USB interface clock enable

Source

pub fn canen(&mut self) -> _CanenW<'_>

Bit 25 - CAN interface clock enable

Source

pub fn crsen(&mut self) -> _CrsenW<'_>

Bit 27 - Clock Recovery System interface clock enable

Source

pub fn pwren(&mut self) -> _PwrenW<'_>

Bit 28 - Power interface clock enable

Source

pub fn dacen(&mut self) -> _DacenW<'_>

Bit 29 - DAC interface clock enable

Source

pub fn cecen(&mut self) -> _CecenW<'_>

Bit 30 - HDMI CEC interface clock enable

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.