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 dinr(&self) -> &DINR

0x08 - data input register

Source

pub const fn doutr(&self) -> &DOUTR

0x0c - data output register

Source

pub const fn keyr0(&self) -> &KEYR0

0x10 - key register

Source

pub const fn keyr1(&self) -> &KEYR1

0x14 - key register

Source

pub const fn keyr2(&self) -> &KEYR2

0x18 - key register

Source

pub const fn keyr3(&self) -> &KEYR3

0x1c - key register

Source

pub const fn ivr0(&self) -> &IVR0

0x20 - initialization vector register

Source

pub const fn ivr1(&self) -> &IVR1

0x24 - initialization vector register

Source

pub const fn ivr2(&self) -> &IVR2

0x28 - initialization vector register

Source

pub const fn ivr3(&self) -> &IVR3

0x2c - initialization vector register

Source

pub const fn keyr4(&self) -> &KEYR4

0x30 - key registers

Source

pub const fn keyr5(&self) -> &KEYR5

0x34 - key registers

Source

pub const fn keyr6(&self) -> &KEYR6

0x38 - key registers

Source

pub const fn keyr7(&self) -> &KEYR7

0x3c - key registers

Source

pub const fn susp0r(&self) -> &SUSP0R

0x40 - Suspend registers

Source

pub const fn susp1r(&self) -> &SUSP1R

0x44 - Suspend registers

Source

pub const fn susp2r(&self) -> &SUSP2R

0x48 - Suspend registers

Source

pub const fn susp3r(&self) -> &SUSP3R

0x4c - Suspend registers

Source

pub const fn susp4r(&self) -> &SUSP4R

0x50 - Suspend registers

Source

pub const fn susp5r(&self) -> &SUSP5R

0x54 - Suspend registers

Source

pub const fn susp6r(&self) -> &SUSP6R

0x58 - Suspend registers

Source

pub const fn susp7r(&self) -> &SUSP7R

0x5c - Suspend registers

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.