mimxrt685s_pac/
utick0.rs

1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    ctrl: Ctrl,
6    stat: Stat,
7    cfg: Cfg,
8    capclr: Capclr,
9    cap: [Cap; 4],
10}
11impl RegisterBlock {
12    #[doc = "0x00 - Control register."]
13    #[inline(always)]
14    pub const fn ctrl(&self) -> &Ctrl {
15        &self.ctrl
16    }
17    #[doc = "0x04 - Status register."]
18    #[inline(always)]
19    pub const fn stat(&self) -> &Stat {
20        &self.stat
21    }
22    #[doc = "0x08 - Capture configuration register."]
23    #[inline(always)]
24    pub const fn cfg(&self) -> &Cfg {
25        &self.cfg
26    }
27    #[doc = "0x0c - Capture clear register."]
28    #[inline(always)]
29    pub const fn capclr(&self) -> &Capclr {
30        &self.capclr
31    }
32    #[doc = "0x10..0x20 - Capture register ."]
33    #[inline(always)]
34    pub const fn cap(&self, n: usize) -> &Cap {
35        &self.cap[n]
36    }
37    #[doc = "Iterator for array of:"]
38    #[doc = "0x10..0x20 - Capture register ."]
39    #[inline(always)]
40    pub fn cap_iter(&self) -> impl Iterator<Item = &Cap> {
41        self.cap.iter()
42    }
43}
44#[doc = "CTRL (rw) register accessor: Control register.\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrl`]
45module"]
46#[doc(alias = "CTRL")]
47pub type Ctrl = crate::Reg<ctrl::CtrlSpec>;
48#[doc = "Control register."]
49pub mod ctrl;
50#[doc = "STAT (rw) register accessor: Status register.\n\nYou can [`read`](crate::Reg::read) this register and get [`stat::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`stat::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@stat`]
51module"]
52#[doc(alias = "STAT")]
53pub type Stat = crate::Reg<stat::StatSpec>;
54#[doc = "Status register."]
55pub mod stat;
56#[doc = "CFG (rw) register accessor: Capture configuration register.\n\nYou can [`read`](crate::Reg::read) this register and get [`cfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfg::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cfg`]
57module"]
58#[doc(alias = "CFG")]
59pub type Cfg = crate::Reg<cfg::CfgSpec>;
60#[doc = "Capture configuration register."]
61pub mod cfg;
62#[doc = "CAPCLR (w) register accessor: Capture clear register.\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`capclr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@capclr`]
63module"]
64#[doc(alias = "CAPCLR")]
65pub type Capclr = crate::Reg<capclr::CapclrSpec>;
66#[doc = "Capture clear register."]
67pub mod capclr;
68#[doc = "CAP (r) register accessor: Capture register .\n\nYou can [`read`](crate::Reg::read) this register and get [`cap::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cap`]
69module"]
70#[doc(alias = "CAP")]
71pub type Cap = crate::Reg<cap::CapSpec>;
72#[doc = "Capture register ."]
73pub mod cap;