#[repr(transparent)]pub struct SgiCtrl2(pub u32);Expand description
SGI Control register 2
Tuple Fields§
§0: u32Implementations§
Source§impl SgiCtrl2
impl SgiCtrl2
Sourcepub const fn set_key_flush(&mut self, val: bool)
pub const fn set_key_flush(&mut self, val: bool)
Start KEY register-bank Flush
Sourcepub const fn datin_flush(&self) -> bool
pub const fn datin_flush(&self) -> bool
Start DATIN register-bank Flush
Sourcepub const fn set_datin_flush(&mut self, val: bool)
pub const fn set_datin_flush(&mut self, val: bool)
Start DATIN register-bank Flush
Sourcepub const fn set_flushwr(&mut self, val: bool)
pub const fn set_flushwr(&mut self, val: bool)
Flush Write control
Sourcepub const fn set_incr_cin(&mut self, val: bool)
pub const fn set_incr_cin(&mut self, val: bool)
Increment Carry-In control
Sourcepub const fn ctrl2_rsvd3(&self) -> bool
pub const fn ctrl2_rsvd3(&self) -> bool
reserved
Sourcepub const fn set_ctrl2_rsvd3(&mut self, val: bool)
pub const fn set_ctrl2_rsvd3(&mut self, val: bool)
reserved
Sourcepub const fn set_smasken(&mut self, val: bool)
pub const fn set_smasken(&mut self, val: bool)
SFRMASK Enable
Sourcepub const fn set_smaskstep(&mut self, val: bool)
pub const fn set_smaskstep(&mut self, val: bool)
SFRSEED increment control
Sourcepub const fn set_smasksw(&mut self, val: bool)
pub const fn set_smasksw(&mut self, val: bool)
SFRMASK MASK control
Sourcepub const fn ctrl2_rsvd2(&self) -> bool
pub const fn ctrl2_rsvd2(&self) -> bool
reserved
Sourcepub const fn set_ctrl2_rsvd2(&mut self, val: bool)
pub const fn set_ctrl2_rsvd2(&mut self, val: bool)
reserved
Sourcepub const fn set_keyres(&mut self, val: u8)
pub const fn set_keyres(&mut self, val: u8)
Selects key registers to be updated when rkey=1
Sourcepub const fn bytes_order(&self) -> bool
pub const fn bytes_order(&self) -> bool
Byte order of regbank read/write data
Sourcepub const fn set_bytes_order(&mut self, val: bool)
pub const fn set_bytes_order(&mut self, val: bool)
Byte order of regbank read/write data
Sourcepub const fn set_gcm_inxor(&mut self, val: bool)
pub const fn set_gcm_inxor(&mut self, val: bool)
GCM INXOR
Sourcepub const fn ctrl2_rsvd1(&self) -> u8
pub const fn ctrl2_rsvd1(&self) -> u8
reserved
Sourcepub const fn set_ctrl2_rsvd1(&mut self, val: u8)
pub const fn set_ctrl2_rsvd1(&mut self, val: u8)
reserved
Trait Implementations§
impl Copy for SgiCtrl2
impl Eq for SgiCtrl2
impl StructuralPartialEq for SgiCtrl2
Auto Trait Implementations§
impl Freeze for SgiCtrl2
impl RefUnwindSafe for SgiCtrl2
impl Send for SgiCtrl2
impl Sync for SgiCtrl2
impl Unpin for SgiCtrl2
impl UnwindSafe for SgiCtrl2
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