esp32c3/
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; 4],
6    _reserved1: [u8; 0x10],
7    clock_gate: CLOCK_GATE,
8    sigmadelta_misc: SIGMADELTA_MISC,
9    version: VERSION,
10}
11impl RegisterBlock {
12    #[doc = "0x00..0x10 - Duty Cycle Configure Register of SDM%s"]
13    #[inline(always)]
14    pub const fn sigmadelta(&self, n: usize) -> &SIGMADELTA {
15        &self.sigmadelta[n]
16    }
17    #[doc = "Iterator for array of:"]
18    #[doc = "0x00..0x10 - Duty Cycle Configure Register of SDM%s"]
19    #[inline(always)]
20    pub fn sigmadelta_iter(&self) -> impl Iterator<Item = &SIGMADELTA> {
21        self.sigmadelta.iter()
22    }
23    #[doc = "0x20 - Clock Gating Configure Register"]
24    #[inline(always)]
25    pub const fn clock_gate(&self) -> &CLOCK_GATE {
26        &self.clock_gate
27    }
28    #[doc = "0x24 - MISC Register"]
29    #[inline(always)]
30    pub const fn sigmadelta_misc(&self) -> &SIGMADELTA_MISC {
31        &self.sigmadelta_misc
32    }
33    #[doc = "0x28 - Version Control Register"]
34    #[inline(always)]
35    pub const fn version(&self) -> &VERSION {
36        &self.version
37    }
38}
39#[doc = "SIGMADELTA (rw) register accessor: Duty Cycle Configure Register of SDM%s\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"]
40pub type SIGMADELTA = crate::Reg<sigmadelta::SIGMADELTA_SPEC>;
41#[doc = "Duty Cycle Configure Register of SDM%s"]
42pub mod sigmadelta;
43#[doc = "CLOCK_GATE (rw) register accessor: Clock Gating Configure Register\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"]
44pub type CLOCK_GATE = crate::Reg<clock_gate::CLOCK_GATE_SPEC>;
45#[doc = "Clock Gating Configure Register"]
46pub mod clock_gate;
47#[doc = "SIGMADELTA_MISC (rw) register accessor: MISC Register\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"]
48pub type SIGMADELTA_MISC = crate::Reg<sigmadelta_misc::SIGMADELTA_MISC_SPEC>;
49#[doc = "MISC Register"]
50pub mod sigmadelta_misc;
51#[doc = "VERSION (rw) register accessor: Version Control Register\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"]
52pub type VERSION = crate::Reg<version::VERSION_SPEC>;
53#[doc = "Version Control Register"]
54pub mod version;