esp32/
gpio_sd.rs

1#[repr(C)]
2#[cfg_attr(feature = "impl-register-debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    sigmadelta: [SIGMADELTA; 8],
6    clock_gate: CLOCK_GATE,
7    sigmadelta_misc: SIGMADELTA_MISC,
8    version: VERSION,
9}
10impl RegisterBlock {
11    #[doc = "0x00..0x20 - "]
12    #[inline(always)]
13    pub const fn sigmadelta(&self, n: usize) -> &SIGMADELTA {
14        &self.sigmadelta[n]
15    }
16    #[doc = "Iterator for array of:"]
17    #[doc = "0x00..0x20 - "]
18    #[inline(always)]
19    pub fn sigmadelta_iter(&self) -> impl Iterator<Item = &SIGMADELTA> {
20        self.sigmadelta.iter()
21    }
22    #[doc = "0x20 - "]
23    #[inline(always)]
24    pub const fn clock_gate(&self) -> &CLOCK_GATE {
25        &self.clock_gate
26    }
27    #[doc = "0x24 - "]
28    #[inline(always)]
29    pub const fn sigmadelta_misc(&self) -> &SIGMADELTA_MISC {
30        &self.sigmadelta_misc
31    }
32    #[doc = "0x28 - "]
33    #[inline(always)]
34    pub const fn version(&self) -> &VERSION {
35        &self.version
36    }
37}
38#[doc = "SIGMADELTA (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`sigmadelta::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sigmadelta::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@sigmadelta`] module"]
39pub type SIGMADELTA = crate::Reg<sigmadelta::SIGMADELTA_SPEC>;
40#[doc = ""]
41pub mod sigmadelta;
42#[doc = "CLOCK_GATE (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`clock_gate::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`clock_gate::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@clock_gate`] module"]
43pub type CLOCK_GATE = crate::Reg<clock_gate::CLOCK_GATE_SPEC>;
44#[doc = ""]
45pub mod clock_gate;
46#[doc = "SIGMADELTA_MISC (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`sigmadelta_misc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sigmadelta_misc::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@sigmadelta_misc`] module"]
47pub type SIGMADELTA_MISC = crate::Reg<sigmadelta_misc::SIGMADELTA_MISC_SPEC>;
48#[doc = ""]
49pub mod sigmadelta_misc;
50#[doc = "VERSION (rw) register accessor: \n\nYou can [`read`](crate::Reg::read) this register and get [`version::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`version::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@version`] module"]
51pub type VERSION = crate::Reg<version::VERSION_SPEC>;
52#[doc = ""]
53pub mod version;