pub struct Hashcrypt { /* private fields */ }Expand description
LPC-Next0 Hash-Crypt peripheral
Implementations§
Source§impl Hashcrypt
impl Hashcrypt
Sourcepub const PTR: *const RegisterBlock = {0x40158000 as *const hashcrypt::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40158000 as *const hashcrypt::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
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>§
Sourcepub fn intenset(&self) -> &Intenset
pub fn intenset(&self) -> &Intenset
0x08 - Write 1 to enable interrupts; reads back with which are set.
Sourcepub fn alias_iter(&self) -> impl Iterator<Item = &Alias>
pub fn alias_iter(&self) -> impl Iterator<Item = &Alias>
Iterator for array of: 0x24..0x40 - no description available
Sourcepub fn digest0_iter(&self) -> impl Iterator<Item = &Digest0>
pub fn digest0_iter(&self) -> impl Iterator<Item = &Digest0>
Iterator for array of: 0x40..0x60 - no description available
Sourcepub fn config(&self) -> &Config
pub fn config(&self) -> &Config
0x84 - Returns the configuration of this block in this chip - indicates what services are available.
Sourcepub fn lock(&self) -> &Lock
pub fn lock(&self) -> &Lock
0x8c - Lock register allows locking to the current security level or unlocking by the lock holding level.
Sourcepub fn mask_iter(&self) -> impl Iterator<Item = &Mask>
pub fn mask_iter(&self) -> impl Iterator<Item = &Mask>
Iterator for array of: 0x90..0xa0 - no description available
Sourcepub fn reload_iter(&self) -> impl Iterator<Item = &Reload>
pub fn reload_iter(&self) -> impl Iterator<Item = &Reload>
Iterator for array of: 0xa0..0xc0 - no description available