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 W

Writes raw bits to the register

Source

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

Bit 0 - TIM2 clock enable

Source

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

Bit 1 - TIM3 clock enable

Source

pub fn tim4en(&mut self) -> _TIM4ENW<'_>

Bit 2 - TIM4 clock enable

Source

pub fn tim5en(&mut self) -> _TIM5ENW<'_>

Bit 3 - TIM5 clock enable

Source

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

Bit 4 - TIM6 clock enable

Source

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

Bit 5 - TIM7 clock enable

Source

pub fn tim12en(&mut self) -> _TIM12ENW<'_>

Bit 6 - TIM12 clock enable

Source

pub fn tim13en(&mut self) -> _TIM13ENW<'_>

Bit 7 - TIM13 clock enable

Source

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

Bit 8 - TIM14 clock enable

Source

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

Bit 11 - Window watchdog clock enable

Source

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

Bit 14 - SPI2 clock enable

Source

pub fn spi3en(&mut self) -> _SPI3ENW<'_>

Bit 15 - SPI3 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 uart4en(&mut self) -> _UART4ENW<'_>

Bit 19 - UART4 clock enable

Source

pub fn uart5en(&mut self) -> _UART5ENW<'_>

Bit 20 - UART5 clock enable

Source

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

Bit 21 - I2C1 clock enable

Source

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

Bit 22 - I2C2 clock enable

Source

pub fn i2c3en(&mut self) -> _I2C3ENW<'_>

Bit 23 - I2C3 clock enable

Source

pub fn can1en(&mut self) -> _CAN1ENW<'_>

Bit 25 - CAN 1 clock enable

Source

pub fn can2en(&mut self) -> _CAN2ENW<'_>

Bit 26 - CAN 2 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 uart7en(&mut self) -> _UART7ENW<'_>

Bit 30 - UART7 clock enable

Source

pub fn uart8en(&mut self) -> _UART8ENW<'_>

Bit 31 - UART8 clock enable

Source

pub fn spdifrxen(&mut self) -> _SPDIFRXENW<'_>

Bit 16 - SPDIF-RX clock enable

Source

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

Bit 27 - HDMI-CEN clock enable

Source

pub fn lptmi1en(&mut self) -> _LPTMI1ENW<'_>

Bit 9 - Low power timer 1 clock enable

Source

pub fn i2c4en(&mut self) -> _I2C4ENW<'_>

Bit 24 - I2C4 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> Same for T

Source§

type Output = T

Should always be Self
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.