#[repr(u8)]pub enum Mode {
Disabled = 0,
Sha1 = 1,
Sha2_256 = 2,
Aes = 4,
IcbAes = 5,
}Expand description
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
0: Disabled
Sha1 = 1
1: SHA1 is enabled
Sha2_256 = 2
2: SHA2-256 is enabled
Aes = 4
4: AES if available (see also CRYPTCFG register for more controls)
IcbAes = 5
5: ICB-AES if available (see also CRYPTCFG register for more controls)
Trait Implementations§
impl Copy for Mode
impl Eq for Mode
impl IsEnum for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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