RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 13 fields pub ir: Reg<IR_SPEC>, pub tcr: Reg<TCR_SPEC>, pub tc: Reg<TC_SPEC>, pub pr: Reg<PR_SPEC>, pub pc: Reg<PC_SPEC>, pub mcr: Reg<MCR_SPEC>, pub mr: [Reg<MR_SPEC>; 4], pub ccr: Reg<CCR_SPEC>, pub cr: [Reg<CR_SPEC>; 4], pub emr: Reg<EMR_SPEC>, pub ctcr: Reg<CTCR_SPEC>, pub pwmc: Reg<PWMC_SPEC>, pub msr: [Reg<MSR_SPEC>; 4], /* private fields */
}
Expand description

Register block

Fields§

§ir: Reg<IR_SPEC>

0x00 - Interrupt Register. The IR can be written to clear interrupts. The IR can be read to identify which of eight possible interrupt sources are pending.

§tcr: Reg<TCR_SPEC>

0x04 - Timer Control Register. The TCR is used to control the Timer Counter functions. The Timer Counter can be disabled or reset through the TCR.

§tc: Reg<TC_SPEC>

0x08 - Timer Counter

§pr: Reg<PR_SPEC>

0x0c - Prescale Register

§pc: Reg<PC_SPEC>

0x10 - Prescale Counter

§mcr: Reg<MCR_SPEC>

0x14 - Match Control Register

§mr: [Reg<MR_SPEC>; 4]

0x18..0x28 - Match Register . MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate an interrupt every time MR matches the TC.

§ccr: Reg<CCR_SPEC>

0x28 - Capture Control Register. The CCR controls which edges of the capture inputs are used to load the Capture Registers and whether or not an interrupt is generated when a capture takes place.

§cr: [Reg<CR_SPEC>; 4]

0x2c..0x3c - Capture Register . CR is loaded with the value of TC when there is an event on the CAPn. input.

§emr: Reg<EMR_SPEC>

0x3c - External Match Register. The EMR controls the match function and the external match pins.

§ctcr: Reg<CTCR_SPEC>

0x70 - Count Control Register. The CTCR selects between Timer and Counter mode, and in Counter mode selects the signal and edge(s) for counting.

§pwmc: Reg<PWMC_SPEC>

0x74 - PWM Control Register. This register enables PWM mode for the external match pins.

§msr: [Reg<MSR_SPEC>; 4]

0x78..0x88 - Match Shadow 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.