RegisterBlock

Struct RegisterBlock 

Source
#[repr(C)]
pub struct RegisterBlock {
Show 21 fields pub config: Reg<CONFIG_SPEC>, pub ctrl: Reg<CTRL_SPEC>, pub limit: Reg<LIMIT_SPEC>, pub halt: Reg<HALT_SPEC>, pub stop: Reg<STOP_SPEC>, pub start: Reg<START_SPEC>, pub count: Reg<COUNT_SPEC>, pub state: Reg<STATE_SPEC>, pub input: Reg<INPUT_SPEC>, pub regmode: Reg<REGMODE_SPEC>, pub output: Reg<OUTPUT_SPEC>, pub outputdirctrl: Reg<OUTPUTDIRCTRL_SPEC>, pub res: Reg<RES_SPEC>, pub dmareq0: Reg<DMAREQ0_SPEC>, pub dmareq1: Reg<DMAREQ1_SPEC>, pub even: Reg<EVEN_SPEC>, pub evflag: Reg<EVFLAG_SPEC>, pub conen: Reg<CONEN_SPEC>, pub conflag: Reg<CONFLAG_SPEC>, pub ev: [EV; 16], pub out: [OUT; 10], /* private fields */
}
Expand description

Register block

Fields§

§config: Reg<CONFIG_SPEC>

0x00 - SCT configuration register

§ctrl: Reg<CTRL_SPEC>

0x04 - SCT control register

§limit: Reg<LIMIT_SPEC>

0x08 - SCT limit event select register

§halt: Reg<HALT_SPEC>

0x0c - SCT halt event select register

§stop: Reg<STOP_SPEC>

0x10 - SCT stop event select register

§start: Reg<START_SPEC>

0x14 - SCT start event select register

§count: Reg<COUNT_SPEC>

0x40 - SCT counter register

§state: Reg<STATE_SPEC>

0x44 - SCT state register

§input: Reg<INPUT_SPEC>

0x48 - SCT input register

§regmode: Reg<REGMODE_SPEC>

0x4c - SCT match/capture mode register

§output: Reg<OUTPUT_SPEC>

0x50 - SCT output register

§outputdirctrl: Reg<OUTPUTDIRCTRL_SPEC>

0x54 - SCT output counter direction control register

§res: Reg<RES_SPEC>

0x58 - SCT conflict resolution register

§dmareq0: Reg<DMAREQ0_SPEC>

0x5c - SCT DMA request 0 register

§dmareq1: Reg<DMAREQ1_SPEC>

0x60 - SCT DMA request 1 register

§even: Reg<EVEN_SPEC>

0xf0 - SCT event interrupt enable register

§evflag: Reg<EVFLAG_SPEC>

0xf4 - SCT event flag register

§conen: Reg<CONEN_SPEC>

0xf8 - SCT conflict interrupt enable register

§conflag: Reg<CONFLAG_SPEC>

0xfc - SCT conflict flag register

§ev: [EV; 16]

0x300..0x380 - no description available

§out: [OUT; 10]

0x500..0x550 - no description available

Implementations§

Source§

impl RegisterBlock

Source

pub fn match0(&self) -> &Reg<MATCH0_SPEC>

0x100 - SCT match value register of match channels

Source

pub fn cap0(&self) -> &Reg<CAP0_SPEC>

0x100 - SCT capture register of capture channel

Source

pub fn match1(&self) -> &Reg<MATCH1_SPEC>

0x104 - SCT match value register of match channels

Source

pub fn cap1(&self) -> &Reg<CAP1_SPEC>

0x104 - SCT capture register of capture channel

Source

pub fn match2(&self) -> &Reg<MATCH2_SPEC>

0x108 - SCT match value register of match channels

Source

pub fn cap2(&self) -> &Reg<CAP2_SPEC>

0x108 - SCT capture register of capture channel

Source

pub fn match3(&self) -> &Reg<MATCH3_SPEC>

0x10c - SCT match value register of match channels

Source

pub fn cap3(&self) -> &Reg<CAP3_SPEC>

0x10c - SCT capture register of capture channel

Source

pub fn match4(&self) -> &Reg<MATCH4_SPEC>

0x110 - SCT match value register of match channels

Source

pub fn cap4(&self) -> &Reg<CAP4_SPEC>

0x110 - SCT capture register of capture channel

Source

pub fn match5(&self) -> &Reg<MATCH5_SPEC>

0x114 - SCT match value register of match channels

Source

pub fn cap5(&self) -> &Reg<CAP5_SPEC>

0x114 - SCT capture register of capture channel

Source

pub fn match6(&self) -> &Reg<MATCH6_SPEC>

0x118 - SCT match value register of match channels

Source

pub fn cap6(&self) -> &Reg<CAP6_SPEC>

0x118 - SCT capture register of capture channel

Source

pub fn match7(&self) -> &Reg<MATCH7_SPEC>

0x11c - SCT match value register of match channels

Source

pub fn cap7(&self) -> &Reg<CAP7_SPEC>

0x11c - SCT capture register of capture channel

Source

pub fn match8(&self) -> &Reg<MATCH8_SPEC>

0x120 - SCT match value register of match channels

Source

pub fn cap8(&self) -> &Reg<CAP8_SPEC>

0x120 - SCT capture register of capture channel

Source

pub fn match9(&self) -> &Reg<MATCH9_SPEC>

0x124 - SCT match value register of match channels

Source

pub fn cap9(&self) -> &Reg<CAP9_SPEC>

0x124 - SCT capture register of capture channel

Source

pub fn match10(&self) -> &Reg<MATCH10_SPEC>

0x128 - SCT match value register of match channels

Source

pub fn cap10(&self) -> &Reg<CAP10_SPEC>

0x128 - SCT capture register of capture channel

Source

pub fn match11(&self) -> &Reg<MATCH11_SPEC>

0x12c - SCT match value register of match channels

Source

pub fn cap11(&self) -> &Reg<CAP11_SPEC>

0x12c - SCT capture register of capture channel

Source

pub fn match12(&self) -> &Reg<MATCH12_SPEC>

0x130 - SCT match value register of match channels

Source

pub fn cap12(&self) -> &Reg<CAP12_SPEC>

0x130 - SCT capture register of capture channel

Source

pub fn match13(&self) -> &Reg<MATCH13_SPEC>

0x134 - SCT match value register of match channels

Source

pub fn cap13(&self) -> &Reg<CAP13_SPEC>

0x134 - SCT capture register of capture channel

Source

pub fn match14(&self) -> &Reg<MATCH14_SPEC>

0x138 - SCT match value register of match channels

Source

pub fn cap14(&self) -> &Reg<CAP14_SPEC>

0x138 - SCT capture register of capture channel

Source

pub fn match15(&self) -> &Reg<MATCH15_SPEC>

0x13c - SCT match value register of match channels

Source

pub fn cap15(&self) -> &Reg<CAP15_SPEC>

0x13c - SCT capture register of capture channel

Source

pub fn matchrel0(&self) -> &Reg<MATCHREL0_SPEC>

0x200 - SCT match reload value register

Source

pub fn capctrl0(&self) -> &Reg<CAPCTRL0_SPEC>

0x200 - SCT capture control register

Source

pub fn matchrel1(&self) -> &Reg<MATCHREL1_SPEC>

0x204 - SCT match reload value register

Source

pub fn capctrl1(&self) -> &Reg<CAPCTRL1_SPEC>

0x204 - SCT capture control register

Source

pub fn matchrel2(&self) -> &Reg<MATCHREL2_SPEC>

0x208 - SCT match reload value register

Source

pub fn capctrl2(&self) -> &Reg<CAPCTRL2_SPEC>

0x208 - SCT capture control register

Source

pub fn matchrel3(&self) -> &Reg<MATCHREL3_SPEC>

0x20c - SCT match reload value register

Source

pub fn capctrl3(&self) -> &Reg<CAPCTRL3_SPEC>

0x20c - SCT capture control register

Source

pub fn matchrel4(&self) -> &Reg<MATCHREL4_SPEC>

0x210 - SCT match reload value register

Source

pub fn capctrl4(&self) -> &Reg<CAPCTRL4_SPEC>

0x210 - SCT capture control register

Source

pub fn matchrel5(&self) -> &Reg<MATCHREL5_SPEC>

0x214 - SCT match reload value register

Source

pub fn capctrl5(&self) -> &Reg<CAPCTRL5_SPEC>

0x214 - SCT capture control register

Source

pub fn matchrel6(&self) -> &Reg<MATCHREL6_SPEC>

0x218 - SCT match reload value register

Source

pub fn capctrl6(&self) -> &Reg<CAPCTRL6_SPEC>

0x218 - SCT capture control register

Source

pub fn matchrel7(&self) -> &Reg<MATCHREL7_SPEC>

0x21c - SCT match reload value register

Source

pub fn capctrl7(&self) -> &Reg<CAPCTRL7_SPEC>

0x21c - SCT capture control register

Source

pub fn matchrel8(&self) -> &Reg<MATCHREL8_SPEC>

0x220 - SCT match reload value register

Source

pub fn capctrl8(&self) -> &Reg<CAPCTRL8_SPEC>

0x220 - SCT capture control register

Source

pub fn matchrel9(&self) -> &Reg<MATCHREL9_SPEC>

0x224 - SCT match reload value register

Source

pub fn capctrl9(&self) -> &Reg<CAPCTRL9_SPEC>

0x224 - SCT capture control register

Source

pub fn matchrel10(&self) -> &Reg<MATCHREL10_SPEC>

0x228 - SCT match reload value register

Source

pub fn capctrl10(&self) -> &Reg<CAPCTRL10_SPEC>

0x228 - SCT capture control register

Source

pub fn matchrel11(&self) -> &Reg<MATCHREL11_SPEC>

0x22c - SCT match reload value register

Source

pub fn capctrl11(&self) -> &Reg<CAPCTRL11_SPEC>

0x22c - SCT capture control register

Source

pub fn matchrel12(&self) -> &Reg<MATCHREL12_SPEC>

0x230 - SCT match reload value register

Source

pub fn capctrl12(&self) -> &Reg<CAPCTRL12_SPEC>

0x230 - SCT capture control register

Source

pub fn matchrel13(&self) -> &Reg<MATCHREL13_SPEC>

0x234 - SCT match reload value register

Source

pub fn capctrl13(&self) -> &Reg<CAPCTRL13_SPEC>

0x234 - SCT capture control register

Source

pub fn matchrel14(&self) -> &Reg<MATCHREL14_SPEC>

0x238 - SCT match reload value register

Source

pub fn capctrl14(&self) -> &Reg<CAPCTRL14_SPEC>

0x238 - SCT capture control register

Source

pub fn matchrel15(&self) -> &Reg<MATCHREL15_SPEC>

0x23c - SCT match reload value register

Source

pub fn capctrl15(&self) -> &Reg<CAPCTRL15_SPEC>

0x23c - SCT capture control 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.