esp32c6_lp/
lp_timer.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    tar0_low: TAR0_LOW,
6    tar0_high: TAR0_HIGH,
7    tar1_low: TAR1_LOW,
8    tar1_high: TAR1_HIGH,
9    update: UPDATE,
10    main_buf0_low: MAIN_BUF0_LOW,
11    main_buf0_high: MAIN_BUF0_HIGH,
12    main_buf1_low: MAIN_BUF1_LOW,
13    main_buf1_high: MAIN_BUF1_HIGH,
14    main_overflow: MAIN_OVERFLOW,
15    int_raw: INT_RAW,
16    int_st: INT_ST,
17    int_ena: INT_ENA,
18    int_clr: INT_CLR,
19    lp_int_raw: LP_INT_RAW,
20    lp_int_st: LP_INT_ST,
21    lp_int_ena: LP_INT_ENA,
22    lp_int_clr: LP_INT_CLR,
23    _reserved18: [u8; 0x03b4],
24    date: DATE,
25}
26impl RegisterBlock {
27    #[doc = "0x00 - need_des"]
28    #[inline(always)]
29    pub const fn tar0_low(&self) -> &TAR0_LOW {
30        &self.tar0_low
31    }
32    #[doc = "0x04 - need_des"]
33    #[inline(always)]
34    pub const fn tar0_high(&self) -> &TAR0_HIGH {
35        &self.tar0_high
36    }
37    #[doc = "0x08 - need_des"]
38    #[inline(always)]
39    pub const fn tar1_low(&self) -> &TAR1_LOW {
40        &self.tar1_low
41    }
42    #[doc = "0x0c - need_des"]
43    #[inline(always)]
44    pub const fn tar1_high(&self) -> &TAR1_HIGH {
45        &self.tar1_high
46    }
47    #[doc = "0x10 - need_des"]
48    #[inline(always)]
49    pub const fn update(&self) -> &UPDATE {
50        &self.update
51    }
52    #[doc = "0x14 - need_des"]
53    #[inline(always)]
54    pub const fn main_buf0_low(&self) -> &MAIN_BUF0_LOW {
55        &self.main_buf0_low
56    }
57    #[doc = "0x18 - need_des"]
58    #[inline(always)]
59    pub const fn main_buf0_high(&self) -> &MAIN_BUF0_HIGH {
60        &self.main_buf0_high
61    }
62    #[doc = "0x1c - need_des"]
63    #[inline(always)]
64    pub const fn main_buf1_low(&self) -> &MAIN_BUF1_LOW {
65        &self.main_buf1_low
66    }
67    #[doc = "0x20 - need_des"]
68    #[inline(always)]
69    pub const fn main_buf1_high(&self) -> &MAIN_BUF1_HIGH {
70        &self.main_buf1_high
71    }
72    #[doc = "0x24 - need_des"]
73    #[inline(always)]
74    pub const fn main_overflow(&self) -> &MAIN_OVERFLOW {
75        &self.main_overflow
76    }
77    #[doc = "0x28 - need_des"]
78    #[inline(always)]
79    pub const fn int_raw(&self) -> &INT_RAW {
80        &self.int_raw
81    }
82    #[doc = "0x2c - need_des"]
83    #[inline(always)]
84    pub const fn int_st(&self) -> &INT_ST {
85        &self.int_st
86    }
87    #[doc = "0x30 - need_des"]
88    #[inline(always)]
89    pub const fn int_ena(&self) -> &INT_ENA {
90        &self.int_ena
91    }
92    #[doc = "0x34 - need_des"]
93    #[inline(always)]
94    pub const fn int_clr(&self) -> &INT_CLR {
95        &self.int_clr
96    }
97    #[doc = "0x38 - need_des"]
98    #[inline(always)]
99    pub const fn lp_int_raw(&self) -> &LP_INT_RAW {
100        &self.lp_int_raw
101    }
102    #[doc = "0x3c - need_des"]
103    #[inline(always)]
104    pub const fn lp_int_st(&self) -> &LP_INT_ST {
105        &self.lp_int_st
106    }
107    #[doc = "0x40 - need_des"]
108    #[inline(always)]
109    pub const fn lp_int_ena(&self) -> &LP_INT_ENA {
110        &self.lp_int_ena
111    }
112    #[doc = "0x44 - need_des"]
113    #[inline(always)]
114    pub const fn lp_int_clr(&self) -> &LP_INT_CLR {
115        &self.lp_int_clr
116    }
117    #[doc = "0x3fc - need_des"]
118    #[inline(always)]
119    pub const fn date(&self) -> &DATE {
120        &self.date
121    }
122}
123#[doc = "TAR0_LOW (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`tar0_low::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tar0_low::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@tar0_low`] module"]
124pub type TAR0_LOW = crate::Reg<tar0_low::TAR0_LOW_SPEC>;
125#[doc = "need_des"]
126pub mod tar0_low;
127#[doc = "TAR0_HIGH (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`tar0_high::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tar0_high::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@tar0_high`] module"]
128pub type TAR0_HIGH = crate::Reg<tar0_high::TAR0_HIGH_SPEC>;
129#[doc = "need_des"]
130pub mod tar0_high;
131#[doc = "TAR1_LOW (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`tar1_low::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tar1_low::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@tar1_low`] module"]
132pub type TAR1_LOW = crate::Reg<tar1_low::TAR1_LOW_SPEC>;
133#[doc = "need_des"]
134pub mod tar1_low;
135#[doc = "TAR1_HIGH (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`tar1_high::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tar1_high::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@tar1_high`] module"]
136pub type TAR1_HIGH = crate::Reg<tar1_high::TAR1_HIGH_SPEC>;
137#[doc = "need_des"]
138pub mod tar1_high;
139#[doc = "UPDATE (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`update::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`update::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@update`] module"]
140pub type UPDATE = crate::Reg<update::UPDATE_SPEC>;
141#[doc = "need_des"]
142pub mod update;
143#[doc = "MAIN_BUF0_LOW (r) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`main_buf0_low::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@main_buf0_low`] module"]
144pub type MAIN_BUF0_LOW = crate::Reg<main_buf0_low::MAIN_BUF0_LOW_SPEC>;
145#[doc = "need_des"]
146pub mod main_buf0_low;
147#[doc = "MAIN_BUF0_HIGH (r) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`main_buf0_high::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@main_buf0_high`] module"]
148pub type MAIN_BUF0_HIGH = crate::Reg<main_buf0_high::MAIN_BUF0_HIGH_SPEC>;
149#[doc = "need_des"]
150pub mod main_buf0_high;
151#[doc = "MAIN_BUF1_LOW (r) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`main_buf1_low::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@main_buf1_low`] module"]
152pub type MAIN_BUF1_LOW = crate::Reg<main_buf1_low::MAIN_BUF1_LOW_SPEC>;
153#[doc = "need_des"]
154pub mod main_buf1_low;
155#[doc = "MAIN_BUF1_HIGH (r) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`main_buf1_high::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@main_buf1_high`] module"]
156pub type MAIN_BUF1_HIGH = crate::Reg<main_buf1_high::MAIN_BUF1_HIGH_SPEC>;
157#[doc = "need_des"]
158pub mod main_buf1_high;
159#[doc = "MAIN_OVERFLOW (w) register accessor: need_des\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`main_overflow::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@main_overflow`] module"]
160pub type MAIN_OVERFLOW = crate::Reg<main_overflow::MAIN_OVERFLOW_SPEC>;
161#[doc = "need_des"]
162pub mod main_overflow;
163#[doc = "INT_RAW (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`int_raw::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`int_raw::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_raw`] module"]
164pub type INT_RAW = crate::Reg<int_raw::INT_RAW_SPEC>;
165#[doc = "need_des"]
166pub mod int_raw;
167#[doc = "INT_ST (r) register accessor: need_des\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"]
168pub type INT_ST = crate::Reg<int_st::INT_ST_SPEC>;
169#[doc = "need_des"]
170pub mod int_st;
171#[doc = "INT_ENA (rw) register accessor: need_des\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"]
172pub type INT_ENA = crate::Reg<int_ena::INT_ENA_SPEC>;
173#[doc = "need_des"]
174pub mod int_ena;
175#[doc = "INT_CLR (w) register accessor: need_des\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"]
176pub type INT_CLR = crate::Reg<int_clr::INT_CLR_SPEC>;
177#[doc = "need_des"]
178pub mod int_clr;
179#[doc = "LP_INT_RAW (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`lp_int_raw::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lp_int_raw::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@lp_int_raw`] module"]
180pub type LP_INT_RAW = crate::Reg<lp_int_raw::LP_INT_RAW_SPEC>;
181#[doc = "need_des"]
182pub mod lp_int_raw;
183#[doc = "LP_INT_ST (r) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`lp_int_st::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lp_int_st`] module"]
184pub type LP_INT_ST = crate::Reg<lp_int_st::LP_INT_ST_SPEC>;
185#[doc = "need_des"]
186pub mod lp_int_st;
187#[doc = "LP_INT_ENA (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`lp_int_ena::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lp_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@lp_int_ena`] module"]
188pub type LP_INT_ENA = crate::Reg<lp_int_ena::LP_INT_ENA_SPEC>;
189#[doc = "need_des"]
190pub mod lp_int_ena;
191#[doc = "LP_INT_CLR (w) register accessor: need_des\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lp_int_clr::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@lp_int_clr`] module"]
192pub type LP_INT_CLR = crate::Reg<lp_int_clr::LP_INT_CLR_SPEC>;
193#[doc = "need_des"]
194pub mod lp_int_clr;
195#[doc = "DATE (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`date::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`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@date`] module"]
196pub type DATE = crate::Reg<date::DATE_SPEC>;
197#[doc = "need_des"]
198pub mod date;