Enum stm32_metapac::cryp::vals::Kmod
#[repr(u8)]pub enum Kmod {
NORMAL = 0,
_RESERVED_1 = 1,
SHARED = 2,
_RESERVED_3 = 3,
}
Variants§
NORMAL = 0
Normal-key mode. Key registers are freely usable.
_RESERVED_1 = 1
SHARED = 2
Shared-key mode. If shared-key mode is properly initialized in SAES peripheral, the CRYP peripheral automatically loads its key registers with the data stored in the SAES key registers. The key value is available in CRYP key registers when BUSY bit is cleared and KEYVALID is set in the CRYP_SR register. Key error flag KERF is set otherwise in the CRYP_SR register.
_RESERVED_3 = 3
Implementations§
Trait Implementations§
§impl Ord for Kmod
impl Ord for Kmod
§impl PartialOrd for Kmod
impl PartialOrd for Kmod
§fn partial_cmp(&self, other: &Kmod) -> Option<Ordering>
fn partial_cmp(&self, other: &Kmod) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Kmod
impl Eq for Kmod
impl StructuralEq for Kmod
impl StructuralPartialEq for Kmod
Auto Trait Implementations§
impl RefUnwindSafe for Kmod
impl Send for Kmod
impl Sync for Kmod
impl Unpin for Kmod
impl UnwindSafe for Kmod
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