RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 22 fields pub outbase: Reg<OUTBASE_SPEC>, pub outformat: Reg<OUTFORMAT_SPEC>, pub tmpbase: Reg<TMPBASE_SPEC>, pub tmpformat: Reg<TMPFORMAT_SPEC>, pub inabase: Reg<INABASE_SPEC>, pub inaformat: Reg<INAFORMAT_SPEC>, pub inbbase: Reg<INBBASE_SPEC>, pub inbformat: Reg<INBFORMAT_SPEC>, pub control: Reg<CONTROL_SPEC>, pub length: Reg<LENGTH_SPEC>, pub cppre: Reg<CPPRE_SPEC>, pub misc: Reg<MISC_SPEC>, pub cursory: Reg<CURSORY_SPEC>, pub cordic_x: Reg<CORDIC_X_SPEC>, pub cordic_y: Reg<CORDIC_Y_SPEC>, pub cordic_z: Reg<CORDIC_Z_SPEC>, pub errstat: Reg<ERRSTAT_SPEC>, pub intren: Reg<INTREN_SPEC>, pub eventen: Reg<EVENTEN_SPEC>, pub intrstat: Reg<INTRSTAT_SPEC>, pub gpreg: [Reg<GPREG_SPEC>; 16], pub compreg: [Reg<COMPREG_SPEC>; 8], /* private fields */
}
Expand description

Register block

Fields§

§outbase: Reg<OUTBASE_SPEC>

0x00 - Base address register for output region

§outformat: Reg<OUTFORMAT_SPEC>

0x04 - Output format

§tmpbase: Reg<TMPBASE_SPEC>

0x08 - Base address register for temp region

§tmpformat: Reg<TMPFORMAT_SPEC>

0x0c - Temp format

§inabase: Reg<INABASE_SPEC>

0x10 - Base address register for input A region

§inaformat: Reg<INAFORMAT_SPEC>

0x14 - Input A format

§inbbase: Reg<INBBASE_SPEC>

0x18 - Base address register for input B region

§inbformat: Reg<INBFORMAT_SPEC>

0x1c - Input B format

§control: Reg<CONTROL_SPEC>

0x100 - PowerQuad Control register

§length: Reg<LENGTH_SPEC>

0x104 - Length register

§cppre: Reg<CPPRE_SPEC>

0x108 - Pre-scale register

§misc: Reg<MISC_SPEC>

0x10c - Misc register

§cursory: Reg<CURSORY_SPEC>

0x110 - Cursory register

§cordic_x: Reg<CORDIC_X_SPEC>

0x180 - Cordic input X register

§cordic_y: Reg<CORDIC_Y_SPEC>

0x184 - Cordic input Y register

§cordic_z: Reg<CORDIC_Z_SPEC>

0x188 - Cordic input Z register

§errstat: Reg<ERRSTAT_SPEC>

0x18c - Read/Write register where error statuses are captured (sticky)

§intren: Reg<INTREN_SPEC>

0x190 - INTERRUPT enable register

§eventen: Reg<EVENTEN_SPEC>

0x194 - Event Enable register

§intrstat: Reg<INTRSTAT_SPEC>

0x198 - INTERRUPT STATUS register

§gpreg: [Reg<GPREG_SPEC>; 16]

0x200..0x240 - General purpose register bank N.

§compreg: [Reg<COMPREG_SPEC>; 8]

0x240..0x260 - Compute register bank

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.