Struct DS

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

Implementations§

Source§

impl DS

Source

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

Pointer to the register block

Source

pub unsafe fn steal() -> DS

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

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

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

0x00..0x200 - memory that stores Y

Source

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

Iterator for array of: 0x00..0x200 - memory that stores Y

Source

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

0x200..0x400 - memory that stores M

Source

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

Iterator for array of: 0x200..0x400 - memory that stores M

Source

pub fn rb_mem(&self, n: usize) -> &Reg<RB_MEM_SPEC>

0x400..0x600 - memory that stores Rb

Source

pub fn rb_mem_iter(&self) -> impl Iterator<Item = &Reg<RB_MEM_SPEC>>

Iterator for array of: 0x400..0x600 - memory that stores Rb

Source

pub fn box_mem(&self, n: usize) -> &Reg<BOX_MEM_SPEC>

0x600..0x630 - memory that stores BOX

Source

pub fn box_mem_iter(&self) -> impl Iterator<Item = &Reg<BOX_MEM_SPEC>>

Iterator for array of: 0x600..0x630 - memory that stores BOX

Source

pub fn iv_mem(&self, n: usize) -> &Reg<IV_MEM_SPEC>

0x630..0x640 - memory that stores IV

Source

pub fn iv_mem_iter(&self) -> impl Iterator<Item = &Reg<IV_MEM_SPEC>>

Iterator for array of: 0x630..0x640 - memory that stores IV

Source

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

0x800..0xa00 - memory that stores X

Source

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

Iterator for array of: 0x800..0xa00 - memory that stores X

Source

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

0xa00..0xc00 - memory that stores Z

Source

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

Iterator for array of: 0xa00..0xc00 - memory that stores Z

Source

pub fn set_start(&self) -> &Reg<SET_START_SPEC>

0xe00 - DS start control register

Source

pub fn set_continue(&self) -> &Reg<SET_CONTINUE_SPEC>

0xe04 - DS continue control register

Source

pub fn set_finish(&self) -> &Reg<SET_FINISH_SPEC>

0xe08 - DS finish control register

Source

pub fn query_busy(&self) -> &Reg<QUERY_BUSY_SPEC>

0xe0c - DS query busy register

Source

pub fn query_key_wrong(&self) -> &Reg<QUERY_KEY_WRONG_SPEC>

0xe10 - DS query key-wrong counter register

Source

pub fn query_check(&self) -> &Reg<QUERY_CHECK_SPEC>

0xe14 - DS query check result register

Source

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

0xe20 - DS version control register

Trait Implementations§

Source§

impl Debug for DS

Source§

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

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

impl Deref for DS

Source§

type Target = <DS as Deref>::Target

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for DS

Source§

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

Mutably dereferences the value.
Source§

impl Peripheral for DS

Source§

type P = DS

Peripheral singleton type
Source§

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

§

impl RefUnwindSafe for DS

§

impl Send for DS

§

impl Sync for DS

§

impl Unpin for DS

§

impl UnwindSafe for DS

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.