rp2040_pac/
resets.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    reset: RESET,
5    wdsel: WDSEL,
6    reset_done: RESET_DONE,
7}
8impl RegisterBlock {
9    #[doc = "0x00 - Reset control. If a bit is set it means the peripheral is in reset. 0 means the peripheral's reset is deasserted."]
10    #[inline(always)]
11    pub const fn reset(&self) -> &RESET {
12        &self.reset
13    }
14    #[doc = "0x04 - Watchdog select. If a bit is set then the watchdog will reset this peripheral when the watchdog fires."]
15    #[inline(always)]
16    pub const fn wdsel(&self) -> &WDSEL {
17        &self.wdsel
18    }
19    #[doc = "0x08 - Reset done. If a bit is set then a reset done signal has been returned by the peripheral. This indicates that the peripheral's registers are ready to be accessed."]
20    #[inline(always)]
21    pub const fn reset_done(&self) -> &RESET_DONE {
22        &self.reset_done
23    }
24}
25#[doc = "RESET (rw) register accessor: Reset control. If a bit is set it means the peripheral is in reset. 0 means the peripheral's reset is deasserted.  
26
27You can [`read`](crate::generic::Reg::read) this register and get [`reset::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 [`reset::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  
28
29For information about available fields see [`mod@reset`]
30module"]
31pub type RESET = crate::Reg<reset::RESET_SPEC>;
32#[doc = "Reset control. If a bit is set it means the peripheral is in reset. 0 means the peripheral's reset is deasserted."]
33pub mod reset;
34#[doc = "WDSEL (rw) register accessor: Watchdog select. If a bit is set then the watchdog will reset this peripheral when the watchdog fires.  
35
36You can [`read`](crate::generic::Reg::read) this register and get [`wdsel::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 [`wdsel::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  
37
38For information about available fields see [`mod@wdsel`]
39module"]
40pub type WDSEL = crate::Reg<wdsel::WDSEL_SPEC>;
41#[doc = "Watchdog select. If a bit is set then the watchdog will reset this peripheral when the watchdog fires."]
42pub mod wdsel;
43#[doc = "RESET_DONE (r) register accessor: Reset done. If a bit is set then a reset done signal has been returned by the peripheral. This indicates that the peripheral's registers are ready to be accessed.  
44
45You can [`read`](crate::generic::Reg::read) this register and get [`reset_done::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  
46
47For information about available fields see [`mod@reset_done`]
48module"]
49pub type RESET_DONE = crate::Reg<reset_done::RESET_DONE_SPEC>;
50#[doc = "Reset done. If a bit is set then a reset done signal has been returned by the peripheral. This indicates that the peripheral's registers are ready to be accessed."]
51pub mod reset_done;