#[repr(transparent)]pub struct PkcCtrl(pub u32);Expand description
PKC control. Clear RESET in an earlier write and poll it cleared before setting GO. Poll RESET/STOP after modifications; STOP must already be disabled before changing RESET. Invalid combinations trigger security alarms.
Tuple Fields§
§0: u32Implementations§
Source§impl PkcCtrl
impl PkcCtrl
Sourcepub const fn reset(&self) -> bool
pub const fn reset(&self) -> bool
PKC kernel reset, not device lifecycle. STOP must already be disabled before changing RESET. Poll RESET until the new value is observed. Clear RESET in a separate earlier write before setting any GO bit.
Sourcepub const fn set_reset(&mut self, val: bool)
pub const fn set_reset(&mut self, val: bool)
PKC kernel reset, not device lifecycle. STOP must already be disabled before changing RESET. Poll RESET until the new value is observed. Clear RESET in a separate earlier write before setting any GO bit.
Sourcepub const fn stop(&self) -> bool
pub const fn stop(&self) -> bool
Freeze the calculation. Poll STOP after changes until the new value is read back. Disable STOP and observe it disabled before changing RESET.
Sourcepub const fn set_stop(&mut self, val: bool)
pub const fn set_stop(&mut self, val: bool)
Freeze the calculation. Poll STOP after changes until the new value is read back. Disable STOP and observe it disabled before changing RESET.
Sourcepub const fn god1(&self) -> bool
pub const fn god1(&self) -> bool
Control bit to start direct operation using parameter set 1. RESET must already have been cleared in an earlier write and observed cleared; GOANY must be zero and only one GO bit may be set.
Sourcepub const fn set_god1(&mut self, val: bool)
pub const fn set_god1(&mut self, val: bool)
Control bit to start direct operation using parameter set 1. RESET must already have been cleared in an earlier write and observed cleared; GOANY must be zero and only one GO bit may be set.
Sourcepub const fn god2(&self) -> bool
pub const fn god2(&self) -> bool
Control bit to start direct operation using parameter set 2. RESET must already have been cleared in an earlier write and observed cleared; GOANY must be zero and only one GO bit may be set.
Sourcepub const fn set_god2(&mut self, val: bool)
pub const fn set_god2(&mut self, val: bool)
Control bit to start direct operation using parameter set 2. RESET must already have been cleared in an earlier write and observed cleared; GOANY must be zero and only one GO bit may be set.
Sourcepub const fn gom1(&self) -> bool
pub const fn gom1(&self) -> bool
Control bit to start MC pattern using parameter set 1. RESET must already have been cleared in an earlier write and observed cleared; GOANY must be zero and only one GO bit may be set.
Sourcepub const fn set_gom1(&mut self, val: bool)
pub const fn set_gom1(&mut self, val: bool)
Control bit to start MC pattern using parameter set 1. RESET must already have been cleared in an earlier write and observed cleared; GOANY must be zero and only one GO bit may be set.
Sourcepub const fn gom2(&self) -> bool
pub const fn gom2(&self) -> bool
Control bit to start MC pattern using parameter set 2. RESET must already have been cleared in an earlier write and observed cleared; GOANY must be zero and only one GO bit may be set.
Sourcepub const fn set_gom2(&mut self, val: bool)
pub const fn set_gom2(&mut self, val: bool)
Control bit to start MC pattern using parameter set 2. RESET must already have been cleared in an earlier write and observed cleared; GOANY must be zero and only one GO bit may be set.
Sourcepub const fn gou(&self) -> bool
pub const fn gou(&self) -> bool
Control bit to start pipe operation. RESET must already have been cleared in an earlier write and observed cleared; GOANY must be zero and only one GO bit may be set. Requires nonzero ULEN and valid UPTR/UPTRT addresses.
Sourcepub const fn set_gou(&mut self, val: bool)
pub const fn set_gou(&mut self, val: bool)
Control bit to start pipe operation. RESET must already have been cleared in an earlier write and observed cleared; GOANY must be zero and only one GO bit may be set. Requires nonzero ULEN and valid UPTR/UPTRT addresses.
Sourcepub const fn set_gf2conv(&mut self, val: bool)
pub const fn set_gf2conv(&mut self, val: bool)
Convert to GF2 calculation modes.
Sourcepub const fn set_clrcache(&mut self, val: bool)
pub const fn set_clrcache(&mut self, val: bool)
Clear universal pointer cache.
Sourcepub const fn set_cache_en(&mut self, val: bool)
pub const fn set_cache_en(&mut self, val: bool)
Enable universal pointer cache.
Sourcepub const fn set_redmul(&mut self, val: Redmul)
pub const fn set_redmul(&mut self, val: Redmul)
Reduced multiplier mode.