rp2040_pac/
vreg_and_chip_reset.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    vreg: VREG,
5    bod: BOD,
6    chip_reset: CHIP_RESET,
7}
8impl RegisterBlock {
9    #[doc = "0x00 - Voltage regulator control and status"]
10    #[inline(always)]
11    pub const fn vreg(&self) -> &VREG {
12        &self.vreg
13    }
14    #[doc = "0x04 - brown-out detection control"]
15    #[inline(always)]
16    pub const fn bod(&self) -> &BOD {
17        &self.bod
18    }
19    #[doc = "0x08 - Chip reset control and status"]
20    #[inline(always)]
21    pub const fn chip_reset(&self) -> &CHIP_RESET {
22        &self.chip_reset
23    }
24}
25#[doc = "VREG (rw) register accessor: Voltage regulator control and status  
26
27You can [`read`](crate::generic::Reg::read) this register and get [`vreg::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 [`vreg::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@vreg`]
30module"]
31pub type VREG = crate::Reg<vreg::VREG_SPEC>;
32#[doc = "Voltage regulator control and status"]
33pub mod vreg;
34#[doc = "BOD (rw) register accessor: brown-out detection control  
35
36You can [`read`](crate::generic::Reg::read) this register and get [`bod::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 [`bod::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@bod`]
39module"]
40pub type BOD = crate::Reg<bod::BOD_SPEC>;
41#[doc = "brown-out detection control"]
42pub mod bod;
43#[doc = "CHIP_RESET (rw) register accessor: Chip reset control and status  
44
45You can [`read`](crate::generic::Reg::read) this register and get [`chip_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 [`chip_reset::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  
46
47For information about available fields see [`mod@chip_reset`]
48module"]
49pub type CHIP_RESET = crate::Reg<chip_reset::CHIP_RESET_SPEC>;
50#[doc = "Chip reset control and status"]
51pub mod chip_reset;