Struct RegisterBlock

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

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn cr(&self) -> &CR

0x00 - control register

Source

pub const fn sr(&self) -> &SR

0x04 - status register

Source

pub const fn din(&self) -> &DIN

0x08 - data input register

Source

pub const fn dout(&self) -> &DOUT

0x0c - data output register

Source

pub const fn dmacr(&self) -> &DMACR

0x10 - DMA control register

Source

pub const fn imscr(&self) -> &IMSCR

0x14 - interrupt mask set/clear register

Source

pub const fn risr(&self) -> &RISR

0x18 - raw interrupt status register

Source

pub const fn misr(&self) -> &MISR

0x1c - masked interrupt status register

Source

pub const fn key(&self, n: usize) -> &KEY

0x20..0x40 - Cluster KEY%s, containing K?LR, K?RR

Source

pub fn key_iter(&self) -> impl Iterator<Item = &KEY>

Iterator for array of: 0x20..0x40 - Cluster KEY%s, containing K?LR, K?RR

Source

pub const fn init(&self, n: usize) -> &INIT

0x40..0x50 - Cluster INIT%s, containing IV?LR, IV?RR

Source

pub fn init_iter(&self) -> impl Iterator<Item = &INIT>

Iterator for array of: 0x40..0x50 - Cluster INIT%s, containing IV?LR, IV?RR

Source

pub const fn csgcmccmr(&self, n: usize) -> &CSGCMCCMR

0x50..0x70 - context swap register

Source

pub fn csgcmccmr_iter(&self) -> impl Iterator<Item = &CSGCMCCMR>

Iterator for array of: 0x50..0x70 - context swap register

Source

pub const fn csgcmccm0r(&self) -> &CSGCMCCMR

0x50 - context swap register

Source

pub const fn csgcmccm1r(&self) -> &CSGCMCCMR

0x54 - context swap register

Source

pub const fn csgcmccm2r(&self) -> &CSGCMCCMR

0x58 - context swap register

Source

pub const fn csgcmccm3r(&self) -> &CSGCMCCMR

0x5c - context swap register

Source

pub const fn csgcmccm4r(&self) -> &CSGCMCCMR

0x60 - context swap register

Source

pub const fn csgcmccm5r(&self) -> &CSGCMCCMR

0x64 - context swap register

Source

pub const fn csgcmccm6r(&self) -> &CSGCMCCMR

0x68 - context swap register

Source

pub const fn csgcmccm7r(&self) -> &CSGCMCCMR

0x6c - context swap register

Source

pub const fn csgcmr(&self, n: usize) -> &CSGCMR

0x70..0x90 - context swap register

Source

pub fn csgcmr_iter(&self) -> impl Iterator<Item = &CSGCMR>

Iterator for array of: 0x70..0x90 - context swap register

Source

pub const fn csgcm0r(&self) -> &CSGCMR

0x70 - context swap register

Source

pub const fn csgcm1r(&self) -> &CSGCMR

0x74 - context swap register

Source

pub const fn csgcm2r(&self) -> &CSGCMR

0x78 - context swap register

Source

pub const fn csgcm3r(&self) -> &CSGCMR

0x7c - context swap register

Source

pub const fn csgcm4r(&self) -> &CSGCMR

0x80 - context swap register

Source

pub const fn csgcm5r(&self) -> &CSGCMR

0x84 - context swap register

Source

pub const fn csgcm6r(&self) -> &CSGCMR

0x88 - context swap register

Source

pub const fn csgcm7r(&self) -> &CSGCMR

0x8c - context swap register

Trait Implementations§

Source§

impl Debug for RegisterBlock

Source§

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

Formats the value using the given formatter. Read more

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.