1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 voltage_select: VOLTAGE_SELECT,
5 gpio: [GPIO; 30],
6 swclk: SWCLK,
7 swd: SWD,
8}
9impl RegisterBlock {
10#[doc = "0x00 - Voltage select. Per bank control"]
11 #[inline(always)]
12pub const fn voltage_select(&self) -> &VOLTAGE_SELECT {
13&self.voltage_select
14 }
15#[doc = "0x04..0x7c - Pad control register"]
16 #[inline(always)]
17pub const fn gpio(&self, n: usize) -> &GPIO {
18&self.gpio[n]
19 }
20#[doc = "Iterator for array of:"]
21 #[doc = "0x04..0x7c - Pad control register"]
22 #[inline(always)]
23pub fn gpio_iter(&self) -> impl Iterator<Item = &GPIO> {
24self.gpio.iter()
25 }
26#[doc = "0x7c - Pad control register"]
27 #[inline(always)]
28pub const fn swclk(&self) -> &SWCLK {
29&self.swclk
30 }
31#[doc = "0x80 - Pad control register"]
32 #[inline(always)]
33pub const fn swd(&self) -> &SWD {
34&self.swd
35 }
36}
37#[doc = "VOLTAGE_SELECT (rw) register accessor: Voltage select. Per bank control
3839You can [`read`](crate::generic::Reg::read) this register and get [`voltage_select::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 [`voltage_select::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
4041For information about available fields see [`mod@voltage_select`]
42module"]
43pub type VOLTAGE_SELECT = crate::Reg<voltage_select::VOLTAGE_SELECT_SPEC>;
44#[doc = "Voltage select. Per bank control"]
45pub mod voltage_select;
46#[doc = "GPIO (rw) register accessor: Pad control register
4748You can [`read`](crate::generic::Reg::read) this register and get [`gpio::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 [`gpio::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
4950For information about available fields see [`mod@gpio`]
51module"]
52pub type GPIO = crate::Reg<gpio::GPIO_SPEC>;
53#[doc = "Pad control register"]
54pub mod gpio;
55#[doc = "SWCLK (rw) register accessor: Pad control register
5657You can [`read`](crate::generic::Reg::read) this register and get [`swclk::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 [`swclk::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
5859For information about available fields see [`mod@swclk`]
60module"]
61pub type SWCLK = crate::Reg<swclk::SWCLK_SPEC>;
62#[doc = "Pad control register"]
63pub mod swclk;
64#[doc = "SWD (rw) register accessor: Pad control register
6566You can [`read`](crate::generic::Reg::read) this register and get [`swd::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 [`swd::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
6768For information about available fields see [`mod@swd`]
69module"]
70pub type SWD = crate::Reg<swd::SWD_SPEC>;
71#[doc = "Pad control register"]
72pub mod swd;