Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
Show 21 fields pub config: CONFIG, pub ctrl: CTRL, pub limit: LIMIT, pub halt: HALT, pub stop: STOP, pub start: START, pub count: COUNT, pub state: STATE, pub input: INPUT, pub regmode: REGMODE, pub output: OUTPUT, pub outputdirctrl: OUTPUTDIRCTRL, pub res: RES, pub dmareq0: DMAREQ0, pub dmareq1: DMAREQ1, pub even: EVEN, pub evflag: EVFLAG, pub conen: CONEN, pub conflag: CONFLAG, pub ev: [EV; 16], pub out: [OUT; 10], /* private fields */
}
Expand description

Register block

Fields§

§config: CONFIG

0x00 - SCT configuration register.

§ctrl: CTRL

0x04 - SCT control register.

§limit: LIMIT

0x08 - SCT limit event select register.

§halt: HALT

0x0c - SCT halt event select register.

§stop: STOP

0x10 - SCT stop event select register.

§start: START

0x14 - SCT start event select register.

§count: COUNT

0x40 - SCT counter register.

§state: STATE

0x44 - SCT state register.

§input: INPUT

0x48 - SCT input register.

§regmode: REGMODE

0x4c - SCT match/capture mode register.

§output: OUTPUT

0x50 - SCT output register.

§outputdirctrl: OUTPUTDIRCTRL

0x54 - SCT output counter direction control register.

§res: RES

0x58 - SCT conflict resolution register.

§dmareq0: DMAREQ0

0x5c - SCT DMA request 0 register.

§dmareq1: DMAREQ1

0x60 - SCT DMA request 1 register.

§even: EVEN

0xf0 - SCT event interrupt enable register.

§evflag: EVFLAG

0xf4 - SCT event flag register.

§conen: CONEN

0xf8 - SCT conflict interrupt enable register.

§conflag: CONFLAG

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) -> &MATCH0

0x100 - SCT match value register of match channels.

Source

pub fn cap0(&self) -> &CAP0

0x100 - SCT capture register of capture channel.

Source

pub fn match1(&self) -> &MATCH1

0x104 - SCT match value register of match channels.

Source

pub fn cap1(&self) -> &CAP1

0x104 - SCT capture register of capture channel.

Source

pub fn match2(&self) -> &MATCH2

0x108 - SCT match value register of match channels.

Source

pub fn cap2(&self) -> &CAP2

0x108 - SCT capture register of capture channel.

Source

pub fn match3(&self) -> &MATCH3

0x10c - SCT match value register of match channels.

Source

pub fn cap3(&self) -> &CAP3

0x10c - SCT capture register of capture channel.

Source

pub fn match4(&self) -> &MATCH4

0x110 - SCT match value register of match channels.

Source

pub fn cap4(&self) -> &CAP4

0x110 - SCT capture register of capture channel.

Source

pub fn match5(&self) -> &MATCH5

0x114 - SCT match value register of match channels.

Source

pub fn cap5(&self) -> &CAP5

0x114 - SCT capture register of capture channel.

Source

pub fn match6(&self) -> &MATCH6

0x118 - SCT match value register of match channels.

Source

pub fn cap6(&self) -> &CAP6

0x118 - SCT capture register of capture channel.

Source

pub fn match7(&self) -> &MATCH7

0x11c - SCT match value register of match channels.

Source

pub fn cap7(&self) -> &CAP7

0x11c - SCT capture register of capture channel.

Source

pub fn match8(&self) -> &MATCH8

0x120 - SCT match value register of match channels.

Source

pub fn cap8(&self) -> &CAP8

0x120 - SCT capture register of capture channel.

Source

pub fn match9(&self) -> &MATCH9

0x124 - SCT match value register of match channels.

Source

pub fn cap9(&self) -> &CAP9

0x124 - SCT capture register of capture channel.

Source

pub fn match10(&self) -> &MATCH10

0x128 - SCT match value register of match channels.

Source

pub fn cap10(&self) -> &CAP10

0x128 - SCT capture register of capture channel.

Source

pub fn match11(&self) -> &MATCH11

0x12c - SCT match value register of match channels.

Source

pub fn cap11(&self) -> &CAP11

0x12c - SCT capture register of capture channel.

Source

pub fn match12(&self) -> &MATCH12

0x130 - SCT match value register of match channels.

Source

pub fn cap12(&self) -> &CAP12

0x130 - SCT capture register of capture channel.

Source

pub fn match13(&self) -> &MATCH13

0x134 - SCT match value register of match channels.

Source

pub fn cap13(&self) -> &CAP13

0x134 - SCT capture register of capture channel.

Source

pub fn match14(&self) -> &MATCH14

0x138 - SCT match value register of match channels.

Source

pub fn cap14(&self) -> &CAP14

0x138 - SCT capture register of capture channel.

Source

pub fn match15(&self) -> &MATCH15

0x13c - SCT match value register of match channels.

Source

pub fn cap15(&self) -> &CAP15

0x13c - SCT capture register of capture channel.

Source

pub fn matchrel0(&self) -> &MATCHREL0

0x200 - SCT match reload value register.

Source

pub fn capctrl0(&self) -> &CAPCTRL0

0x200 - SCT capture control register.

Source

pub fn matchrel1(&self) -> &MATCHREL1

0x204 - SCT match reload value register.

Source

pub fn capctrl1(&self) -> &CAPCTRL1

0x204 - SCT capture control register.

Source

pub fn matchrel2(&self) -> &MATCHREL2

0x208 - SCT match reload value register.

Source

pub fn capctrl2(&self) -> &CAPCTRL2

0x208 - SCT capture control register.

Source

pub fn matchrel3(&self) -> &MATCHREL3

0x20c - SCT match reload value register.

Source

pub fn capctrl3(&self) -> &CAPCTRL3

0x20c - SCT capture control register.

Source

pub fn matchrel4(&self) -> &MATCHREL4

0x210 - SCT match reload value register.

Source

pub fn capctrl4(&self) -> &CAPCTRL4

0x210 - SCT capture control register.

Source

pub fn matchrel5(&self) -> &MATCHREL5

0x214 - SCT match reload value register.

Source

pub fn capctrl5(&self) -> &CAPCTRL5

0x214 - SCT capture control register.

Source

pub fn matchrel6(&self) -> &MATCHREL6

0x218 - SCT match reload value register.

Source

pub fn capctrl6(&self) -> &CAPCTRL6

0x218 - SCT capture control register.

Source

pub fn matchrel7(&self) -> &MATCHREL7

0x21c - SCT match reload value register.

Source

pub fn capctrl7(&self) -> &CAPCTRL7

0x21c - SCT capture control register.

Source

pub fn matchrel8(&self) -> &MATCHREL8

0x220 - SCT match reload value register.

Source

pub fn capctrl8(&self) -> &CAPCTRL8

0x220 - SCT capture control register.

Source

pub fn matchrel9(&self) -> &MATCHREL9

0x224 - SCT match reload value register.

Source

pub fn capctrl9(&self) -> &CAPCTRL9

0x224 - SCT capture control register.

Source

pub fn matchrel10(&self) -> &MATCHREL10

0x228 - SCT match reload value register.

Source

pub fn capctrl10(&self) -> &CAPCTRL10

0x228 - SCT capture control register.

Source

pub fn matchrel11(&self) -> &MATCHREL11

0x22c - SCT match reload value register.

Source

pub fn capctrl11(&self) -> &CAPCTRL11

0x22c - SCT capture control register.

Source

pub fn matchrel12(&self) -> &MATCHREL12

0x230 - SCT match reload value register.

Source

pub fn capctrl12(&self) -> &CAPCTRL12

0x230 - SCT capture control register.

Source

pub fn matchrel13(&self) -> &MATCHREL13

0x234 - SCT match reload value register.

Source

pub fn capctrl13(&self) -> &CAPCTRL13

0x234 - SCT capture control register.

Source

pub fn matchrel14(&self) -> &MATCHREL14

0x238 - SCT match reload value register.

Source

pub fn capctrl14(&self) -> &CAPCTRL14

0x238 - SCT capture control register.

Source

pub fn matchrel15(&self) -> &MATCHREL15

0x23c - SCT match reload value register.

Source

pub fn capctrl15(&self) -> &CAPCTRL15

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.