pub struct RSA { /* private fields */ }

Implementations§

source§

impl RSA

source

pub unsafe fn steal() -> RSA

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

source

pub const PTR: *const <RSA as Deref>::Target = {0x6003c000 as *const <esp32s3::RSA as core::ops::Deref>::Target}

Pointer to the register block

source

pub const fn ptr() -> *const <RSA as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn m_mem(&self, n: usize) -> &Reg<M_MEM_SPEC>

0x00..0x200 - Memory M

source

pub fn m_mem_iter(&self) -> impl Iterator<Item = &Reg<M_MEM_SPEC>>

Iterator for array of: 0x00..0x200 - Memory M

source

pub fn z_mem(&self, n: usize) -> &Reg<Z_MEM_SPEC>

0x200..0x400 - Memory Z

source

pub fn z_mem_iter(&self) -> impl Iterator<Item = &Reg<Z_MEM_SPEC>>

Iterator for array of: 0x200..0x400 - Memory Z

source

pub fn y_mem(&self, n: usize) -> &Reg<Y_MEM_SPEC>

0x400..0x600 - Memory Y

source

pub fn y_mem_iter(&self) -> impl Iterator<Item = &Reg<Y_MEM_SPEC>>

Iterator for array of: 0x400..0x600 - Memory Y

source

pub fn x_mem(&self, n: usize) -> &Reg<X_MEM_SPEC>

0x600..0x800 - Memory X

source

pub fn x_mem_iter(&self) -> impl Iterator<Item = &Reg<X_MEM_SPEC>>

Iterator for array of: 0x600..0x800 - Memory X

source

pub fn m_prime(&self) -> &Reg<M_PRIME_SPEC>

0x800 - RSA M’ register

source

pub fn mode(&self) -> &Reg<MODE_SPEC>

0x804 - RSA length mode register

source

pub fn clean(&self) -> &Reg<CLEAN_SPEC>

0x808 - RSA clean register

source

pub fn modexp_start(&self) -> &Reg<MODEXP_START_SPEC>

0x80c - Modular exponentiation trigger register.

source

pub fn modmult_start(&self) -> &Reg<MODMULT_START_SPEC>

0x810 - Modular multiplication trigger register.

source

pub fn mult_start(&self) -> &Reg<MULT_START_SPEC>

0x814 - Normal multiplication trigger register.

source

pub fn idle(&self) -> &Reg<IDLE_SPEC>

0x818 - RSA idle register

source

pub fn clear_interrupt(&self) -> &Reg<CLEAR_INTERRUPT_SPEC>

0x81c - RSA interrupt clear register

source

pub fn constant_time(&self) -> &Reg<CONSTANT_TIME_SPEC>

0x820 - CONSTANT_TIME option control register

source

pub fn search_enable(&self) -> &Reg<SEARCH_ENABLE_SPEC>

0x824 - SEARCH option enable register

source

pub fn search_pos(&self) -> &Reg<SEARCH_POS_SPEC>

0x828 - RSA search position configure register

source

pub fn interrupt_ena(&self) -> &Reg<INTERRUPT_ENA_SPEC>

0x82c - RSA interrupt enable register

source

pub fn date(&self) -> &Reg<DATE_SPEC>

0x830 - RSA version control register

Trait Implementations§

source§

impl Debug for RSA

source§

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

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

impl Deref for RSA

§

type Target = <RSA as Deref>::Target

The resulting type after dereferencing.
source§

fn deref(&self) -> &<RSA as Deref>::Target

Dereferences the value.
source§

impl DerefMut for RSA

source§

fn deref_mut(&mut self) -> &mut <RSA as Deref>::Target

Mutably dereferences the value.
source§

impl Peripheral for RSA

§

type P = RSA

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <RSA as Peripheral>::P

Unsafely clone (duplicate) a peripheral singleton. Read more
source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>
where Self: 'a,

Convert a value into a PeripheralRef. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for RSA

§

impl Send for RSA

§

impl Sync for RSA

§

impl Unpin for RSA

§

impl UnwindSafe for RSA

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.