#[repr(transparent)]pub struct SgiSha2Ctrl(pub u32);Expand description
SHA Control Register.
Tuple Fields§
§0: u32Implementations§
Source§impl SgiSha2Ctrl
impl SgiSha2Ctrl
Sourcepub const fn set_sha2_en(&mut self, val: bool)
pub const fn set_sha2_en(&mut self, val: bool)
SHA enable.
Sourcepub const fn set_sha2_mode(&mut self, val: Sha2Mode)
pub const fn set_sha2_mode(&mut self, val: Sha2Mode)
SHA mode normal or automatic.
Sourcepub const fn set_sha2_size(&mut self, val: Sha2Size)
pub const fn set_sha2_size(&mut self, val: Sha2Size)
Indicates SHA size.
Sourcepub const fn sha2_low_lim(&self) -> u8
pub const fn sha2_low_lim(&self) -> u8
SHA FIFO low limit.
Sourcepub const fn set_sha2_low_lim(&mut self, val: u8)
pub const fn set_sha2_low_lim(&mut self, val: u8)
SHA FIFO low limit.
Sourcepub const fn sha2_high_lim(&self) -> u8
pub const fn sha2_high_lim(&self) -> u8
SHA FIFO high limit.
Sourcepub const fn set_sha2_high_lim(&mut self, val: u8)
pub const fn set_sha2_high_lim(&mut self, val: u8)
SHA FIFO high limit.
Sourcepub const fn sha2_count_en(&self) -> Sha2CountEn
pub const fn sha2_count_en(&self) -> Sha2CountEn
SHA Calculation counter enable.
Sourcepub const fn set_sha2_count_en(&mut self, val: Sha2CountEn)
pub const fn set_sha2_count_en(&mut self, val: Sha2CountEn)
SHA Calculation counter enable.
Sourcepub const fn hash_reload(&self) -> bool
pub const fn hash_reload(&self) -> bool
SHA HASH reload.
Sourcepub const fn set_hash_reload(&mut self, val: bool)
pub const fn set_hash_reload(&mut self, val: bool)
SHA HASH reload.
Sourcepub const fn set_sha2_stop(&mut self, val: Sha2Stop)
pub const fn set_sha2_stop(&mut self, val: Sha2Stop)
STOP SHA AUTO mode.
Sourcepub const fn no_auto_init(&self) -> NoAutoInit
pub const fn no_auto_init(&self) -> NoAutoInit
SHA no automatic HASH initialisation.
Sourcepub const fn set_no_auto_init(&mut self, val: NoAutoInit)
pub const fn set_no_auto_init(&mut self, val: NoAutoInit)
SHA no automatic HASH initialisation.
Trait Implementations§
Source§impl Clone for SgiSha2Ctrl
impl Clone for SgiSha2Ctrl
Source§fn clone(&self) -> SgiSha2Ctrl
fn clone(&self) -> SgiSha2Ctrl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SgiSha2Ctrl
impl Debug for SgiSha2Ctrl
Source§impl Default for SgiSha2Ctrl
impl Default for SgiSha2Ctrl
Source§fn default() -> SgiSha2Ctrl
fn default() -> SgiSha2Ctrl
Returns the “default value” for a type. Read more
Source§impl PartialEq for SgiSha2Ctrl
impl PartialEq for SgiSha2Ctrl
impl Copy for SgiSha2Ctrl
impl Eq for SgiSha2Ctrl
impl StructuralPartialEq for SgiSha2Ctrl
Auto Trait Implementations§
impl Freeze for SgiSha2Ctrl
impl RefUnwindSafe for SgiSha2Ctrl
impl Send for SgiSha2Ctrl
impl Sync for SgiSha2Ctrl
impl Unpin for SgiSha2Ctrl
impl UnwindSafe for SgiSha2Ctrl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more