[][src]Enum lpc55_pac::hashcrypt::ctrl::MODE_A

[]
#[repr(u8)]pub enum MODE_A {
    DISABLED,
    SHA1,
    SHA2_256,
    AES,
    ICB_AES,
}
[]

The operational mode to use, or 0 if none. Note that the CONFIG register will indicate if specific modes beyond SHA1 and SHA2-256 are available.

Value on reset: 0

Variants

DISABLED
[]

0: Disabled

SHA1
[]

1: SHA1 is enabled

SHA2_256
[]

2: SHA2-256 is enabled

AES
[]

4: AES if available (see also CRYPTCFG register for more controls)

ICB_AES
[]

5: ICB-AES if available (see also CRYPTCFG register for more controls)

Trait Implementations

impl Clone for MODE_A[src][+]

impl Copy for MODE_A[src]

impl Debug for MODE_A[src][+]

impl From<MODE_A> for u8[src][+]

impl PartialEq<MODE_A> for MODE_A[src][+]

impl StructuralPartialEq for MODE_A[src]

Auto Trait Implementations

impl Send for MODE_A

impl Sync for MODE_A

impl Unpin for MODE_A

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.