rp2040_pac/
pads_qspi.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    voltage_select: VOLTAGE_SELECT,
5    gpio_qspi_sclk: GPIO_QSPI_SCLK,
6    gpio_qspi_sd0: GPIO_QSPI_SD0,
7    gpio_qspi_sd1: GPIO_QSPI_SD1,
8    gpio_qspi_sd2: GPIO_QSPI_SD2,
9    gpio_qspi_sd3: GPIO_QSPI_SD3,
10    gpio_qspi_ss: GPIO_QSPI_SS,
11}
12impl RegisterBlock {
13    #[doc = "0x00 - Voltage select. Per bank control"]
14    #[inline(always)]
15    pub const fn voltage_select(&self) -> &VOLTAGE_SELECT {
16        &self.voltage_select
17    }
18    #[doc = "0x04 - Pad control register"]
19    #[inline(always)]
20    pub const fn gpio_qspi_sclk(&self) -> &GPIO_QSPI_SCLK {
21        &self.gpio_qspi_sclk
22    }
23    #[doc = "0x08 - Pad control register"]
24    #[inline(always)]
25    pub const fn gpio_qspi_sd0(&self) -> &GPIO_QSPI_SD0 {
26        &self.gpio_qspi_sd0
27    }
28    #[doc = "0x0c - Pad control register"]
29    #[inline(always)]
30    pub const fn gpio_qspi_sd1(&self) -> &GPIO_QSPI_SD1 {
31        &self.gpio_qspi_sd1
32    }
33    #[doc = "0x10 - Pad control register"]
34    #[inline(always)]
35    pub const fn gpio_qspi_sd2(&self) -> &GPIO_QSPI_SD2 {
36        &self.gpio_qspi_sd2
37    }
38    #[doc = "0x14 - Pad control register"]
39    #[inline(always)]
40    pub const fn gpio_qspi_sd3(&self) -> &GPIO_QSPI_SD3 {
41        &self.gpio_qspi_sd3
42    }
43    #[doc = "0x18 - Pad control register"]
44    #[inline(always)]
45    pub const fn gpio_qspi_ss(&self) -> &GPIO_QSPI_SS {
46        &self.gpio_qspi_ss
47    }
48}
49#[doc = "VOLTAGE_SELECT (rw) register accessor: Voltage select. Per bank control  
50
51You 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).  
52
53For information about available fields see [`mod@voltage_select`]
54module"]
55pub type VOLTAGE_SELECT = crate::Reg<voltage_select::VOLTAGE_SELECT_SPEC>;
56#[doc = "Voltage select. Per bank control"]
57pub mod voltage_select;
58#[doc = "GPIO_QSPI_SCLK (rw) register accessor: Pad control register  
59
60You can [`read`](crate::generic::Reg::read) this register and get [`gpio_qspi_sclk::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_qspi_sclk::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  
61
62For information about available fields see [`mod@gpio_qspi_sclk`]
63module"]
64pub type GPIO_QSPI_SCLK = crate::Reg<gpio_qspi_sclk::GPIO_QSPI_SCLK_SPEC>;
65#[doc = "Pad control register"]
66pub mod gpio_qspi_sclk;
67#[doc = "GPIO_QSPI_SD0 (rw) register accessor: Pad control register  
68
69You can [`read`](crate::generic::Reg::read) this register and get [`gpio_qspi_sd0::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_qspi_sd0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  
70
71For information about available fields see [`mod@gpio_qspi_sd0`]
72module"]
73pub type GPIO_QSPI_SD0 = crate::Reg<gpio_qspi_sd0::GPIO_QSPI_SD0_SPEC>;
74#[doc = "Pad control register"]
75pub mod gpio_qspi_sd0;
76#[doc = "GPIO_QSPI_SD1 (rw) register accessor: Pad control register  
77
78You can [`read`](crate::generic::Reg::read) this register and get [`gpio_qspi_sd1::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_qspi_sd1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  
79
80For information about available fields see [`mod@gpio_qspi_sd1`]
81module"]
82pub type GPIO_QSPI_SD1 = crate::Reg<gpio_qspi_sd1::GPIO_QSPI_SD1_SPEC>;
83#[doc = "Pad control register"]
84pub mod gpio_qspi_sd1;
85#[doc = "GPIO_QSPI_SD2 (rw) register accessor: Pad control register  
86
87You can [`read`](crate::generic::Reg::read) this register and get [`gpio_qspi_sd2::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_qspi_sd2::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  
88
89For information about available fields see [`mod@gpio_qspi_sd2`]
90module"]
91pub type GPIO_QSPI_SD2 = crate::Reg<gpio_qspi_sd2::GPIO_QSPI_SD2_SPEC>;
92#[doc = "Pad control register"]
93pub mod gpio_qspi_sd2;
94#[doc = "GPIO_QSPI_SD3 (rw) register accessor: Pad control register  
95
96You can [`read`](crate::generic::Reg::read) this register and get [`gpio_qspi_sd3::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_qspi_sd3::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  
97
98For information about available fields see [`mod@gpio_qspi_sd3`]
99module"]
100pub type GPIO_QSPI_SD3 = crate::Reg<gpio_qspi_sd3::GPIO_QSPI_SD3_SPEC>;
101#[doc = "Pad control register"]
102pub mod gpio_qspi_sd3;
103#[doc = "GPIO_QSPI_SS (rw) register accessor: Pad control register  
104
105You can [`read`](crate::generic::Reg::read) this register and get [`gpio_qspi_ss::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_qspi_ss::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  
106
107For information about available fields see [`mod@gpio_qspi_ss`]
108module"]
109pub type GPIO_QSPI_SS = crate::Reg<gpio_qspi_ss::GPIO_QSPI_SS_SPEC>;
110#[doc = "Pad control register"]
111pub mod gpio_qspi_ss;