Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn cr(&self) -> &CR

0x00 - Clock control register

Source

pub const fn icscr(&self) -> &ICSCR

0x04 - Internal clock sources calibration register

Source

pub const fn cfgr(&self) -> &CFGR

0x08 - Clock configuration register

Source

pub const fn pllcfgr(&self) -> &PLLCFGR

0x0c - PLL configuration register

Source

pub const fn pllsai1cfgr(&self) -> &PLLSAI1CFGR

0x10 - PLLSAI1 configuration register

Source

pub const fn cier(&self) -> &CIER

0x18 - Clock interrupt enable register

Source

pub const fn cifr(&self) -> &CIFR

0x1c - Clock interrupt flag register

Source

pub const fn cicr(&self) -> &CICR

0x20 - Clock interrupt clear register

Source

pub const fn ahb1rstr(&self) -> &AHB1RSTR

0x28 - AHB1 peripheral reset register

Source

pub const fn ahb2rstr(&self) -> &AHB2RSTR

0x2c - AHB2 peripheral reset register

Source

pub const fn ahb3rstr(&self) -> &AHB3RSTR

0x30 - AHB3 peripheral reset register

Source

pub const fn apb1rstr1(&self) -> &APB1RSTR1

0x38 - APB1 peripheral reset register 1

Source

pub const fn apb1rstr2(&self) -> &APB1RSTR2

0x3c - APB1 peripheral reset register 2

Source

pub const fn apb2rstr(&self) -> &APB2RSTR

0x40 - APB2 peripheral reset register

Source

pub const fn ahb1enr(&self) -> &AHB1ENR

0x48 - AHB1 peripheral clock enable register

Source

pub const fn ahb2enr(&self) -> &AHB2ENR

0x4c - AHB2 peripheral clock enable register

Source

pub const fn ahb3enr(&self) -> &AHB3ENR

0x50 - AHB3 peripheral clock enable register

Source

pub const fn apb1enr1(&self) -> &APB1ENR1

0x58 - APB1ENR1

Source

pub const fn apb1enr2(&self) -> &APB1ENR2

0x5c - APB1 peripheral clock enable register 2

Source

pub const fn apb2enr(&self) -> &APB2ENR

0x60 - APB2ENR

Source

pub const fn ahb1smenr(&self) -> &AHB1SMENR

0x68 - AHB1 peripheral clocks enable in Sleep and Stop modes register

Source

pub const fn ahb2smenr(&self) -> &AHB2SMENR

0x6c - AHB2 peripheral clocks enable in Sleep and Stop modes register

Source

pub const fn ahb3smenr(&self) -> &AHB3SMENR

0x70 - AHB3 peripheral clocks enable in Sleep and Stop modes register

Source

pub const fn apb1smenr1(&self) -> &APB1SMENR1

0x78 - APB1SMENR1

Source

pub const fn apb1smenr2(&self) -> &APB1SMENR2

0x7c - APB1 peripheral clocks enable in Sleep and Stop modes register 2

Source

pub const fn apb2smenr(&self) -> &APB2SMENR

0x80 - APB2SMENR

Source

pub const fn ccipr(&self) -> &CCIPR

0x88 - CCIPR

Source

pub const fn bdcr(&self) -> &BDCR

0x90 - BDCR

Source

pub const fn csr(&self) -> &CSR

0x94 - CSR

Source

pub const fn crrcr(&self) -> &CRRCR

0x98 - Clock recovery RC register

Trait Implementations§

Source§

impl Debug for RegisterBlock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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, 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.