HpsysCfg

Struct HpsysCfg 

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

HPSYS_CFG

Implementations§

Source§

impl HpsysCfg

Source

pub const PTR: *const RegisterBlock = {0x5000b000 as *const hpsys_cfg::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn bmr(&self) -> &Bmr

0x00 - Boot Mode Register

Source

pub fn idr(&self) -> &Idr

0x04 - ID Register

Source

pub fn rsvd2(&self) -> &Rsvd2

0x08 -

Source

pub fn syscr(&self) -> &Syscr

0x10 - System Configure Register

Source

pub fn rtc_tr(&self) -> &RtcTr

0x14 - RTC Time Register

Source

pub fn rtc_dr(&self) -> &RtcDr

0x18 - RTC Date Register

Source

pub fn rsvd1(&self) -> &Rsvd1

0x1c -

Source

pub fn i2c1_pinr(&self) -> &I2c1Pinr

0x48 - I2C1 Pin Register

Source

pub fn i2c2_pinr(&self) -> &I2c2Pinr

0x4c - I2C2 Pin Register

Source

pub fn i2c3_pinr(&self) -> &I2c3Pinr

0x50 - I2C3 Pin Register

Source

pub fn i2c4_pinr(&self) -> &I2c4Pinr

0x54 - I2C4 Pin Register

Source

pub fn usart1_pinr(&self) -> &Usart1Pinr

0x58 - USART1 Pin Register

Source

pub fn usart2_pinr(&self) -> &Usart2Pinr

0x5c - USART2 Pin Register

Source

pub fn usart3_pinr(&self) -> &Usart3Pinr

0x60 - USART3 Pin Register

Source

pub fn gptim1_pinr(&self) -> &Gptim1Pinr

0x64 - GPTIM1 Pin Register

Source

pub fn gptim2_pinr(&self) -> &Gptim2Pinr

0x68 - GPTIM2 Pin Register

Source

pub fn etr_pinr(&self) -> &EtrPinr

0x6c - GPTIM ETR Pin Register

Source

pub fn lptim1_pinr(&self) -> &Lptim1Pinr

0x70 - LPTIM1 Pin Register

Source

pub fn lptim2_pinr(&self) -> &Lptim2Pinr

0x74 - LPTIM2 Pin Register

Source

pub fn atim1_pinr1(&self) -> &Atim1Pinr1

0x78 - ATIM1 Pin Register 1

Source

pub fn atim1_pinr2(&self) -> &Atim1Pinr2

0x7c - ATIM1 Pin Register 2

Source

pub fn atim1_pinr3(&self) -> &Atim1Pinr3

0x80 - ATIM1 Pin Register 3

Trait Implementations§

Source§

impl Debug for HpsysCfg

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Deref for HpsysCfg

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for HpsysCfg

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.