RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 18 fields pub ctrl0: Reg<CTRL0_SPEC>, pub ctrl1: Reg<CTRL1_SPEC>, pub loader: Reg<LOADER_SPEC>, pub status: Reg<STATUS_SPEC>, pub intenset: Reg<INTENSET_SPEC>, pub intenclr: Reg<INTENCLR_SPEC>, pub intstat: Reg<INTSTAT_SPEC>, pub areg: Reg<AREG_SPEC>, pub breg: Reg<BREG_SPEC>, pub creg: Reg<CREG_SPEC>, pub dreg: Reg<DREG_SPEC>, pub res0: Reg<RES0_SPEC>, pub res1: Reg<RES1_SPEC>, pub res2: Reg<RES2_SPEC>, pub res3: Reg<RES3_SPEC>, pub mask: Reg<MASK_SPEC>, pub remask: Reg<REMASK_SPEC>, pub lock: Reg<LOCK_SPEC>, /* private fields */
}
Expand description

Register block

Fields§

§ctrl0: Reg<CTRL0_SPEC>

0x00 - Contains the offsets of AB and CD in the RAM.

§ctrl1: Reg<CTRL1_SPEC>

0x04 - Contains the opcode mode, iteration count, and result offset (in RAM) and also launches the accelerator. Note: with CP version: CTRL0 and CRTL1 can be written in one go with MCRR.

§loader: Reg<LOADER_SPEC>

0x08 - Contains an optional loader to load into CTRL0/1 in steps to perform a set of operations.

§status: Reg<STATUS_SPEC>

0x0c - Indicates operational status and would contain the carry bit if used.

§intenset: Reg<INTENSET_SPEC>

0x10 - Sets interrupts

§intenclr: Reg<INTENCLR_SPEC>

0x14 - Clears interrupts

§intstat: Reg<INTSTAT_SPEC>

0x18 - Interrupt status bits (mask of INTENSET and STATUS)

§areg: Reg<AREG_SPEC>

0x20 - A register

§breg: Reg<BREG_SPEC>

0x24 - B register

§creg: Reg<CREG_SPEC>

0x28 - C register

§dreg: Reg<DREG_SPEC>

0x2c - D register

§res0: Reg<RES0_SPEC>

0x30 - Result register 0

§res1: Reg<RES1_SPEC>

0x34 - Result register 1

§res2: Reg<RES2_SPEC>

0x38 - Result register 2

§res3: Reg<RES3_SPEC>

0x3c - Result register 3

§mask: Reg<MASK_SPEC>

0x60 - Optional mask register

§remask: Reg<REMASK_SPEC>

0x64 - Optional re-mask register

§lock: Reg<LOCK_SPEC>

0x80 - Security lock 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.