Struct ht32f523x2::Pwrcu

source ·
pub struct Pwrcu { /* private fields */ }
Expand description

PWRCU

Implementations§

source§

impl Pwrcu

source

pub const PTR: *const RegisterBlock = {0x4006a100 as *const pwrcu::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 pwrcu_baksr(&self) -> &PwrcuBaksr

0x00 - PWRCU_BAKSR

source

pub fn pwrcu_bakcr(&self) -> &PwrcuBakcr

0x04 - PWRCU_BAKCR

source

pub fn pwrcu_baktest(&self) -> &PwrcuBaktest

0x08 - PWRCU_BAKTEST

source

pub fn pwrcu_lvdcsr(&self) -> &PwrcuLvdcsr

0x10 - PWRCU_LVDCSR

source

pub fn pwrcu_bakreg0(&self) -> &PwrcuBakreg0

0x100 - PWRCU_BAKREG0

source

pub fn pwrcu_bakreg1(&self) -> &PwrcuBakreg1

0x104 - PWRCU_BAKREG1

source

pub fn pwrcu_bakreg2(&self) -> &PwrcuBakreg2

0x108 - PWRCU_BAKREG2

source

pub fn pwrcu_bakreg3(&self) -> &PwrcuBakreg3

0x10c - PWRCU_BAKREG3

source

pub fn pwrcu_bakreg4(&self) -> &PwrcuBakreg4

0x110 - PWRCU_BAKREG4

source

pub fn pwrcu_bakreg5(&self) -> &PwrcuBakreg5

0x114 - PWRCU_BAKREG5

source

pub fn pwrcu_bakreg6(&self) -> &PwrcuBakreg6

0x118 - PWRCU_BAKREG6

source

pub fn pwrcu_bakreg7(&self) -> &PwrcuBakreg7

0x11c - PWRCU_BAKREG7

source

pub fn pwrcu_bakreg8(&self) -> &PwrcuBakreg8

0x120 - PWRCU_BAKREG8

source

pub fn pwrcu_bakreg9(&self) -> &PwrcuBakreg9

0x124 - PWRCU_BAKREG9

Trait Implementations§

source§

impl Debug for Pwrcu

source§

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

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

impl Deref for Pwrcu

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for Pwrcu

Auto Trait Implementations§

§

impl Freeze for Pwrcu

§

impl RefUnwindSafe for Pwrcu

§

impl !Sync for Pwrcu

§

impl Unpin for Pwrcu

§

impl UnwindSafe for Pwrcu

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

§

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

§

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.