Struct efm32pg1b_pac::Crypto

source ·
pub struct Crypto { /* private fields */ }
Expand description

CRYPTO

Implementations§

source§

impl Crypto

source

pub const PTR: *const RegisterBlock = {0x400f0000 as *const crypto::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn ctrl(&self) -> &Ctrl

0x00 - Control Register

source

pub fn wac(&self) -> &Wac

0x04 - Wide Arithmetic Configuration

source

pub fn cmd(&self) -> &Cmd

0x08 - Command Register

source

pub fn status(&self) -> &Status

0x10 - Status Register

source

pub fn dstatus(&self) -> &Dstatus

0x14 - Data Status Register

source

pub fn cstatus(&self) -> &Cstatus

0x18 - Control Status Register

source

pub fn key(&self) -> &Key

0x20 - KEY Register Access

source

pub fn keybuf(&self) -> &Keybuf

0x24 - KEY Buffer Register Access

source

pub fn seqctrl(&self) -> &Seqctrl

0x30 - Sequence Control

source

pub fn seqctrlb(&self) -> &Seqctrlb

0x34 - Sequence Control B

source

pub fn if_(&self) -> &If

0x40 - AES Interrupt Flags

source

pub fn ifs(&self) -> &Ifs

0x44 - Interrupt Flag Set Register

source

pub fn ifc(&self) -> &Ifc

0x48 - Interrupt Flag Clear Register

source

pub fn ien(&self) -> &Ien

0x4c - Interrupt Enable Register

source

pub fn seq0(&self) -> &Seq0

0x50 - Sequence Register 0

source

pub fn seq1(&self) -> &Seq1

0x54 - Sequence Register 1

source

pub fn seq2(&self) -> &Seq2

0x58 - Sequence Register 2

source

pub fn seq3(&self) -> &Seq3

0x5c - Sequence Register 3

source

pub fn seq4(&self) -> &Seq4

0x60 - Sequence Register 4

source

pub fn data0(&self) -> &Data0

0x80 - DATA0 Register Access

source

pub fn data1(&self) -> &Data1

0x84 - DATA1 Register Access

source

pub fn data2(&self) -> &Data2

0x88 - DATA2 Register Access

source

pub fn data3(&self) -> &Data3

0x8c - DATA3 Register Access

source

pub fn data0xor(&self) -> &Data0xor

0xa0 - DATA0XOR Register Access

source

pub fn data0byte(&self) -> &Data0byte

0xb0 - DATA0 Register Byte Access

source

pub fn data1byte(&self) -> &Data1byte

0xb4 - DATA1 Register Byte Access

source

pub fn data0xorbyte(&self) -> &Data0xorbyte

0xbc - DATA0 Register Byte XOR Access

source

pub fn data0byte12(&self) -> &Data0byte12

0xc0 - DATA0 Register Byte 12 Access

source

pub fn data0byte13(&self) -> &Data0byte13

0xc4 - DATA0 Register Byte 13 Access

source

pub fn data0byte14(&self) -> &Data0byte14

0xc8 - DATA0 Register Byte 14 Access

source

pub fn data0byte15(&self) -> &Data0byte15

0xcc - DATA0 Register Byte 15 Access

source

pub fn ddata0(&self) -> &Ddata0

0x100 - DDATA0 Register Access

source

pub fn ddata1(&self) -> &Ddata1

0x104 - DDATA1 Register Access

source

pub fn ddata2(&self) -> &Ddata2

0x108 - DDATA2 Register Access

source

pub fn ddata3(&self) -> &Ddata3

0x10c - DDATA3 Register Access

source

pub fn ddata4(&self) -> &Ddata4

0x110 - DDATA4 Register Access

source

pub fn ddata0big(&self) -> &Ddata0big

0x130 - DDATA0 Register Big Endian Access

source

pub fn ddata0byte(&self) -> &Ddata0byte

0x140 - DDATA0 Register Byte Access

source

pub fn ddata1byte(&self) -> &Ddata1byte

0x144 - DDATA1 Register Byte Access

source

pub fn ddata0byte32(&self) -> &Ddata0byte32

0x148 - DDATA0 Register Byte 32 Access

source

pub fn qdata0(&self) -> &Qdata0

0x180 - QDATA0 Register Access

source

pub fn qdata1(&self) -> &Qdata1

0x184 - QDATA1 Register Access

source

pub fn qdata1big(&self) -> &Qdata1big

0x1a4 - QDATA1 Register Big Endian Access

source

pub fn qdata0byte(&self) -> &Qdata0byte

0x1c0 - QDATA0 Register Byte Access

source

pub fn qdata1byte(&self) -> &Qdata1byte

0x1c4 - QDATA1 Register Byte Access

Trait Implementations§

source§

impl Debug for Crypto

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for Crypto

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for Crypto

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.