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 tim2rst(&self) -> Tim2rstR

Bit 0 - Timer 2 reset

Source

pub fn tim3rst(&self) -> Tim3rstR

Bit 1 - Timer 3 reset

Source

pub fn tim6rst(&self) -> Tim6rstR

Bit 4 - Timer 6 reset

Source

pub fn tim7rst(&self) -> Tim7rstR

Bit 5 - TIM7 timer reset

Source

pub fn tim14rst(&self) -> Tim14rstR

Bit 8 - Timer 14 reset

Source

pub fn wwdgrst(&self) -> WwdgrstR

Bit 11 - Window watchdog reset

Source

pub fn spi2rst(&self) -> Spi2rstR

Bit 14 - SPI2 reset

Source

pub fn usart2rst(&self) -> Usart2rstR

Bit 17 - USART 2 reset

Source

pub fn usart3rst(&self) -> Usart3rstR

Bit 18 - USART3 reset

Source

pub fn usart4rst(&self) -> Usart4rstR

Bit 19 - USART4 reset

Source

pub fn i2c1rst(&self) -> I2c1rstR

Bit 21 - I2C1 reset

Source

pub fn i2c2rst(&self) -> I2c2rstR

Bit 22 - I2C2 reset

Source

pub fn usbrst(&self) -> UsbrstR

Bit 23 - USB interface reset

Source

pub fn canrst(&self) -> CanrstR

Bit 25 - CAN interface reset

Source

pub fn crsrst(&self) -> CrsrstR

Bit 27 - Clock Recovery System interface reset

Source

pub fn pwrrst(&self) -> PwrrstR

Bit 28 - Power interface reset

Source

pub fn dacrst(&self) -> DacrstR

Bit 29 - DAC interface reset

Source

pub fn cecrst(&self) -> CecrstR

Bit 30 - HDMI CEC reset

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.