RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock { pub ctl0: Reg<CTL0_SPEC>, pub dmainten: Reg<DMAINTEN_SPEC>, pub intf: Reg<INTF_SPEC>, pub swevg: Reg<SWEVG_SPEC>, pub chctl2: Reg<CHCTL2_SPEC>, pub cnt: Reg<CNT_SPEC>, pub psc: Reg<PSC_SPEC>, pub car: Reg<CAR_SPEC>, pub ch0cv: Reg<CH0CV_SPEC>, pub irmp: Reg<IRMP_SPEC>, pub cfg: Reg<CFG_SPEC>, /* private fields */ }
Expand description

Register block

Fields§

§ctl0: Reg<CTL0_SPEC>

0x00 - control register 1

§dmainten: Reg<DMAINTEN_SPEC>

0x0c - DMA/Interrupt enable register

§intf: Reg<INTF_SPEC>

0x10 - interrupt flag register

§swevg: Reg<SWEVG_SPEC>

0x14 - event generation register

§chctl2: Reg<CHCTL2_SPEC>

0x20 - capture/compare enable register

§cnt: Reg<CNT_SPEC>

0x24 - counter

§psc: Reg<PSC_SPEC>

0x28 - prescaler

§car: Reg<CAR_SPEC>

0x2c - auto-reload register

§ch0cv: Reg<CH0CV_SPEC>

0x34 - capture/compare register 0

§irmp: Reg<IRMP_SPEC>

0x50 - channel input remap register

§cfg: Reg<CFG_SPEC>

0xfc - configuration register

Implementations§

Source§

impl RegisterBlock

Source

pub fn chctl0_input(&self) -> &Reg<CHCTL0_INPUT_SPEC>

0x18 - capture/compare mode register (input mode)

Source

pub fn chctl0_output(&self) -> &Reg<CHCTL0_OUTPUT_SPEC>

0x18 - capture/compare mode register (output mode)

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.