esp32c6_lp/
lp_wdt.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    config0: CONFIG0,
6    config1: CONFIG1,
7    config2: CONFIG2,
8    config3: CONFIG3,
9    config4: CONFIG4,
10    feed: FEED,
11    wprotect: WPROTECT,
12    swd_config: SWD_CONFIG,
13    swd_wprotect: SWD_WPROTECT,
14    int_raw: INT_RAW,
15    int_st: INT_ST,
16    int_ena: INT_ENA,
17    int_clr: INT_CLR,
18    _reserved13: [u8; 0x03c8],
19    date: DATE,
20}
21impl RegisterBlock {
22    #[doc = "0x00 - need_des"]
23    #[inline(always)]
24    pub const fn config0(&self) -> &CONFIG0 {
25        &self.config0
26    }
27    #[doc = "0x04 - need_des"]
28    #[inline(always)]
29    pub const fn config1(&self) -> &CONFIG1 {
30        &self.config1
31    }
32    #[doc = "0x08 - need_des"]
33    #[inline(always)]
34    pub const fn config2(&self) -> &CONFIG2 {
35        &self.config2
36    }
37    #[doc = "0x0c - need_des"]
38    #[inline(always)]
39    pub const fn config3(&self) -> &CONFIG3 {
40        &self.config3
41    }
42    #[doc = "0x10 - need_des"]
43    #[inline(always)]
44    pub const fn config4(&self) -> &CONFIG4 {
45        &self.config4
46    }
47    #[doc = "0x14 - need_des"]
48    #[inline(always)]
49    pub const fn feed(&self) -> &FEED {
50        &self.feed
51    }
52    #[doc = "0x18 - need_des"]
53    #[inline(always)]
54    pub const fn wprotect(&self) -> &WPROTECT {
55        &self.wprotect
56    }
57    #[doc = "0x1c - need_des"]
58    #[inline(always)]
59    pub const fn swd_config(&self) -> &SWD_CONFIG {
60        &self.swd_config
61    }
62    #[doc = "0x20 - need_des"]
63    #[inline(always)]
64    pub const fn swd_wprotect(&self) -> &SWD_WPROTECT {
65        &self.swd_wprotect
66    }
67    #[doc = "0x24 - need_des"]
68    #[inline(always)]
69    pub const fn int_raw(&self) -> &INT_RAW {
70        &self.int_raw
71    }
72    #[doc = "0x28 - need_des"]
73    #[inline(always)]
74    pub const fn int_st(&self) -> &INT_ST {
75        &self.int_st
76    }
77    #[doc = "0x2c - need_des"]
78    #[inline(always)]
79    pub const fn int_ena(&self) -> &INT_ENA {
80        &self.int_ena
81    }
82    #[doc = "0x30 - need_des"]
83    #[inline(always)]
84    pub const fn int_clr(&self) -> &INT_CLR {
85        &self.int_clr
86    }
87    #[doc = "0x3fc - need_des"]
88    #[inline(always)]
89    pub const fn date(&self) -> &DATE {
90        &self.date
91    }
92}
93#[doc = "CONFIG0 (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`config0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`config0::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@config0`] module"]
94pub type CONFIG0 = crate::Reg<config0::CONFIG0_SPEC>;
95#[doc = "need_des"]
96pub mod config0;
97#[doc = "CONFIG1 (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`config1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`config1::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@config1`] module"]
98pub type CONFIG1 = crate::Reg<config1::CONFIG1_SPEC>;
99#[doc = "need_des"]
100pub mod config1;
101#[doc = "CONFIG2 (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`config2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`config2::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@config2`] module"]
102pub type CONFIG2 = crate::Reg<config2::CONFIG2_SPEC>;
103#[doc = "need_des"]
104pub mod config2;
105#[doc = "CONFIG3 (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`config3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`config3::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@config3`] module"]
106pub type CONFIG3 = crate::Reg<config3::CONFIG3_SPEC>;
107#[doc = "need_des"]
108pub mod config3;
109#[doc = "CONFIG4 (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`config4::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`config4::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@config4`] module"]
110pub type CONFIG4 = crate::Reg<config4::CONFIG4_SPEC>;
111#[doc = "need_des"]
112pub mod config4;
113#[doc = "FEED (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 [`feed::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@feed`] module"]
114pub type FEED = crate::Reg<feed::FEED_SPEC>;
115#[doc = "need_des"]
116pub mod feed;
117#[doc = "WPROTECT (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`wprotect::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wprotect::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@wprotect`] module"]
118pub type WPROTECT = crate::Reg<wprotect::WPROTECT_SPEC>;
119#[doc = "need_des"]
120pub mod wprotect;
121#[doc = "SWD_CONFIG (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`swd_config::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`swd_config::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@swd_config`] module"]
122pub type SWD_CONFIG = crate::Reg<swd_config::SWD_CONFIG_SPEC>;
123#[doc = "need_des"]
124pub mod swd_config;
125#[doc = "SWD_WPROTECT (rw) register accessor: need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`swd_wprotect::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`swd_wprotect::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@swd_wprotect`] module"]
126pub type SWD_WPROTECT = crate::Reg<swd_wprotect::SWD_WPROTECT_SPEC>;
127#[doc = "need_des"]
128pub mod swd_wprotect;
129#[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"]
130pub type INT_RAW = crate::Reg<int_raw::INT_RAW_SPEC>;
131#[doc = "need_des"]
132pub mod int_raw;
133#[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"]
134pub type INT_ST = crate::Reg<int_st::INT_ST_SPEC>;
135#[doc = "need_des"]
136pub mod int_st;
137#[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"]
138pub type INT_ENA = crate::Reg<int_ena::INT_ENA_SPEC>;
139#[doc = "need_des"]
140pub mod int_ena;
141#[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"]
142pub type INT_CLR = crate::Reg<int_clr::INT_CLR_SPEC>;
143#[doc = "need_des"]
144pub mod int_clr;
145#[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"]
146pub type DATE = crate::Reg<date::DATE_SPEC>;
147#[doc = "need_des"]
148pub mod date;