Struct lpc81x_pac::lpc810::sct0::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock {Show 19 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 even: EVEN,
pub evflag: EVFLAG,
pub conen: CONEN,
pub conflag: CONFLAG,
pub ev: [EV; 6],
pub out: [OUT; 4],
/* 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
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; 6]
0x300..0x330 - no description available
out: [OUT; 4]
0x500..0x520 - no description available
Implementations§
source§impl RegisterBlock
impl RegisterBlock
sourcepub fn cap_match_match0(&self) -> &CAP_MATCH_MATCH0
pub fn cap_match_match0(&self) -> &CAP_MATCH_MATCH0
0x100 - SCT match value register of match channels
sourcepub fn cap_match_cap0(&self) -> &CAP_MATCH_CAP0
pub fn cap_match_cap0(&self) -> &CAP_MATCH_CAP0
0x100 - SCT capture register of capture channel
sourcepub fn cap_match_match1(&self) -> &CAP_MATCH_MATCH1
pub fn cap_match_match1(&self) -> &CAP_MATCH_MATCH1
0x104 - SCT match value register of match channels
sourcepub fn cap_match_cap1(&self) -> &CAP_MATCH_CAP1
pub fn cap_match_cap1(&self) -> &CAP_MATCH_CAP1
0x104 - SCT capture register of capture channel
sourcepub fn cap_match_match2(&self) -> &CAP_MATCH_MATCH2
pub fn cap_match_match2(&self) -> &CAP_MATCH_MATCH2
0x108 - SCT match value register of match channels
sourcepub fn cap_match_cap2(&self) -> &CAP_MATCH_CAP2
pub fn cap_match_cap2(&self) -> &CAP_MATCH_CAP2
0x108 - SCT capture register of capture channel
sourcepub fn cap_match_match3(&self) -> &CAP_MATCH_MATCH3
pub fn cap_match_match3(&self) -> &CAP_MATCH_MATCH3
0x10c - SCT match value register of match channels
sourcepub fn cap_match_cap3(&self) -> &CAP_MATCH_CAP3
pub fn cap_match_cap3(&self) -> &CAP_MATCH_CAP3
0x10c - SCT capture register of capture channel
sourcepub fn cap_match_match4(&self) -> &CAP_MATCH_MATCH4
pub fn cap_match_match4(&self) -> &CAP_MATCH_MATCH4
0x110 - SCT match value register of match channels
sourcepub fn cap_match_cap4(&self) -> &CAP_MATCH_CAP4
pub fn cap_match_cap4(&self) -> &CAP_MATCH_CAP4
0x110 - SCT capture register of capture channel
sourcepub fn capctrl_matchrel_matchrel0(&self) -> &CAPCTRL_MATCHREL_MATCHREL0
pub fn capctrl_matchrel_matchrel0(&self) -> &CAPCTRL_MATCHREL_MATCHREL0
0x200 - SCT match reload value register
sourcepub fn capctrl_matchrel_capctrl0(&self) -> &CAPCTRL_MATCHREL_CAPCTRL0
pub fn capctrl_matchrel_capctrl0(&self) -> &CAPCTRL_MATCHREL_CAPCTRL0
0x200 - SCT capture control register
sourcepub fn capctrl_matchrel_matchrel1(&self) -> &CAPCTRL_MATCHREL_MATCHREL1
pub fn capctrl_matchrel_matchrel1(&self) -> &CAPCTRL_MATCHREL_MATCHREL1
0x204 - SCT match reload value register
sourcepub fn capctrl_matchrel_capctrl1(&self) -> &CAPCTRL_MATCHREL_CAPCTRL1
pub fn capctrl_matchrel_capctrl1(&self) -> &CAPCTRL_MATCHREL_CAPCTRL1
0x204 - SCT capture control register
sourcepub fn capctrl_matchrel_matchrel2(&self) -> &CAPCTRL_MATCHREL_MATCHREL2
pub fn capctrl_matchrel_matchrel2(&self) -> &CAPCTRL_MATCHREL_MATCHREL2
0x208 - SCT match reload value register
sourcepub fn capctrl_matchrel_capctrl2(&self) -> &CAPCTRL_MATCHREL_CAPCTRL2
pub fn capctrl_matchrel_capctrl2(&self) -> &CAPCTRL_MATCHREL_CAPCTRL2
0x208 - SCT capture control register
sourcepub fn capctrl_matchrel_matchrel3(&self) -> &CAPCTRL_MATCHREL_MATCHREL3
pub fn capctrl_matchrel_matchrel3(&self) -> &CAPCTRL_MATCHREL_MATCHREL3
0x20c - SCT match reload value register
sourcepub fn capctrl_matchrel_capctrl3(&self) -> &CAPCTRL_MATCHREL_CAPCTRL3
pub fn capctrl_matchrel_capctrl3(&self) -> &CAPCTRL_MATCHREL_CAPCTRL3
0x20c - SCT capture control register
sourcepub fn capctrl_matchrel_matchrel4(&self) -> &CAPCTRL_MATCHREL_MATCHREL4
pub fn capctrl_matchrel_matchrel4(&self) -> &CAPCTRL_MATCHREL_MATCHREL4
0x210 - SCT match reload value register
sourcepub fn capctrl_matchrel_capctrl4(&self) -> &CAPCTRL_MATCHREL_CAPCTRL4
pub fn capctrl_matchrel_capctrl4(&self) -> &CAPCTRL_MATCHREL_CAPCTRL4
0x210 - SCT capture control register