Struct RSA

Source
pub struct RSA { /* private fields */ }

Implementations§

Source§

impl RSA

Source

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

Pointer to the register block

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 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..0x180 - The memory that stores M

Source

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

Iterator for array of: 0x00..0x180 - The memory that stores M

Source

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

0x200..0x380 - The memory that stores Z

Source

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

Iterator for array of: 0x200..0x380 - The memory that stores Z

Source

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

0x400..0x580 - The memory that stores Y

Source

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

Iterator for array of: 0x400..0x580 - The memory that stores Y

Source

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

0x600..0x780 - The memory that stores X

Source

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

Iterator for array of: 0x600..0x780 - The memory that stores X

Source

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

0x800 - RSA M_prime register

Source

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

0x804 - RSA mode register

Source

pub fn query_clean(&self) -> &Reg<QUERY_CLEAN_SPEC>

0x808 - RSA query clean register

Source

pub fn set_start_modexp(&self) -> &Reg<SET_START_MODEXP_SPEC>

0x80c - RSA modular exponentiation trigger register.

Source

pub fn set_start_modmult(&self) -> &Reg<SET_START_MODMULT_SPEC>

0x810 - RSA modular multiplication trigger register.

Source

pub fn set_start_mult(&self) -> &Reg<SET_START_MULT_SPEC>

0x814 - RSA normal multiplication trigger register.

Source

pub fn query_idle(&self) -> &Reg<QUERY_IDLE_SPEC>

0x818 - RSA query idle register

Source

pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>

0x81c - RSA interrupt clear register

Source

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

0x820 - RSA constant time option register

Source

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

0x824 - RSA search option

Source

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

0x828 - RSA search position configure register

Source

pub fn int_ena(&self) -> &Reg<INT_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

Source§

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

Source§

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 Freeze for RSA

§

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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>,

Source§

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.