mimxrt685s_pac/
cmp.rs

1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    verid: Verid,
6    param: Param,
7    c0: C0,
8    c1: C1,
9    c2: C2,
10    c3: C3,
11    rr_timer_cr: RrTimerCr,
12}
13impl RegisterBlock {
14    #[doc = "0x00 - Version ID Register"]
15    #[inline(always)]
16    pub const fn verid(&self) -> &Verid {
17        &self.verid
18    }
19    #[doc = "0x04 - Parameter Register"]
20    #[inline(always)]
21    pub const fn param(&self) -> &Param {
22        &self.param
23    }
24    #[doc = "0x08 - CMP Control Register 0"]
25    #[inline(always)]
26    pub const fn c0(&self) -> &C0 {
27        &self.c0
28    }
29    #[doc = "0x0c - CMP Control Register 1"]
30    #[inline(always)]
31    pub const fn c1(&self) -> &C1 {
32        &self.c1
33    }
34    #[doc = "0x10 - CMP Control Register 2"]
35    #[inline(always)]
36    pub const fn c2(&self) -> &C2 {
37        &self.c2
38    }
39    #[doc = "0x14 - CMP Control Register 3"]
40    #[inline(always)]
41    pub const fn c3(&self) -> &C3 {
42        &self.c3
43    }
44    #[doc = "0x18 - Round-Robin Timer Control Register"]
45    #[inline(always)]
46    pub const fn rr_timer_cr(&self) -> &RrTimerCr {
47        &self.rr_timer_cr
48    }
49}
50#[doc = "VERID (r) register accessor: Version ID Register\n\nYou can [`read`](crate::Reg::read) this register and get [`verid::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@verid`]
51module"]
52#[doc(alias = "VERID")]
53pub type Verid = crate::Reg<verid::VeridSpec>;
54#[doc = "Version ID Register"]
55pub mod verid;
56#[doc = "PARAM (r) register accessor: Parameter Register\n\nYou can [`read`](crate::Reg::read) this register and get [`param::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@param`]
57module"]
58#[doc(alias = "PARAM")]
59pub type Param = crate::Reg<param::ParamSpec>;
60#[doc = "Parameter Register"]
61pub mod param;
62#[doc = "C0 (rw) register accessor: CMP Control Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`c0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`c0::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@c0`]
63module"]
64pub type C0 = crate::Reg<c0::C0Spec>;
65#[doc = "CMP Control Register 0"]
66pub mod c0;
67#[doc = "C1 (rw) register accessor: CMP Control Register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`c1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`c1::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@c1`]
68module"]
69pub type C1 = crate::Reg<c1::C1Spec>;
70#[doc = "CMP Control Register 1"]
71pub mod c1;
72#[doc = "C2 (rw) register accessor: CMP Control Register 2\n\nYou can [`read`](crate::Reg::read) this register and get [`c2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`c2::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@c2`]
73module"]
74pub type C2 = crate::Reg<c2::C2Spec>;
75#[doc = "CMP Control Register 2"]
76pub mod c2;
77#[doc = "C3 (rw) register accessor: CMP Control Register 3\n\nYou can [`read`](crate::Reg::read) this register and get [`c3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`c3::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@c3`]
78module"]
79pub type C3 = crate::Reg<c3::C3Spec>;
80#[doc = "CMP Control Register 3"]
81pub mod c3;
82#[doc = "RR_TIMER_CR (rw) register accessor: Round-Robin Timer Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`rr_timer_cr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rr_timer_cr::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@rr_timer_cr`]
83module"]
84#[doc(alias = "RR_TIMER_CR")]
85pub type RrTimerCr = crate::Reg<rr_timer_cr::RrTimerCrSpec>;
86#[doc = "Round-Robin Timer Control Register"]
87pub mod rr_timer_cr;