Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock {
Show 25 fields pub cr: CR, pub pllcfgr: PLLCFGR, pub cfgr: CFGR, pub cir: CIR, pub ahb1rstr: AHB1RSTR, pub ahb2rstr: AHB2RSTR, pub ahb3rstr: AHB3RSTR, pub apb1rstr: APB1RSTR, pub apb2rstr: APB2RSTR, pub ahb1enr: AHB1ENR, pub ahb2enr: AHB2ENR, pub ahb3enr: AHB3ENR, pub apb1enr: APB1ENR, pub apb2enr: APB2ENR, pub ahb1lpenr: AHB1LPENR, pub ahb2lpenr: AHB2LPENR, pub ahb3lpenr: AHB3LPENR, pub apb1lpenr: APB1LPENR, pub apb2lpenr: APB2LPENR, pub bdcr: BDCR, pub csr: CSR, pub sscgr: SSCGR, pub plli2scfgr: PLLI2SCFGR, pub pllsaicfgr: PLLSAICFGR, pub dckcfgr: DCKCFGR, /* private fields */
}
Expand description

Register block

Fields§

§cr: CR

0x00 - clock control register

§pllcfgr: PLLCFGR

0x04 - PLL configuration register

§cfgr: CFGR

0x08 - clock configuration register

§cir: CIR

0x0c - clock interrupt register

§ahb1rstr: AHB1RSTR

0x10 - AHB1 peripheral reset register

§ahb2rstr: AHB2RSTR

0x14 - AHB2 peripheral reset register

§ahb3rstr: AHB3RSTR

0x18 - AHB3 peripheral reset register

§apb1rstr: APB1RSTR

0x20 - APB1 peripheral reset register

§apb2rstr: APB2RSTR

0x24 - APB2 peripheral reset register

§ahb1enr: AHB1ENR

0x30 - AHB1 peripheral clock register

§ahb2enr: AHB2ENR

0x34 - AHB2 peripheral clock enable register

§ahb3enr: AHB3ENR

0x38 - AHB3 peripheral clock enable register

§apb1enr: APB1ENR

0x40 - APB1 peripheral clock enable register

§apb2enr: APB2ENR

0x44 - APB2 peripheral clock enable register

§ahb1lpenr: AHB1LPENR

0x50 - AHB1 peripheral clock enable in low power mode register

§ahb2lpenr: AHB2LPENR

0x54 - AHB2 peripheral clock enable in low power mode register

§ahb3lpenr: AHB3LPENR

0x58 - AHB3 peripheral clock enable in low power mode register

§apb1lpenr: APB1LPENR

0x60 - APB1 peripheral clock enable in low power mode register

§apb2lpenr: APB2LPENR

0x64 - APB2 peripheral clock enabled in low power mode register

§bdcr: BDCR

0x70 - Backup domain control register

§csr: CSR

0x74 - clock control & status register

§sscgr: SSCGR

0x80 - spread spectrum clock generation register

§plli2scfgr: PLLI2SCFGR

0x84 - PLLI2S configuration register

§pllsaicfgr: PLLSAICFGR

0x88 - RCC PLL configuration register

§dckcfgr: DCKCFGR

0x8c - RCC Dedicated Clock Configuration Register

Auto Trait Implementations§

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.