Struct RegisterBlock

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

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn acr(&self) -> &ACR

0x00 - Access control register

Source

pub const fn pdkeyr(&self) -> &PDKEYR

0x04 - Power down key register

Source

pub const fn nskeyr(&self) -> &NSKEYR

0x08 - Flash non-secure key register

Source

pub const fn seckeyr(&self) -> &SECKEYR

0x0c - Flash secure key register

Source

pub const fn optkeyr(&self) -> &OPTKEYR

0x10 - Flash option key register

Source

pub const fn lvekeyr(&self) -> &LVEKEYR

0x14 - Flash low voltage key register

Source

pub const fn nssr(&self) -> &NSSR

0x20 - Flash status register

Source

pub const fn secsr(&self) -> &SECSR

0x24 - Flash status register

Source

pub const fn nscr(&self) -> &NSCR

0x28 - Flash non-secure control register

Source

pub const fn seccr(&self) -> &SECCR

0x2c - Flash secure control register

Source

pub const fn eccr(&self) -> &ECCR

0x30 - Flash ECC register

Source

pub const fn optr(&self) -> &OPTR

0x40 - Flash option register

Source

pub const fn nsbootadd0r(&self) -> &NSBOOTADD0R

0x44 - Flash non-secure boot address 0 register

Source

pub const fn nsbootadd1r(&self) -> &NSBOOTADD1R

0x48 - Flash non-secure boot address 1 register

Source

pub const fn secbootadd0r(&self) -> &SECBOOTADD0R

0x4c - FFlash secure boot address 0 register

Source

pub const fn secwm1r1(&self) -> &SECWM1R1

0x50 - Flash bank 1 secure watermak1 register

Source

pub const fn secwm1r2(&self) -> &SECWM1R2

0x54 - Flash secure watermak1 register 2

Source

pub const fn wrp1ar(&self) -> &WRP1AR

0x58 - Flash Bank 1 WRP area A address register

Source

pub const fn wrp1br(&self) -> &WRP1BR

0x5c - Flash Bank 1 WRP area B address register

Source

pub const fn secwm2r1(&self) -> &SECWM2R1

0x60 - Flash secure watermak2 register

Source

pub const fn secwm2r2(&self) -> &SECWM2R2

0x64 - Flash secure watermak2 register2

Source

pub const fn wrp2ar(&self) -> &WRP2AR

0x68 - Flash WPR2 area A address register

Source

pub const fn wrp2br(&self) -> &WRP2BR

0x6c - Flash WPR2 area B address register

Source

pub const fn secbb1r(&self, n: usize) -> &SECBB1R

0x80..0x90 - FLASH secure block based bank 1

`n` is the index of register in the array. `n == 0` corresponds to `SECBB1R1` register.
Source

pub fn secbb1r_iter(&self) -> impl Iterator<Item = &SECBB1R>

Iterator for array of: 0x80..0x90 - FLASH secure block based bank 1

Source

pub const fn secbb1r1(&self) -> &SECBB1R

0x80 - FLASH secure block based bank 1

Source

pub const fn secbb1r2(&self) -> &SECBB1R

0x84 - FLASH secure block based bank 1

Source

pub const fn secbb1r3(&self) -> &SECBB1R

0x88 - FLASH secure block based bank 1

Source

pub const fn secbb1r4(&self) -> &SECBB1R

0x8c - FLASH secure block based bank 1

Source

pub const fn secbb2r(&self, n: usize) -> &SECBB2R

0xa0..0xb0 - FLASH secure block based bank 2

`n` is the index of register in the array. `n == 0` corresponds to `SECBB2R1` register.
Source

pub fn secbb2r_iter(&self) -> impl Iterator<Item = &SECBB2R>

Iterator for array of: 0xa0..0xb0 - FLASH secure block based bank 2

Source

pub const fn secbb2r1(&self) -> &SECBB2R

0xa0 - FLASH secure block based bank 2

Source

pub const fn secbb2r2(&self) -> &SECBB2R

0xa4 - FLASH secure block based bank 2

Source

pub const fn secbb2r3(&self) -> &SECBB2R

0xa8 - FLASH secure block based bank 2

Source

pub const fn secbb2r4(&self) -> &SECBB2R

0xac - FLASH secure block based bank 2

Source

pub const fn sechdpcr(&self) -> &SECHDPCR

0xc0 - FLASH secure HDP control register

Source

pub const fn privcfgr(&self) -> &PRIVCFGR

0xc4 - Power privilege configuration 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.