1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 gp_sr_con: GP_SR_CON,
5 gp_ctrl: GP_CTRL,
6 gp_cs_en: GP_CS_EN,
7 gp_fifo_intc: GP_FIFO_INTC,
8 gp_fifo_ints: GP_FIFO_INTS,
9 gp_fifo_data: GP_FIFO_DATA,
10 gp_cdata: GP_CDATA,
11 _reserved7: [u8; 0x04],
12 gp_datal_intc: GP_DATAL_INTC,
13 gp_datah_intc: GP_DATAH_INTC,
14 gp_data_intc: GP_DATA_INTC,
15 _reserved10: [u8; 0x04],
16 gp_datal_ints: GP_DATAL_INTS,
17 gp_datah_ints: GP_DATAH_INTS,
18 gp_data_ints: GP_DATA_INTS,
19 _reserved13: [u8; 0x04],
20 gp_ch0_cmp_data: GP_CH0_CMP_DATA,
21 gp_ch1_cmp_data: GP_CH1_CMP_DATA,
22 _reserved15: [u8; 0x38],
23 gp_ch0_data: GP_CH0_DATA,
24 gp_ch1_data: GP_CH1_DATA,
25}
26impl RegisterBlock {
27 #[doc = "0x00 - GPADC Sample Rate Configure Register"]
28 #[inline(always)]
29 pub const fn gp_sr_con(&self) -> &GP_SR_CON {
30 &self.gp_sr_con
31 }
32 #[doc = "0x04 - GPADC Control Register"]
33 #[inline(always)]
34 pub const fn gp_ctrl(&self) -> &GP_CTRL {
35 &self.gp_ctrl
36 }
37 #[doc = "0x08 - GPADC Compare and Select Enable Register"]
38 #[inline(always)]
39 pub const fn gp_cs_en(&self) -> &GP_CS_EN {
40 &self.gp_cs_en
41 }
42 #[doc = "0x0c - GPADC FIFO Interrupt Control Register"]
43 #[inline(always)]
44 pub const fn gp_fifo_intc(&self) -> &GP_FIFO_INTC {
45 &self.gp_fifo_intc
46 }
47 #[doc = "0x10 - GPADC FIFO Interrupt Status Register"]
48 #[inline(always)]
49 pub const fn gp_fifo_ints(&self) -> &GP_FIFO_INTS {
50 &self.gp_fifo_ints
51 }
52 #[doc = "0x14 - GPADC FIFO Data Register"]
53 #[inline(always)]
54 pub const fn gp_fifo_data(&self) -> &GP_FIFO_DATA {
55 &self.gp_fifo_data
56 }
57 #[doc = "0x18 - GPADC Calibration Data Register"]
58 #[inline(always)]
59 pub const fn gp_cdata(&self) -> &GP_CDATA {
60 &self.gp_cdata
61 }
62 #[doc = "0x20 - GPADC Data Low Interrupt Configure Register"]
63 #[inline(always)]
64 pub const fn gp_datal_intc(&self) -> &GP_DATAL_INTC {
65 &self.gp_datal_intc
66 }
67 #[doc = "0x24 - GPADC Data High Interrupt Configure Register"]
68 #[inline(always)]
69 pub const fn gp_datah_intc(&self) -> &GP_DATAH_INTC {
70 &self.gp_datah_intc
71 }
72 #[doc = "0x28 - GPADC Data Interrupt Configure Register"]
73 #[inline(always)]
74 pub const fn gp_data_intc(&self) -> &GP_DATA_INTC {
75 &self.gp_data_intc
76 }
77 #[doc = "0x30 - GPADC Data Low Interrupt Status Register"]
78 #[inline(always)]
79 pub const fn gp_datal_ints(&self) -> &GP_DATAL_INTS {
80 &self.gp_datal_ints
81 }
82 #[doc = "0x34 - GPADC Data High Interrupt Status Register"]
83 #[inline(always)]
84 pub const fn gp_datah_ints(&self) -> &GP_DATAH_INTS {
85 &self.gp_datah_ints
86 }
87 #[doc = "0x38 - GPADC Data Interrupt Status Register"]
88 #[inline(always)]
89 pub const fn gp_data_ints(&self) -> &GP_DATA_INTS {
90 &self.gp_data_ints
91 }
92 #[doc = "0x40 - GPADC CH0 Compare Data Register"]
93 #[inline(always)]
94 pub const fn gp_ch0_cmp_data(&self) -> &GP_CH0_CMP_DATA {
95 &self.gp_ch0_cmp_data
96 }
97 #[doc = "0x44 - GPADC CH1 Compare Data Register"]
98 #[inline(always)]
99 pub const fn gp_ch1_cmp_data(&self) -> &GP_CH1_CMP_DATA {
100 &self.gp_ch1_cmp_data
101 }
102 #[doc = "0x80 - GPADC CH0 Data Register"]
103 #[inline(always)]
104 pub const fn gp_ch0_data(&self) -> &GP_CH0_DATA {
105 &self.gp_ch0_data
106 }
107 #[doc = "0x84 - GPADC CH1 Data Register"]
108 #[inline(always)]
109 pub const fn gp_ch1_data(&self) -> &GP_CH1_DATA {
110 &self.gp_ch1_data
111 }
112}
113#[doc = "gp_sr_con (rw) register accessor: GPADC Sample Rate Configure Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_sr_con::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 [`gp_sr_con::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_sr_con`] module"]
114pub type GP_SR_CON = crate::Reg<gp_sr_con::GP_SR_CON_SPEC>;
115#[doc = "GPADC Sample Rate Configure Register"]
116pub mod gp_sr_con;
117#[doc = "gp_ctrl (rw) register accessor: GPADC Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_ctrl::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 [`gp_ctrl::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_ctrl`] module"]
118pub type GP_CTRL = crate::Reg<gp_ctrl::GP_CTRL_SPEC>;
119#[doc = "GPADC Control Register"]
120pub mod gp_ctrl;
121#[doc = "gp_cs_en (rw) register accessor: GPADC Compare and Select Enable Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_cs_en::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 [`gp_cs_en::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_cs_en`] module"]
122pub type GP_CS_EN = crate::Reg<gp_cs_en::GP_CS_EN_SPEC>;
123#[doc = "GPADC Compare and Select Enable Register"]
124pub mod gp_cs_en;
125#[doc = "gp_fifo_intc (rw) register accessor: GPADC FIFO Interrupt Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_fifo_intc::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 [`gp_fifo_intc::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_fifo_intc`] module"]
126pub type GP_FIFO_INTC = crate::Reg<gp_fifo_intc::GP_FIFO_INTC_SPEC>;
127#[doc = "GPADC FIFO Interrupt Control Register"]
128pub mod gp_fifo_intc;
129#[doc = "gp_fifo_ints (rw) register accessor: GPADC FIFO Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_fifo_ints::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 [`gp_fifo_ints::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_fifo_ints`] module"]
130pub type GP_FIFO_INTS = crate::Reg<gp_fifo_ints::GP_FIFO_INTS_SPEC>;
131#[doc = "GPADC FIFO Interrupt Status Register"]
132pub mod gp_fifo_ints;
133#[doc = "gp_fifo_data (rw) register accessor: GPADC FIFO Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_fifo_data::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 [`gp_fifo_data::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_fifo_data`] module"]
134pub type GP_FIFO_DATA = crate::Reg<gp_fifo_data::GP_FIFO_DATA_SPEC>;
135#[doc = "GPADC FIFO Data Register"]
136pub mod gp_fifo_data;
137#[doc = "gp_cdata (rw) register accessor: GPADC Calibration Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_cdata::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 [`gp_cdata::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_cdata`] module"]
138pub type GP_CDATA = crate::Reg<gp_cdata::GP_CDATA_SPEC>;
139#[doc = "GPADC Calibration Data Register"]
140pub mod gp_cdata;
141#[doc = "gp_datal_intc (rw) register accessor: GPADC Data Low Interrupt Configure Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_datal_intc::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 [`gp_datal_intc::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_datal_intc`] module"]
142pub type GP_DATAL_INTC = crate::Reg<gp_datal_intc::GP_DATAL_INTC_SPEC>;
143#[doc = "GPADC Data Low Interrupt Configure Register"]
144pub mod gp_datal_intc;
145#[doc = "gp_datah_intc (rw) register accessor: GPADC Data High Interrupt Configure Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_datah_intc::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 [`gp_datah_intc::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_datah_intc`] module"]
146pub type GP_DATAH_INTC = crate::Reg<gp_datah_intc::GP_DATAH_INTC_SPEC>;
147#[doc = "GPADC Data High Interrupt Configure Register"]
148pub mod gp_datah_intc;
149#[doc = "gp_data_intc (rw) register accessor: GPADC Data Interrupt Configure Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_data_intc::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 [`gp_data_intc::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_data_intc`] module"]
150pub type GP_DATA_INTC = crate::Reg<gp_data_intc::GP_DATA_INTC_SPEC>;
151#[doc = "GPADC Data Interrupt Configure Register"]
152pub mod gp_data_intc;
153#[doc = "gp_datal_ints (rw) register accessor: GPADC Data Low Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_datal_ints::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 [`gp_datal_ints::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_datal_ints`] module"]
154pub type GP_DATAL_INTS = crate::Reg<gp_datal_ints::GP_DATAL_INTS_SPEC>;
155#[doc = "GPADC Data Low Interrupt Status Register"]
156pub mod gp_datal_ints;
157#[doc = "gp_datah_ints (rw) register accessor: GPADC Data High Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_datah_ints::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 [`gp_datah_ints::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_datah_ints`] module"]
158pub type GP_DATAH_INTS = crate::Reg<gp_datah_ints::GP_DATAH_INTS_SPEC>;
159#[doc = "GPADC Data High Interrupt Status Register"]
160pub mod gp_datah_ints;
161#[doc = "gp_data_ints (rw) register accessor: GPADC Data Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_data_ints::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 [`gp_data_ints::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_data_ints`] module"]
162pub type GP_DATA_INTS = crate::Reg<gp_data_ints::GP_DATA_INTS_SPEC>;
163#[doc = "GPADC Data Interrupt Status Register"]
164pub mod gp_data_ints;
165#[doc = "gp_ch0_cmp_data (rw) register accessor: GPADC CH0 Compare Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_ch0_cmp_data::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 [`gp_ch0_cmp_data::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_ch0_cmp_data`] module"]
166pub type GP_CH0_CMP_DATA = crate::Reg<gp_ch0_cmp_data::GP_CH0_CMP_DATA_SPEC>;
167#[doc = "GPADC CH0 Compare Data Register"]
168pub mod gp_ch0_cmp_data;
169#[doc = "gp_ch1_cmp_data (rw) register accessor: GPADC CH1 Compare Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_ch1_cmp_data::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 [`gp_ch1_cmp_data::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_ch1_cmp_data`] module"]
170pub type GP_CH1_CMP_DATA = crate::Reg<gp_ch1_cmp_data::GP_CH1_CMP_DATA_SPEC>;
171#[doc = "GPADC CH1 Compare Data Register"]
172pub mod gp_ch1_cmp_data;
173#[doc = "gp_ch0_data (rw) register accessor: GPADC CH0 Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_ch0_data::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 [`gp_ch0_data::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_ch0_data`] module"]
174pub type GP_CH0_DATA = crate::Reg<gp_ch0_data::GP_CH0_DATA_SPEC>;
175#[doc = "GPADC CH0 Data Register"]
176pub mod gp_ch0_data;
177#[doc = "gp_ch1_data (rw) register accessor: GPADC CH1 Data Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`gp_ch1_data::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 [`gp_ch1_data::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@gp_ch1_data`] module"]
178pub type GP_CH1_DATA = crate::Reg<gp_ch1_data::GP_CH1_DATA_SPEC>;
179#[doc = "GPADC CH1 Data Register"]
180pub mod gp_ch1_data;