Struct ECC

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

Implementations§

Source§

impl ECC

Source

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

Pointer to the register block

Source

pub unsafe fn steal() -> ECC

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 <ECC as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn mult_int_raw(&self) -> &Reg<MULT_INT_RAW_SPEC>

0x0c - ECC interrupt raw register, valid in level.

Source

pub fn mult_int_st(&self) -> &Reg<MULT_INT_ST_SPEC>

0x10 - ECC interrupt status register.

Source

pub fn mult_int_ena(&self) -> &Reg<MULT_INT_ENA_SPEC>

0x14 - ECC interrupt enable register.

Source

pub fn mult_int_clr(&self) -> &Reg<MULT_INT_CLR_SPEC>

0x18 - ECC interrupt clear register.

Source

pub fn mult_conf(&self) -> &Reg<MULT_CONF_SPEC>

0x1c - ECC configure register

Source

pub fn mult_date(&self) -> &Reg<MULT_DATE_SPEC>

0xfc - Version control register

Source

pub fn k_mem(&self, n: usize) -> &Reg<K_MEM_SPEC>

0x100..0x120 - The memory that stores k.

Source

pub fn k_mem_iter(&self) -> impl Iterator<Item = &Reg<K_MEM_SPEC>>

Iterator for array of: 0x100..0x120 - The memory that stores k.

Source

pub fn px_mem(&self, n: usize) -> &Reg<PX_MEM_SPEC>

0x120..0x140 - The memory that stores Px.

Source

pub fn px_mem_iter(&self) -> impl Iterator<Item = &Reg<PX_MEM_SPEC>>

Iterator for array of: 0x120..0x140 - The memory that stores Px.

Source

pub fn py_mem(&self, n: usize) -> &Reg<PY_MEM_SPEC>

0x140..0x160 - The memory that stores Py.

Source

pub fn py_mem_iter(&self) -> impl Iterator<Item = &Reg<PY_MEM_SPEC>>

Iterator for array of: 0x140..0x160 - The memory that stores Py.

Trait Implementations§

Source§

impl Debug for ECC

Source§

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

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

impl Deref for ECC

Source§

type Target = <ECC as Deref>::Target

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for ECC

Source§

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

Mutably dereferences the value.
Source§

impl Peripheral for ECC

Source§

type P = ECC

Peripheral singleton type
Source§

unsafe fn clone_unchecked(&mut self) -> <ECC 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 ECC

§

impl RefUnwindSafe for ECC

§

impl Send for ECC

§

impl Sync for ECC

§

impl Unpin for ECC

§

impl UnwindSafe for ECC

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.