#[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 sha2_mode(&self) -> bool
pub const fn sha2_mode(&self) -> bool
SHA mode normal or automatic. Raw bit values: false (0) = Normal: SHA NORM Mode.; true (1) = Auto: SHA AUTO Mode.
Sourcepub const fn set_sha2_mode(&mut self, val: bool)
pub const fn set_sha2_mode(&mut self, val: bool)
SHA mode normal or automatic. Raw bit values: false (0) = Normal: SHA NORM Mode.; true (1) = Auto: SHA AUTO Mode.
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) -> bool
pub const fn sha2_count_en(&self) -> bool
SHA Calculation counter enable. Raw bit values: false (0) = Count: SHA operation DOES NOT increment COUNT.; true (1) = NoCount: SHA operation DOES increment count.
Sourcepub const fn set_sha2_count_en(&mut self, val: bool)
pub const fn set_sha2_count_en(&mut self, val: bool)
SHA Calculation counter enable. Raw bit values: false (0) = Count: SHA operation DOES NOT increment COUNT.; true (1) = NoCount: SHA operation DOES increment count.
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 sha2_stop(&self) -> bool
pub const fn sha2_stop(&self) -> bool
STOP SHA AUTO mode. Raw bit values: false (0) = Running: Keep running.; true (1) = Stop: Stop auto mode.
Sourcepub const fn set_sha2_stop(&mut self, val: bool)
pub const fn set_sha2_stop(&mut self, val: bool)
STOP SHA AUTO mode. Raw bit values: false (0) = Running: Keep running.; true (1) = Stop: Stop auto mode.
Sourcepub const fn no_auto_init(&self) -> bool
pub const fn no_auto_init(&self) -> bool
SHA no automatic HASH initialisation. Raw bit values: false (0) = ShaInit: SHA automatic HASH initialisation.; true (1) = NoShaInit: No SHA automatic HASH initialisation.
Sourcepub const fn set_no_auto_init(&mut self, val: bool)
pub const fn set_no_auto_init(&mut self, val: bool)
SHA no automatic HASH initialisation. Raw bit values: false (0) = ShaInit: SHA automatic HASH initialisation.; true (1) = NoShaInit: No SHA automatic HASH initialisation.
Trait Implementations§
Source§impl Clone for SgiSha2Ctrl
impl Clone for SgiSha2Ctrl
Source§fn clone(&self) -> SgiSha2Ctrl
fn clone(&self) -> SgiSha2Ctrl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more