Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
Show 22 fields pub swpulse: SWPULSE, pub swlevel: SWLEVEL, pub routepen: ROUTEPEN, pub routeloc0: ROUTELOC0, pub routeloc1: ROUTELOC1, pub routeloc2: ROUTELOC2, pub ctrl: CTRL, pub dmareq0: DMAREQ0, pub dmareq1: DMAREQ1, pub peek: PEEK, pub ch0_ctrl: CH0_CTRL, pub ch1_ctrl: CH1_CTRL, pub ch2_ctrl: CH2_CTRL, pub ch3_ctrl: CH3_CTRL, pub ch4_ctrl: CH4_CTRL, pub ch5_ctrl: CH5_CTRL, pub ch6_ctrl: CH6_CTRL, pub ch7_ctrl: CH7_CTRL, pub ch8_ctrl: CH8_CTRL, pub ch9_ctrl: CH9_CTRL, pub ch10_ctrl: CH10_CTRL, pub ch11_ctrl: CH11_CTRL, /* private fields */
}
Expand description

Register block

Fields§

§swpulse: SWPULSE

0x00 - Software Pulse Register

§swlevel: SWLEVEL

0x04 - Software Level Register

§routepen: ROUTEPEN

0x08 - I/O Routing Pin Enable Register

§routeloc0: ROUTELOC0

0x10 - I/O Routing Location Register

§routeloc1: ROUTELOC1

0x14 - I/O Routing Location Register

§routeloc2: ROUTELOC2

0x18 - I/O Routing Location Register

§ctrl: CTRL

0x30 - Control Register

§dmareq0: DMAREQ0

0x34 - DMA Request 0 Register

§dmareq1: DMAREQ1

0x38 - DMA Request 1 Register

§peek: PEEK

0x40 - PRS Channel Values

§ch0_ctrl: CH0_CTRL

0x50 - Channel Control Register

§ch1_ctrl: CH1_CTRL

0x54 - Channel Control Register

§ch2_ctrl: CH2_CTRL

0x58 - Channel Control Register

§ch3_ctrl: CH3_CTRL

0x5c - Channel Control Register

§ch4_ctrl: CH4_CTRL

0x60 - Channel Control Register

§ch5_ctrl: CH5_CTRL

0x64 - Channel Control Register

§ch6_ctrl: CH6_CTRL

0x68 - Channel Control Register

§ch7_ctrl: CH7_CTRL

0x6c - Channel Control Register

§ch8_ctrl: CH8_CTRL

0x70 - Channel Control Register

§ch9_ctrl: CH9_CTRL

0x74 - Channel Control Register

§ch10_ctrl: CH10_CTRL

0x78 - Channel Control Register

§ch11_ctrl: CH11_CTRL

0x7c - Channel Control 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> Same for T

Source§

type Output = T

Should always be Self
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.