#[repr(C)]
pub struct RegisterBlock { pub control: CONTROL, pub fifolevel: FIFOLEVEL, pub fifodepth: FIFODEPTH, pub key0: KEY0, pub key1: KEY1, pub key2: KEY2, pub key3: KEY3, pub testdata: TESTDATA, pub status: STATUS, pub initwaitval: INITWAITVAL, pub fifo: FIFO, /* private fields */ }
Expand description

Register block

Fields§

§control: CONTROL

0x00 - Main Control Register

§fifolevel: FIFOLEVEL

0x04 - FIFO Level Register

§fifodepth: FIFODEPTH

0x0c - FIFO Depth Register

§key0: KEY0

0x10 - Key Register 0

§key1: KEY1

0x14 - Key Register 1

§key2: KEY2

0x18 - Key Register 2

§key3: KEY3

0x1c - Key Register 3

§testdata: TESTDATA

0x20 - Test Data Register

§status: STATUS

0x30 - Status Register

§initwaitval: INITWAITVAL

0x34 - Initial Wait Counter

§fifo: FIFO

0x100 - FIFO Data

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.