Struct Rcc

Source
#[repr(C)]
pub struct Rcc {
Show 13 fields pub cr: Cr, pub cfgr: Cfgr, pub cir: Cir, pub apb2rstr: Apb2rstr, pub apb1rstr: Apb1rstr, pub ahbenr: Ahbenr, pub apb2enr: Apb2enr, pub apb1enr: Apb1enr, pub bdcr: Bdcr, pub csr: Csr, pub ahbrstr: Ahbrstr, pub cfgr2: Cfgr2, pub cfgr3: Cfgr3,
}
Expand description

Reset and clock control

Fields§

§cr: Cr

0x00 - Clock control register

§cfgr: Cfgr

0x04 - Clock configuration register (RCC_CFGR)

§cir: Cir

0x08 - Clock interrupt register (RCC_CIR)

§apb2rstr: Apb2rstr

0x0c - APB2 peripheral reset register (RCC_APB2RSTR)

§apb1rstr: Apb1rstr

0x10 - APB1 peripheral reset register (RCC_APB1RSTR)

§ahbenr: Ahbenr

0x14 - AHB Peripheral Clock enable register (RCC_AHBENR)

§apb2enr: Apb2enr

0x18 - APB2 peripheral clock enable register (RCC_APB2ENR)

§apb1enr: Apb1enr

0x1c - APB1 peripheral clock enable register (RCC_APB1ENR)

§bdcr: Bdcr

0x20 - Backup domain control register (RCC_BDCR)

§csr: Csr

0x24 - Control/status register (RCC_CSR)

§ahbrstr: Ahbrstr

0x28 - AHB peripheral reset register

§cfgr2: Cfgr2

0x2c - Clock configuration register 2

§cfgr3: Cfgr3

0x30 - Clock configuration register 3

Auto Trait Implementations§

§

impl Freeze for Rcc

§

impl RefUnwindSafe for Rcc

§

impl Send for Rcc

§

impl Sync for Rcc

§

impl Unpin for Rcc

§

impl UnwindSafe for Rcc

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.