RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
Show 30 fields pub ctrl: CTRL, pub cmd: CMD, pub status: STATUS, pub ien: IEN, pub if_: IF, pub ifs: IFS, pub ifc: IFC, pub top: TOP, pub topb: TOPB, pub cnt: CNT, pub route: ROUTE, pub cc0_ctrl: CC0_CTRL, pub cc0_ccv: CC0_CCV, pub cc0_ccvp: CC0_CCVP, pub cc0_ccvb: CC0_CCVB, pub cc1_ctrl: CC1_CTRL, pub cc1_ccv: CC1_CCV, pub cc1_ccvp: CC1_CCVP, pub cc1_ccvb: CC1_CCVB, pub cc2_ctrl: CC2_CTRL, pub cc2_ccv: CC2_CCV, pub cc2_ccvp: CC2_CCVP, pub cc2_ccvb: CC2_CCVB, pub dtctrl: DTCTRL, pub dttime: DTTIME, pub dtfc: DTFC, pub dtogen: DTOGEN, pub dtfault: DTFAULT, pub dtfaultc: DTFAULTC, pub dtlock: DTLOCK, /* private fields */
}
Expand description

Register block

Fields§

§ctrl: CTRL

0x00 - Control Register

§cmd: CMD

0x04 - Command Register

§status: STATUS

0x08 - Status Register

§ien: IEN

0x0c - Interrupt Enable Register

§if_: IF

0x10 - Interrupt Flag Register

§ifs: IFS

0x14 - Interrupt Flag Set Register

§ifc: IFC

0x18 - Interrupt Flag Clear Register

§top: TOP

0x1c - Counter Top Value Register

§topb: TOPB

0x20 - Counter Top Value Buffer Register

§cnt: CNT

0x24 - Counter Value Register

§route: ROUTE

0x28 - I/O Routing Register

§cc0_ctrl: CC0_CTRL

0x30 - CC Channel Control Register

§cc0_ccv: CC0_CCV

0x34 - CC Channel Value Register

§cc0_ccvp: CC0_CCVP

0x38 - CC Channel Value Peek Register

§cc0_ccvb: CC0_CCVB

0x3c - CC Channel Buffer Register

§cc1_ctrl: CC1_CTRL

0x40 - CC Channel Control Register

§cc1_ccv: CC1_CCV

0x44 - CC Channel Value Register

§cc1_ccvp: CC1_CCVP

0x48 - CC Channel Value Peek Register

§cc1_ccvb: CC1_CCVB

0x4c - CC Channel Buffer Register

§cc2_ctrl: CC2_CTRL

0x50 - CC Channel Control Register

§cc2_ccv: CC2_CCV

0x54 - CC Channel Value Register

§cc2_ccvp: CC2_CCVP

0x58 - CC Channel Value Peek Register

§cc2_ccvb: CC2_CCVB

0x5c - CC Channel Buffer Register

§dtctrl: DTCTRL

0x70 - DTI Control Register

§dttime: DTTIME

0x74 - DTI Time Control Register

§dtfc: DTFC

0x78 - DTI Fault Configuration Register

§dtogen: DTOGEN

0x7c - DTI Output Generation Enable Register

§dtfault: DTFAULT

0x80 - DTI Fault Register

§dtfaultc: DTFAULTC

0x84 - DTI Fault Clear Register

§dtlock: DTLOCK

0x88 - DTI Configuration 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.