Struct R

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

Value read from the register

Implementations§

Source§

impl R

Source

pub fn bits(&self) -> u32

Value of the register as raw bits

Source

pub fn tim2en(&self) -> Tim2enR

Bit 0 - Timer 2 clock enable

Source

pub fn tim3en(&self) -> Tim3enR

Bit 1 - Timer 3 clock enable

Source

pub fn tim6en(&self) -> Tim6enR

Bit 4 - Timer 6 clock enable

Source

pub fn tim7en(&self) -> Tim7enR

Bit 5 - TIM7 timer clock enable

Source

pub fn tim14en(&self) -> Tim14enR

Bit 8 - Timer 14 clock enable

Source

pub fn wwdgen(&self) -> WwdgenR

Bit 11 - Window watchdog clock enable

Source

pub fn spi2en(&self) -> Spi2enR

Bit 14 - SPI 2 clock enable

Source

pub fn usart2en(&self) -> Usart2enR

Bit 17 - USART 2 clock enable

Source

pub fn usart3en(&self) -> Usart3enR

Bit 18 - USART3 clock enable

Source

pub fn usart4en(&self) -> Usart4enR

Bit 19 - USART4 clock enable

Source

pub fn i2c1en(&self) -> I2c1enR

Bit 21 - I2C 1 clock enable

Source

pub fn i2c2en(&self) -> I2c2enR

Bit 22 - I2C 2 clock enable

Source

pub fn usbrst(&self) -> UsbrstR

Bit 23 - USB interface clock enable

Source

pub fn canen(&self) -> CanenR

Bit 25 - CAN interface clock enable

Source

pub fn crsen(&self) -> CrsenR

Bit 27 - Clock Recovery System interface clock enable

Source

pub fn pwren(&self) -> PwrenR

Bit 28 - Power interface clock enable

Source

pub fn dacen(&self) -> DacenR

Bit 29 - DAC interface clock enable

Source

pub fn cecen(&self) -> CecenR

Bit 30 - HDMI CEC interface clock enable

Auto Trait Implementations§

§

impl Freeze for R

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

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.