Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn c_mem(&self, n: usize) -> &C_MEM

0x00..0x630 - memory C

Source

pub fn c_mem_iter(&self) -> impl Iterator<Item = &C_MEM>

Iterator for array of: 0x00..0x630 - memory C

Source

pub const fn iv_(&self, n: usize) -> &IV_

0x630..0x640 - IV block data.

Source

pub fn iv__iter(&self) -> impl Iterator<Item = &IV_>

Iterator for array of: 0x630..0x640 - IV block data.

Source

pub const fn x_mem(&self, n: usize) -> &X_MEM

0x800..0xa00 - memory X

Source

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

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

Source

pub const fn z_mem(&self, n: usize) -> &Z_MEM

0xa00..0xc00 - memory Z

Source

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

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

Source

pub const fn set_start(&self) -> &SET_START

0xe00 - Activates the DS peripheral

Source

pub const fn set_me(&self) -> &SET_ME

0xe04 - Starts DS operation

Source

pub const fn set_finish(&self) -> &SET_FINISH

0xe08 - Ends DS operation

Source

pub const fn query_busy(&self) -> &QUERY_BUSY

0xe0c - Status of the DS

Source

pub const fn query_key_wrong(&self) -> &QUERY_KEY_WRONG

0xe10 - Checks the reason why DS_KEY is not ready.

Source

pub const fn query_check(&self) -> &QUERY_CHECK

0xe14 - Queries DS check result

Source

pub const fn date(&self) -> &DATE

0xe20 - Version control register

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

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.