#[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
impl RegisterBlock
Sourcepub fn match0(&self) -> &Reg<MATCH0_SPEC>
pub fn match0(&self) -> &Reg<MATCH0_SPEC>
0x100 - SCT match value register of match channels
Sourcepub fn match1(&self) -> &Reg<MATCH1_SPEC>
pub fn match1(&self) -> &Reg<MATCH1_SPEC>
0x104 - SCT match value register of match channels
Sourcepub fn match2(&self) -> &Reg<MATCH2_SPEC>
pub fn match2(&self) -> &Reg<MATCH2_SPEC>
0x108 - SCT match value register of match channels
Sourcepub fn match3(&self) -> &Reg<MATCH3_SPEC>
pub fn match3(&self) -> &Reg<MATCH3_SPEC>
0x10c - SCT match value register of match channels
Sourcepub fn match4(&self) -> &Reg<MATCH4_SPEC>
pub fn match4(&self) -> &Reg<MATCH4_SPEC>
0x110 - SCT match value register of match channels
Sourcepub fn match5(&self) -> &Reg<MATCH5_SPEC>
pub fn match5(&self) -> &Reg<MATCH5_SPEC>
0x114 - SCT match value register of match channels
Sourcepub fn match6(&self) -> &Reg<MATCH6_SPEC>
pub fn match6(&self) -> &Reg<MATCH6_SPEC>
0x118 - SCT match value register of match channels
Sourcepub fn match7(&self) -> &Reg<MATCH7_SPEC>
pub fn match7(&self) -> &Reg<MATCH7_SPEC>
0x11c - SCT match value register of match channels
Sourcepub fn match8(&self) -> &Reg<MATCH8_SPEC>
pub fn match8(&self) -> &Reg<MATCH8_SPEC>
0x120 - SCT match value register of match channels
Sourcepub fn match9(&self) -> &Reg<MATCH9_SPEC>
pub fn match9(&self) -> &Reg<MATCH9_SPEC>
0x124 - SCT match value register of match channels
Sourcepub fn match10(&self) -> &Reg<MATCH10_SPEC>
pub fn match10(&self) -> &Reg<MATCH10_SPEC>
0x128 - SCT match value register of match channels
Sourcepub fn cap10(&self) -> &Reg<CAP10_SPEC>
pub fn cap10(&self) -> &Reg<CAP10_SPEC>
0x128 - SCT capture register of capture channel
Sourcepub fn match11(&self) -> &Reg<MATCH11_SPEC>
pub fn match11(&self) -> &Reg<MATCH11_SPEC>
0x12c - SCT match value register of match channels
Sourcepub fn cap11(&self) -> &Reg<CAP11_SPEC>
pub fn cap11(&self) -> &Reg<CAP11_SPEC>
0x12c - SCT capture register of capture channel
Sourcepub fn match12(&self) -> &Reg<MATCH12_SPEC>
pub fn match12(&self) -> &Reg<MATCH12_SPEC>
0x130 - SCT match value register of match channels
Sourcepub fn cap12(&self) -> &Reg<CAP12_SPEC>
pub fn cap12(&self) -> &Reg<CAP12_SPEC>
0x130 - SCT capture register of capture channel
Sourcepub fn match13(&self) -> &Reg<MATCH13_SPEC>
pub fn match13(&self) -> &Reg<MATCH13_SPEC>
0x134 - SCT match value register of match channels
Sourcepub fn cap13(&self) -> &Reg<CAP13_SPEC>
pub fn cap13(&self) -> &Reg<CAP13_SPEC>
0x134 - SCT capture register of capture channel
Sourcepub fn match14(&self) -> &Reg<MATCH14_SPEC>
pub fn match14(&self) -> &Reg<MATCH14_SPEC>
0x138 - SCT match value register of match channels
Sourcepub fn cap14(&self) -> &Reg<CAP14_SPEC>
pub fn cap14(&self) -> &Reg<CAP14_SPEC>
0x138 - SCT capture register of capture channel
Sourcepub fn match15(&self) -> &Reg<MATCH15_SPEC>
pub fn match15(&self) -> &Reg<MATCH15_SPEC>
0x13c - SCT match value register of match channels
Sourcepub fn cap15(&self) -> &Reg<CAP15_SPEC>
pub fn cap15(&self) -> &Reg<CAP15_SPEC>
0x13c - SCT capture register of capture channel
Sourcepub fn matchrel0(&self) -> &Reg<MATCHREL0_SPEC>
pub fn matchrel0(&self) -> &Reg<MATCHREL0_SPEC>
0x200 - SCT match reload value register
Sourcepub fn capctrl0(&self) -> &Reg<CAPCTRL0_SPEC>
pub fn capctrl0(&self) -> &Reg<CAPCTRL0_SPEC>
0x200 - SCT capture control register
Sourcepub fn matchrel1(&self) -> &Reg<MATCHREL1_SPEC>
pub fn matchrel1(&self) -> &Reg<MATCHREL1_SPEC>
0x204 - SCT match reload value register
Sourcepub fn capctrl1(&self) -> &Reg<CAPCTRL1_SPEC>
pub fn capctrl1(&self) -> &Reg<CAPCTRL1_SPEC>
0x204 - SCT capture control register
Sourcepub fn matchrel2(&self) -> &Reg<MATCHREL2_SPEC>
pub fn matchrel2(&self) -> &Reg<MATCHREL2_SPEC>
0x208 - SCT match reload value register
Sourcepub fn capctrl2(&self) -> &Reg<CAPCTRL2_SPEC>
pub fn capctrl2(&self) -> &Reg<CAPCTRL2_SPEC>
0x208 - SCT capture control register
Sourcepub fn matchrel3(&self) -> &Reg<MATCHREL3_SPEC>
pub fn matchrel3(&self) -> &Reg<MATCHREL3_SPEC>
0x20c - SCT match reload value register
Sourcepub fn capctrl3(&self) -> &Reg<CAPCTRL3_SPEC>
pub fn capctrl3(&self) -> &Reg<CAPCTRL3_SPEC>
0x20c - SCT capture control register
Sourcepub fn matchrel4(&self) -> &Reg<MATCHREL4_SPEC>
pub fn matchrel4(&self) -> &Reg<MATCHREL4_SPEC>
0x210 - SCT match reload value register
Sourcepub fn capctrl4(&self) -> &Reg<CAPCTRL4_SPEC>
pub fn capctrl4(&self) -> &Reg<CAPCTRL4_SPEC>
0x210 - SCT capture control register
Sourcepub fn matchrel5(&self) -> &Reg<MATCHREL5_SPEC>
pub fn matchrel5(&self) -> &Reg<MATCHREL5_SPEC>
0x214 - SCT match reload value register
Sourcepub fn capctrl5(&self) -> &Reg<CAPCTRL5_SPEC>
pub fn capctrl5(&self) -> &Reg<CAPCTRL5_SPEC>
0x214 - SCT capture control register
Sourcepub fn matchrel6(&self) -> &Reg<MATCHREL6_SPEC>
pub fn matchrel6(&self) -> &Reg<MATCHREL6_SPEC>
0x218 - SCT match reload value register
Sourcepub fn capctrl6(&self) -> &Reg<CAPCTRL6_SPEC>
pub fn capctrl6(&self) -> &Reg<CAPCTRL6_SPEC>
0x218 - SCT capture control register
Sourcepub fn matchrel7(&self) -> &Reg<MATCHREL7_SPEC>
pub fn matchrel7(&self) -> &Reg<MATCHREL7_SPEC>
0x21c - SCT match reload value register
Sourcepub fn capctrl7(&self) -> &Reg<CAPCTRL7_SPEC>
pub fn capctrl7(&self) -> &Reg<CAPCTRL7_SPEC>
0x21c - SCT capture control register
Sourcepub fn matchrel8(&self) -> &Reg<MATCHREL8_SPEC>
pub fn matchrel8(&self) -> &Reg<MATCHREL8_SPEC>
0x220 - SCT match reload value register
Sourcepub fn capctrl8(&self) -> &Reg<CAPCTRL8_SPEC>
pub fn capctrl8(&self) -> &Reg<CAPCTRL8_SPEC>
0x220 - SCT capture control register
Sourcepub fn matchrel9(&self) -> &Reg<MATCHREL9_SPEC>
pub fn matchrel9(&self) -> &Reg<MATCHREL9_SPEC>
0x224 - SCT match reload value register
Sourcepub fn capctrl9(&self) -> &Reg<CAPCTRL9_SPEC>
pub fn capctrl9(&self) -> &Reg<CAPCTRL9_SPEC>
0x224 - SCT capture control register
Sourcepub fn matchrel10(&self) -> &Reg<MATCHREL10_SPEC>
pub fn matchrel10(&self) -> &Reg<MATCHREL10_SPEC>
0x228 - SCT match reload value register
Sourcepub fn capctrl10(&self) -> &Reg<CAPCTRL10_SPEC>
pub fn capctrl10(&self) -> &Reg<CAPCTRL10_SPEC>
0x228 - SCT capture control register
Sourcepub fn matchrel11(&self) -> &Reg<MATCHREL11_SPEC>
pub fn matchrel11(&self) -> &Reg<MATCHREL11_SPEC>
0x22c - SCT match reload value register
Sourcepub fn capctrl11(&self) -> &Reg<CAPCTRL11_SPEC>
pub fn capctrl11(&self) -> &Reg<CAPCTRL11_SPEC>
0x22c - SCT capture control register
Sourcepub fn matchrel12(&self) -> &Reg<MATCHREL12_SPEC>
pub fn matchrel12(&self) -> &Reg<MATCHREL12_SPEC>
0x230 - SCT match reload value register
Sourcepub fn capctrl12(&self) -> &Reg<CAPCTRL12_SPEC>
pub fn capctrl12(&self) -> &Reg<CAPCTRL12_SPEC>
0x230 - SCT capture control register
Sourcepub fn matchrel13(&self) -> &Reg<MATCHREL13_SPEC>
pub fn matchrel13(&self) -> &Reg<MATCHREL13_SPEC>
0x234 - SCT match reload value register
Sourcepub fn capctrl13(&self) -> &Reg<CAPCTRL13_SPEC>
pub fn capctrl13(&self) -> &Reg<CAPCTRL13_SPEC>
0x234 - SCT capture control register
Sourcepub fn matchrel14(&self) -> &Reg<MATCHREL14_SPEC>
pub fn matchrel14(&self) -> &Reg<MATCHREL14_SPEC>
0x238 - SCT match reload value register
Sourcepub fn capctrl14(&self) -> &Reg<CAPCTRL14_SPEC>
pub fn capctrl14(&self) -> &Reg<CAPCTRL14_SPEC>
0x238 - SCT capture control register
Sourcepub fn matchrel15(&self) -> &Reg<MATCHREL15_SPEC>
pub fn matchrel15(&self) -> &Reg<MATCHREL15_SPEC>
0x23c - SCT match reload value register
Sourcepub fn capctrl15(&self) -> &Reg<CAPCTRL15_SPEC>
pub fn capctrl15(&self) -> &Reg<CAPCTRL15_SPEC>
0x23c - SCT capture control register