#[repr(C)]
pub struct RegisterBlock {
Show 37 fields pub ctrl: CTRL, pub cmd: CMD, pub status: STATUS, pub if_: IF, pub ifs: IFS, pub ifc: IFC, pub ien: IEN, pub top: TOP, pub topb: TOPB, pub cnt: CNT, pub lock: LOCK, pub routepen: ROUTEPEN, pub routeloc0: ROUTELOC0, pub routeloc2: ROUTELOC2, 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 cc3_ctrl: CC3_CTRL, pub cc3_ccv: CC3_CCV, pub cc3_ccvp: CC3_CCVP, pub cc3_ccvb: CC3_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

§if_: IF

0x0c - Interrupt Flag Register

§ifs: IFS

0x10 - Interrupt Flag Set Register

§ifc: IFC

0x14 - Interrupt Flag Clear Register

§ien: IEN

0x18 - Interrupt Enable Register

§top: TOP

0x1c - Counter Top Value Register

§topb: TOPB

0x20 - Counter Top Value Buffer Register

§cnt: CNT

0x24 - Counter Value Register

§lock: LOCK

0x2c - TIMER Configuration Lock Register

§routepen: ROUTEPEN

0x30 - I/O Routing Pin Enable Register

§routeloc0: ROUTELOC0

0x34 - I/O Routing Location Register

§routeloc2: ROUTELOC2

0x3c - I/O Routing Location Register

§cc0_ctrl: CC0_CTRL

0x60 - CC Channel Control Register

§cc0_ccv: CC0_CCV

0x64 - CC Channel Value Register

§cc0_ccvp: CC0_CCVP

0x68 - CC Channel Value Peek Register

§cc0_ccvb: CC0_CCVB

0x6c - CC Channel Buffer Register

§cc1_ctrl: CC1_CTRL

0x70 - CC Channel Control Register

§cc1_ccv: CC1_CCV

0x74 - CC Channel Value Register

§cc1_ccvp: CC1_CCVP

0x78 - CC Channel Value Peek Register

§cc1_ccvb: CC1_CCVB

0x7c - CC Channel Buffer Register

§cc2_ctrl: CC2_CTRL

0x80 - CC Channel Control Register

§cc2_ccv: CC2_CCV

0x84 - CC Channel Value Register

§cc2_ccvp: CC2_CCVP

0x88 - CC Channel Value Peek Register

§cc2_ccvb: CC2_CCVB

0x8c - CC Channel Buffer Register

§cc3_ctrl: CC3_CTRL

0x90 - CC Channel Control Register

§cc3_ccv: CC3_CCV

0x94 - CC Channel Value Register

§cc3_ccvp: CC3_CCVP

0x98 - CC Channel Value Peek Register

§cc3_ccvb: CC3_CCVB

0x9c - CC Channel Buffer Register

§dtctrl: DTCTRL

0xa0 - DTI Control Register

§dttime: DTTIME

0xa4 - DTI Time Control Register

§dtfc: DTFC

0xa8 - DTI Fault Configuration Register

§dtogen: DTOGEN

0xac - DTI Output Generation Enable Register

§dtfault: DTFAULT

0xb0 - DTI Fault Register

§dtfaultc: DTFAULTC

0xb4 - DTI Fault Clear Register

§dtlock: DTLOCK

0xb8 - DTI Configuration Lock Register

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.