esp32p4/
lp_touch.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    int_raw: INT_RAW,
6    int_st: INT_ST,
7    int_ena: INT_ENA,
8    int_clr: INT_CLR,
9    chn_status: CHN_STATUS,
10    status_0: STATUS_0,
11    status_1: STATUS_1,
12    status_2: STATUS_2,
13    status_3: STATUS_3,
14    status_4: STATUS_4,
15    status_5: STATUS_5,
16    status_6: STATUS_6,
17    status_7: STATUS_7,
18    status_8: STATUS_8,
19    status_9: STATUS_9,
20    status_10: STATUS_10,
21    status_11: STATUS_11,
22    status_12: STATUS_12,
23    status_13: STATUS_13,
24    status_14: STATUS_14,
25    status_15: STATUS_15,
26    status_16: STATUS_16,
27    status_17: STATUS_17,
28    chn_tmp_status: CHN_TMP_STATUS,
29    _reserved24: [u8; 0xa0],
30    date: DATE,
31}
32impl RegisterBlock {
33    #[doc = "0x00 - need_des"]
34    #[inline(always)]
35    pub const fn int_raw(&self) -> &INT_RAW {
36        &self.int_raw
37    }
38    #[doc = "0x04 - need_des"]
39    #[inline(always)]
40    pub const fn int_st(&self) -> &INT_ST {
41        &self.int_st
42    }
43    #[doc = "0x08 - need_des"]
44    #[inline(always)]
45    pub const fn int_ena(&self) -> &INT_ENA {
46        &self.int_ena
47    }
48    #[doc = "0x0c - need_des"]
49    #[inline(always)]
50    pub const fn int_clr(&self) -> &INT_CLR {
51        &self.int_clr
52    }
53    #[doc = "0x10 - need_des"]
54    #[inline(always)]
55    pub const fn chn_status(&self) -> &CHN_STATUS {
56        &self.chn_status
57    }
58    #[doc = "0x14 - need_des"]
59    #[inline(always)]
60    pub const fn status_0(&self) -> &STATUS_0 {
61        &self.status_0
62    }
63    #[doc = "0x18 - need_des"]
64    #[inline(always)]
65    pub const fn status_1(&self) -> &STATUS_1 {
66        &self.status_1
67    }
68    #[doc = "0x1c - need_des"]
69    #[inline(always)]
70    pub const fn status_2(&self) -> &STATUS_2 {
71        &self.status_2
72    }
73    #[doc = "0x20 - need_des"]
74    #[inline(always)]
75    pub const fn status_3(&self) -> &STATUS_3 {
76        &self.status_3
77    }
78    #[doc = "0x24 - need_des"]
79    #[inline(always)]
80    pub const fn status_4(&self) -> &STATUS_4 {
81        &self.status_4
82    }
83    #[doc = "0x28 - need_des"]
84    #[inline(always)]
85    pub const fn status_5(&self) -> &STATUS_5 {
86        &self.status_5
87    }
88    #[doc = "0x2c - need_des"]
89    #[inline(always)]
90    pub const fn status_6(&self) -> &STATUS_6 {
91        &self.status_6
92    }
93    #[doc = "0x30 - need_des"]
94    #[inline(always)]
95    pub const fn status_7(&self) -> &STATUS_7 {
96        &self.status_7
97    }
98    #[doc = "0x34 - need_des"]
99    #[inline(always)]
100    pub const fn status_8(&self) -> &STATUS_8 {
101        &self.status_8
102    }
103    #[doc = "0x38 - need_des"]
104    #[inline(always)]
105    pub const fn status_9(&self) -> &STATUS_9 {
106        &self.status_9
107    }
108    #[doc = "0x3c - need_des"]
109    #[inline(always)]
110    pub const fn status_10(&self) -> &STATUS_10 {
111        &self.status_10
112    }
113    #[doc = "0x40 - need_des"]
114    #[inline(always)]
115    pub const fn status_11(&self) -> &STATUS_11 {
116        &self.status_11
117    }
118    #[doc = "0x44 - need_des"]
119    #[inline(always)]
120    pub const fn status_12(&self) -> &STATUS_12 {
121        &self.status_12
122    }
123    #[doc = "0x48 - need_des"]
124    #[inline(always)]
125    pub const fn status_13(&self) -> &STATUS_13 {
126        &self.status_13
127    }
128    #[doc = "0x4c - need_des"]
129    #[inline(always)]
130    pub const fn status_14(&self) -> &STATUS_14 {
131        &self.status_14
132    }
133    #[doc = "0x50 - need_des"]
134    #[inline(always)]
135    pub const fn status_15(&self) -> &STATUS_15 {
136        &self.status_15
137    }
138    #[doc = "0x54 - need_des"]
139    #[inline(always)]
140    pub const fn status_16(&self) -> &STATUS_16 {
141        &self.status_16
142    }
143    #[doc = "0x58 - need_des"]
144    #[inline(always)]
145    pub const fn status_17(&self) -> &STATUS_17 {
146        &self.status_17
147    }
148    #[doc = "0x5c - need_des"]
149    #[inline(always)]
150    pub const fn chn_tmp_status(&self) -> &CHN_TMP_STATUS {
151        &self.chn_tmp_status
152    }
153    #[doc = "0x100 - need_des"]
154    #[inline(always)]
155    pub const fn date(&self) -> &DATE {
156        &self.date
157    }
158}
159#[doc = "INT_RAW (rw) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_raw::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_raw::W`]. You can also [`modify`](crate::generic::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"]
160pub type INT_RAW = crate::Reg<int_raw::INT_RAW_SPEC>;
161#[doc = "need_des"]
162pub mod int_raw;
163#[doc = "INT_ST (r) register accessor: need_des\n\nYou can [`read`](crate::generic::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"]
164pub type INT_ST = crate::Reg<int_st::INT_ST_SPEC>;
165#[doc = "need_des"]
166pub mod int_st;
167#[doc = "INT_ENA (rw) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_ena::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_ena::W`]. You can also [`modify`](crate::generic::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"]
168pub type INT_ENA = crate::Reg<int_ena::INT_ENA_SPEC>;
169#[doc = "need_des"]
170pub mod int_ena;
171#[doc = "INT_CLR (w) register accessor: need_des\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::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"]
172pub type INT_CLR = crate::Reg<int_clr::INT_CLR_SPEC>;
173#[doc = "need_des"]
174pub mod int_clr;
175#[doc = "CHN_STATUS (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`chn_status::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@chn_status`] module"]
176pub type CHN_STATUS = crate::Reg<chn_status::CHN_STATUS_SPEC>;
177#[doc = "need_des"]
178pub mod chn_status;
179#[doc = "STATUS_0 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_0::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_0`] module"]
180pub type STATUS_0 = crate::Reg<status_0::STATUS_0_SPEC>;
181#[doc = "need_des"]
182pub mod status_0;
183#[doc = "STATUS_1 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_1::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_1`] module"]
184pub type STATUS_1 = crate::Reg<status_1::STATUS_1_SPEC>;
185#[doc = "need_des"]
186pub mod status_1;
187#[doc = "STATUS_2 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_2::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_2`] module"]
188pub type STATUS_2 = crate::Reg<status_2::STATUS_2_SPEC>;
189#[doc = "need_des"]
190pub mod status_2;
191#[doc = "STATUS_3 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_3::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_3`] module"]
192pub type STATUS_3 = crate::Reg<status_3::STATUS_3_SPEC>;
193#[doc = "need_des"]
194pub mod status_3;
195#[doc = "STATUS_4 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_4::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_4`] module"]
196pub type STATUS_4 = crate::Reg<status_4::STATUS_4_SPEC>;
197#[doc = "need_des"]
198pub mod status_4;
199#[doc = "STATUS_5 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_5::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_5`] module"]
200pub type STATUS_5 = crate::Reg<status_5::STATUS_5_SPEC>;
201#[doc = "need_des"]
202pub mod status_5;
203#[doc = "STATUS_6 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_6::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_6`] module"]
204pub type STATUS_6 = crate::Reg<status_6::STATUS_6_SPEC>;
205#[doc = "need_des"]
206pub mod status_6;
207#[doc = "STATUS_7 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_7::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_7`] module"]
208pub type STATUS_7 = crate::Reg<status_7::STATUS_7_SPEC>;
209#[doc = "need_des"]
210pub mod status_7;
211#[doc = "STATUS_8 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_8::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_8`] module"]
212pub type STATUS_8 = crate::Reg<status_8::STATUS_8_SPEC>;
213#[doc = "need_des"]
214pub mod status_8;
215#[doc = "STATUS_9 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_9::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_9`] module"]
216pub type STATUS_9 = crate::Reg<status_9::STATUS_9_SPEC>;
217#[doc = "need_des"]
218pub mod status_9;
219#[doc = "STATUS_10 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_10::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_10`] module"]
220pub type STATUS_10 = crate::Reg<status_10::STATUS_10_SPEC>;
221#[doc = "need_des"]
222pub mod status_10;
223#[doc = "STATUS_11 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_11::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_11`] module"]
224pub type STATUS_11 = crate::Reg<status_11::STATUS_11_SPEC>;
225#[doc = "need_des"]
226pub mod status_11;
227#[doc = "STATUS_12 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_12::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_12`] module"]
228pub type STATUS_12 = crate::Reg<status_12::STATUS_12_SPEC>;
229#[doc = "need_des"]
230pub mod status_12;
231#[doc = "STATUS_13 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_13::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_13`] module"]
232pub type STATUS_13 = crate::Reg<status_13::STATUS_13_SPEC>;
233#[doc = "need_des"]
234pub mod status_13;
235#[doc = "STATUS_14 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_14::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_14`] module"]
236pub type STATUS_14 = crate::Reg<status_14::STATUS_14_SPEC>;
237#[doc = "need_des"]
238pub mod status_14;
239#[doc = "STATUS_15 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_15::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_15`] module"]
240pub type STATUS_15 = crate::Reg<status_15::STATUS_15_SPEC>;
241#[doc = "need_des"]
242pub mod status_15;
243#[doc = "STATUS_16 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_16::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_16`] module"]
244pub type STATUS_16 = crate::Reg<status_16::STATUS_16_SPEC>;
245#[doc = "need_des"]
246pub mod status_16;
247#[doc = "STATUS_17 (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`status_17::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status_17`] module"]
248pub type STATUS_17 = crate::Reg<status_17::STATUS_17_SPEC>;
249#[doc = "need_des"]
250pub mod status_17;
251#[doc = "CHN_TMP_STATUS (r) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`chn_tmp_status::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@chn_tmp_status`] module"]
252pub type CHN_TMP_STATUS = crate::Reg<chn_tmp_status::CHN_TMP_STATUS_SPEC>;
253#[doc = "need_des"]
254pub mod chn_tmp_status;
255#[doc = "DATE (rw) register accessor: need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`date::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`date::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@date`] module"]
256pub type DATE = crate::Reg<date::DATE_SPEC>;
257#[doc = "need_des"]
258pub mod date;