esp32c3/
timg0.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    t: [T; 1],
6    _reserved1: [u8; 0x24],
7    wdtconfig0: WDTCONFIG0,
8    wdtconfig1: WDTCONFIG1,
9    wdtconfig2: WDTCONFIG2,
10    wdtconfig3: WDTCONFIG3,
11    wdtconfig4: WDTCONFIG4,
12    wdtconfig5: WDTCONFIG5,
13    wdtfeed: WDTFEED,
14    wdtwprotect: WDTWPROTECT,
15    rtccalicfg: RTCCALICFG,
16    rtccalicfg1: RTCCALICFG1,
17    int_ena: INT_ENA,
18    int_raw: INT_RAW,
19    int_st: INT_ST,
20    int_clr: INT_CLR,
21    rtccalicfg2: RTCCALICFG2,
22    _reserved16: [u8; 0x74],
23    ntimg_date: NTIMG_DATE,
24    regclk: REGCLK,
25}
26impl RegisterBlock {
27    #[doc = "0x00..0x24 - Cluster T%s, containing T?CONFIG, T?LO, T?HI, T?UPDATE, T?ALARMLO, T?ALARMHI, T?LOADLO, T?LOADHI, T?LOAD"]
28    #[inline(always)]
29    pub const fn t(&self, n: usize) -> &T {
30        &self.t[n]
31    }
32    #[doc = "Iterator for array of:"]
33    #[doc = "0x00..0x24 - Cluster T%s, containing T?CONFIG, T?LO, T?HI, T?UPDATE, T?ALARMLO, T?ALARMHI, T?LOADLO, T?LOADHI, T?LOAD"]
34    #[inline(always)]
35    pub fn t_iter(&self) -> impl Iterator<Item = &T> {
36        self.t.iter()
37    }
38    #[doc = "0x48 - TIMG_WDTCONFIG0_REG."]
39    #[inline(always)]
40    pub const fn wdtconfig0(&self) -> &WDTCONFIG0 {
41        &self.wdtconfig0
42    }
43    #[doc = "0x4c - TIMG_WDTCONFIG1_REG."]
44    #[inline(always)]
45    pub const fn wdtconfig1(&self) -> &WDTCONFIG1 {
46        &self.wdtconfig1
47    }
48    #[doc = "0x50 - TIMG_WDTCONFIG2_REG."]
49    #[inline(always)]
50    pub const fn wdtconfig2(&self) -> &WDTCONFIG2 {
51        &self.wdtconfig2
52    }
53    #[doc = "0x54 - TIMG_WDTCONFIG3_REG."]
54    #[inline(always)]
55    pub const fn wdtconfig3(&self) -> &WDTCONFIG3 {
56        &self.wdtconfig3
57    }
58    #[doc = "0x58 - TIMG_WDTCONFIG4_REG."]
59    #[inline(always)]
60    pub const fn wdtconfig4(&self) -> &WDTCONFIG4 {
61        &self.wdtconfig4
62    }
63    #[doc = "0x5c - TIMG_WDTCONFIG5_REG."]
64    #[inline(always)]
65    pub const fn wdtconfig5(&self) -> &WDTCONFIG5 {
66        &self.wdtconfig5
67    }
68    #[doc = "0x60 - TIMG_WDTFEED_REG."]
69    #[inline(always)]
70    pub const fn wdtfeed(&self) -> &WDTFEED {
71        &self.wdtfeed
72    }
73    #[doc = "0x64 - TIMG_WDTWPROTECT_REG."]
74    #[inline(always)]
75    pub const fn wdtwprotect(&self) -> &WDTWPROTECT {
76        &self.wdtwprotect
77    }
78    #[doc = "0x68 - TIMG_RTCCALICFG_REG."]
79    #[inline(always)]
80    pub const fn rtccalicfg(&self) -> &RTCCALICFG {
81        &self.rtccalicfg
82    }
83    #[doc = "0x6c - TIMG_RTCCALICFG1_REG."]
84    #[inline(always)]
85    pub const fn rtccalicfg1(&self) -> &RTCCALICFG1 {
86        &self.rtccalicfg1
87    }
88    #[doc = "0x70 - INT_ENA_TIMG_REG"]
89    #[inline(always)]
90    pub const fn int_ena(&self) -> &INT_ENA {
91        &self.int_ena
92    }
93    #[doc = "0x74 - INT_RAW_TIMG_REG"]
94    #[inline(always)]
95    pub const fn int_raw(&self) -> &INT_RAW {
96        &self.int_raw
97    }
98    #[doc = "0x78 - INT_ST_TIMG_REG"]
99    #[inline(always)]
100    pub const fn int_st(&self) -> &INT_ST {
101        &self.int_st
102    }
103    #[doc = "0x7c - INT_CLR_TIMG_REG"]
104    #[inline(always)]
105    pub const fn int_clr(&self) -> &INT_CLR {
106        &self.int_clr
107    }
108    #[doc = "0x80 - TIMG_RTCCALICFG2_REG."]
109    #[inline(always)]
110    pub const fn rtccalicfg2(&self) -> &RTCCALICFG2 {
111        &self.rtccalicfg2
112    }
113    #[doc = "0xf8 - TIMG_NTIMG_DATE_REG."]
114    #[inline(always)]
115    pub const fn ntimg_date(&self) -> &NTIMG_DATE {
116        &self.ntimg_date
117    }
118    #[doc = "0xfc - TIMG_REGCLK_REG."]
119    #[inline(always)]
120    pub const fn regclk(&self) -> &REGCLK {
121        &self.regclk
122    }
123}
124#[doc = "Cluster T%s, containing T?CONFIG, T?LO, T?HI, T?UPDATE, T?ALARMLO, T?ALARMHI, T?LOADLO, T?LOADHI, T?LOAD"]
125pub use self::t::T;
126#[doc = r"Cluster"]
127#[doc = "Cluster T%s, containing T?CONFIG, T?LO, T?HI, T?UPDATE, T?ALARMLO, T?ALARMHI, T?LOADLO, T?LOADHI, T?LOAD"]
128pub mod t;
129#[doc = "WDTCONFIG0 (rw) register accessor: TIMG_WDTCONFIG0_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig0::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@wdtconfig0`] module"]
130pub type WDTCONFIG0 = crate::Reg<wdtconfig0::WDTCONFIG0_SPEC>;
131#[doc = "TIMG_WDTCONFIG0_REG."]
132pub mod wdtconfig0;
133#[doc = "WDTCONFIG1 (rw) register accessor: TIMG_WDTCONFIG1_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig1::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@wdtconfig1`] module"]
134pub type WDTCONFIG1 = crate::Reg<wdtconfig1::WDTCONFIG1_SPEC>;
135#[doc = "TIMG_WDTCONFIG1_REG."]
136pub mod wdtconfig1;
137#[doc = "WDTCONFIG2 (rw) register accessor: TIMG_WDTCONFIG2_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig2::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@wdtconfig2`] module"]
138pub type WDTCONFIG2 = crate::Reg<wdtconfig2::WDTCONFIG2_SPEC>;
139#[doc = "TIMG_WDTCONFIG2_REG."]
140pub mod wdtconfig2;
141#[doc = "WDTCONFIG3 (rw) register accessor: TIMG_WDTCONFIG3_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig3::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@wdtconfig3`] module"]
142pub type WDTCONFIG3 = crate::Reg<wdtconfig3::WDTCONFIG3_SPEC>;
143#[doc = "TIMG_WDTCONFIG3_REG."]
144pub mod wdtconfig3;
145#[doc = "WDTCONFIG4 (rw) register accessor: TIMG_WDTCONFIG4_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig4::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@wdtconfig4`] module"]
146pub type WDTCONFIG4 = crate::Reg<wdtconfig4::WDTCONFIG4_SPEC>;
147#[doc = "TIMG_WDTCONFIG4_REG."]
148pub mod wdtconfig4;
149#[doc = "WDTCONFIG5 (rw) register accessor: TIMG_WDTCONFIG5_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`wdtconfig5::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtconfig5::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@wdtconfig5`] module"]
150pub type WDTCONFIG5 = crate::Reg<wdtconfig5::WDTCONFIG5_SPEC>;
151#[doc = "TIMG_WDTCONFIG5_REG."]
152pub mod wdtconfig5;
153#[doc = "WDTFEED (w) register accessor: TIMG_WDTFEED_REG.\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtfeed::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@wdtfeed`] module"]
154pub type WDTFEED = crate::Reg<wdtfeed::WDTFEED_SPEC>;
155#[doc = "TIMG_WDTFEED_REG."]
156pub mod wdtfeed;
157#[doc = "WDTWPROTECT (rw) register accessor: TIMG_WDTWPROTECT_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`wdtwprotect::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wdtwprotect::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@wdtwprotect`] module"]
158pub type WDTWPROTECT = crate::Reg<wdtwprotect::WDTWPROTECT_SPEC>;
159#[doc = "TIMG_WDTWPROTECT_REG."]
160pub mod wdtwprotect;
161#[doc = "RTCCALICFG (rw) register accessor: TIMG_RTCCALICFG_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`rtccalicfg::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtccalicfg::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@rtccalicfg`] module"]
162pub type RTCCALICFG = crate::Reg<rtccalicfg::RTCCALICFG_SPEC>;
163#[doc = "TIMG_RTCCALICFG_REG."]
164pub mod rtccalicfg;
165#[doc = "RTCCALICFG1 (r) register accessor: TIMG_RTCCALICFG1_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`rtccalicfg1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@rtccalicfg1`] module"]
166pub type RTCCALICFG1 = crate::Reg<rtccalicfg1::RTCCALICFG1_SPEC>;
167#[doc = "TIMG_RTCCALICFG1_REG."]
168pub mod rtccalicfg1;
169#[doc = "INT_ENA (rw) register accessor: INT_ENA_TIMG_REG\n\nYou can [`read`](crate::Reg::read) this register and get [`int_ena::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_ena::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@int_ena`] module"]
170pub type INT_ENA = crate::Reg<int_ena::INT_ENA_SPEC>;
171#[doc = "INT_ENA_TIMG_REG"]
172pub mod int_ena;
173#[doc = "INT_RAW (r) register accessor: INT_RAW_TIMG_REG\n\nYou can [`read`](crate::Reg::read) this register and get [`int_raw::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_raw`] module"]
174pub type INT_RAW = crate::Reg<int_raw::INT_RAW_SPEC>;
175#[doc = "INT_RAW_TIMG_REG"]
176pub mod int_raw;
177#[doc = "INT_ST (r) register accessor: INT_ST_TIMG_REG\n\nYou can [`read`](crate::Reg::read) this register and get [`int_st::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_st`] module"]
178pub type INT_ST = crate::Reg<int_st::INT_ST_SPEC>;
179#[doc = "INT_ST_TIMG_REG"]
180pub mod int_st;
181#[doc = "INT_CLR (w) register accessor: INT_CLR_TIMG_REG\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_clr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@int_clr`] module"]
182pub type INT_CLR = crate::Reg<int_clr::INT_CLR_SPEC>;
183#[doc = "INT_CLR_TIMG_REG"]
184pub mod int_clr;
185#[doc = "RTCCALICFG2 (rw) register accessor: TIMG_RTCCALICFG2_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`rtccalicfg2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rtccalicfg2::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@rtccalicfg2`] module"]
186pub type RTCCALICFG2 = crate::Reg<rtccalicfg2::RTCCALICFG2_SPEC>;
187#[doc = "TIMG_RTCCALICFG2_REG."]
188pub mod rtccalicfg2;
189#[doc = "NTIMG_DATE (rw) register accessor: TIMG_NTIMG_DATE_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`ntimg_date::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ntimg_date::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@ntimg_date`] module"]
190pub type NTIMG_DATE = crate::Reg<ntimg_date::NTIMG_DATE_SPEC>;
191#[doc = "TIMG_NTIMG_DATE_REG."]
192pub mod ntimg_date;
193#[doc = "REGCLK (rw) register accessor: TIMG_REGCLK_REG.\n\nYou can [`read`](crate::Reg::read) this register and get [`regclk::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`regclk::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@regclk`] module"]
194pub type REGCLK = crate::Reg<regclk::REGCLK_SPEC>;
195#[doc = "TIMG_REGCLK_REG."]
196pub mod regclk;