Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
    pub tc_channel0: TC_CHANNEL,
    pub tc_channel1: TC_CHANNEL,
    pub tc_channel2: TC_CHANNEL,
    pub tc_bcr: Reg<TC_BCR_SPEC>,
    pub tc_bmr: Reg<TC_BMR_SPEC>,
    pub tc_qier: Reg<TC_QIER_SPEC>,
    pub tc_qidr: Reg<TC_QIDR_SPEC>,
    pub tc_qimr: Reg<TC_QIMR_SPEC>,
    pub tc_qisr: Reg<TC_QISR_SPEC>,
    pub tc_fmr: Reg<TC_FMR_SPEC>,
    pub tc_wpmr: Reg<TC_WPMR_SPEC>,
    pub tc_ver: Reg<TC_VER_SPEC>,
    /* private fields */
}
Expand description

Register block

Fields§

§tc_channel0: TC_CHANNEL

0x00..0x34 - Channel Control Register (channel = 0)

§tc_channel1: TC_CHANNEL

0x40..0x74 - Channel Control Register (channel = 0)

§tc_channel2: TC_CHANNEL

0x80..0xb4 - Channel Control Register (channel = 0)

§tc_bcr: Reg<TC_BCR_SPEC>

0xc0 - Block Control Register

§tc_bmr: Reg<TC_BMR_SPEC>

0xc4 - Block Mode Register

§tc_qier: Reg<TC_QIER_SPEC>

0xc8 - QDEC Interrupt Enable Register

§tc_qidr: Reg<TC_QIDR_SPEC>

0xcc - QDEC Interrupt Disable Register

§tc_qimr: Reg<TC_QIMR_SPEC>

0xd0 - QDEC Interrupt Mask Register

§tc_qisr: Reg<TC_QISR_SPEC>

0xd4 - QDEC Interrupt Status Register

§tc_fmr: Reg<TC_FMR_SPEC>

0xd8 - Fault Mode Register

§tc_wpmr: Reg<TC_WPMR_SPEC>

0xe4 - Write Protection Mode Register

§tc_ver: Reg<TC_VER_SPEC>

0xfc - Version 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.