1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 id: ID,
5 dac0cfg0: DAC0CFG0,
6 dac0cfg1: DAC0CFG1,
7 dac1cfg0: DAC1CFG0,
8 dac1cfg1: DAC1CFG1,
9 dac0data: DAC0DATA,
10 dac1data: DAC1DATA,
11 dac01data: DAC01DATA,
12 dac0patl: DAC0PATL,
13 dac0path: DAC0PATH,
14 dac1patl: DAC1PATL,
15 dac1path: DAC1PATH,
16}
17impl RegisterBlock {
18 #[doc = "0x00 - Module Identification Register"]
19 #[inline(always)]
20 pub const fn id(&self) -> &ID {
21 &self.id
22 }
23 #[doc = "0x04 - DAC0 Configuration Register 0"]
24 #[inline(always)]
25 pub const fn dac0cfg0(&self) -> &DAC0CFG0 {
26 &self.dac0cfg0
27 }
28 #[doc = "0x08 - DAC0 Configuration Register 1"]
29 #[inline(always)]
30 pub const fn dac0cfg1(&self) -> &DAC0CFG1 {
31 &self.dac0cfg1
32 }
33 #[doc = "0x0c - DAC1 Configuration Register 0"]
34 #[inline(always)]
35 pub const fn dac1cfg0(&self) -> &DAC1CFG0 {
36 &self.dac1cfg0
37 }
38 #[doc = "0x10 - DAC1 Configuration Register 1"]
39 #[inline(always)]
40 pub const fn dac1cfg1(&self) -> &DAC1CFG1 {
41 &self.dac1cfg1
42 }
43 #[doc = "0x14 - DAC0 Data Register"]
44 #[inline(always)]
45 pub const fn dac0data(&self) -> &DAC0DATA {
46 &self.dac0data
47 }
48 #[doc = "0x18 - DAC1 Data Register"]
49 #[inline(always)]
50 pub const fn dac1data(&self) -> &DAC1DATA {
51 &self.dac1data
52 }
53 #[doc = "0x1c - DAC01 Data Register"]
54 #[inline(always)]
55 pub const fn dac01data(&self) -> &DAC01DATA {
56 &self.dac01data
57 }
58 #[doc = "0x20 - DAC0 Lower Pattern Register"]
59 #[inline(always)]
60 pub const fn dac0patl(&self) -> &DAC0PATL {
61 &self.dac0patl
62 }
63 #[doc = "0x24 - DAC0 Higher Pattern Register"]
64 #[inline(always)]
65 pub const fn dac0path(&self) -> &DAC0PATH {
66 &self.dac0path
67 }
68 #[doc = "0x28 - DAC1 Lower Pattern Register"]
69 #[inline(always)]
70 pub const fn dac1patl(&self) -> &DAC1PATL {
71 &self.dac1patl
72 }
73 #[doc = "0x2c - DAC1 Higher Pattern Register"]
74 #[inline(always)]
75 pub const fn dac1path(&self) -> &DAC1PATH {
76 &self.dac1path
77 }
78}
79#[doc = "ID (r) register accessor: Module Identification Register\n\nYou can [`read`](crate::Reg::read) this register and get [`id::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@id`]
80module"]
81pub type ID = crate::Reg<id::ID_SPEC>;
82#[doc = "Module Identification Register"]
83pub mod id;
84#[doc = "DAC0CFG0 (rw) register accessor: DAC0 Configuration Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`dac0cfg0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dac0cfg0::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@dac0cfg0`]
85module"]
86pub type DAC0CFG0 = crate::Reg<dac0cfg0::DAC0CFG0_SPEC>;
87#[doc = "DAC0 Configuration Register 0"]
88pub mod dac0cfg0;
89#[doc = "DAC0CFG1 (rw) register accessor: DAC0 Configuration Register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`dac0cfg1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dac0cfg1::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@dac0cfg1`]
90module"]
91pub type DAC0CFG1 = crate::Reg<dac0cfg1::DAC0CFG1_SPEC>;
92#[doc = "DAC0 Configuration Register 1"]
93pub mod dac0cfg1;
94#[doc = "DAC1CFG0 (rw) register accessor: DAC1 Configuration Register 0\n\nYou can [`read`](crate::Reg::read) this register and get [`dac1cfg0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dac1cfg0::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@dac1cfg0`]
95module"]
96pub type DAC1CFG0 = crate::Reg<dac1cfg0::DAC1CFG0_SPEC>;
97#[doc = "DAC1 Configuration Register 0"]
98pub mod dac1cfg0;
99#[doc = "DAC1CFG1 (rw) register accessor: DAC1 Configuration Register 1\n\nYou can [`read`](crate::Reg::read) this register and get [`dac1cfg1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dac1cfg1::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@dac1cfg1`]
100module"]
101pub type DAC1CFG1 = crate::Reg<dac1cfg1::DAC1CFG1_SPEC>;
102#[doc = "DAC1 Configuration Register 1"]
103pub mod dac1cfg1;
104#[doc = "DAC0DATA (rw) register accessor: DAC0 Data Register\n\nYou can [`read`](crate::Reg::read) this register and get [`dac0data::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dac0data::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@dac0data`]
105module"]
106pub type DAC0DATA = crate::Reg<dac0data::DAC0DATA_SPEC>;
107#[doc = "DAC0 Data Register"]
108pub mod dac0data;
109#[doc = "DAC1DATA (rw) register accessor: DAC1 Data Register\n\nYou can [`read`](crate::Reg::read) this register and get [`dac1data::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dac1data::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@dac1data`]
110module"]
111pub type DAC1DATA = crate::Reg<dac1data::DAC1DATA_SPEC>;
112#[doc = "DAC1 Data Register"]
113pub mod dac1data;
114#[doc = "DAC01DATA (rw) register accessor: DAC01 Data Register\n\nYou can [`read`](crate::Reg::read) this register and get [`dac01data::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dac01data::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@dac01data`]
115module"]
116pub type DAC01DATA = crate::Reg<dac01data::DAC01DATA_SPEC>;
117#[doc = "DAC01 Data Register"]
118pub mod dac01data;
119#[doc = "DAC0PATL (rw) register accessor: DAC0 Lower Pattern Register\n\nYou can [`read`](crate::Reg::read) this register and get [`dac0patl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dac0patl::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@dac0patl`]
120module"]
121pub type DAC0PATL = crate::Reg<dac0patl::DAC0PATL_SPEC>;
122#[doc = "DAC0 Lower Pattern Register"]
123pub mod dac0patl;
124#[doc = "DAC0PATH (rw) register accessor: DAC0 Higher Pattern Register\n\nYou can [`read`](crate::Reg::read) this register and get [`dac0path::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dac0path::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@dac0path`]
125module"]
126pub type DAC0PATH = crate::Reg<dac0path::DAC0PATH_SPEC>;
127#[doc = "DAC0 Higher Pattern Register"]
128pub mod dac0path;
129#[doc = "DAC1PATL (rw) register accessor: DAC1 Lower Pattern Register\n\nYou can [`read`](crate::Reg::read) this register and get [`dac1patl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dac1patl::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@dac1patl`]
130module"]
131pub type DAC1PATL = crate::Reg<dac1patl::DAC1PATL_SPEC>;
132#[doc = "DAC1 Lower Pattern Register"]
133pub mod dac1patl;
134#[doc = "DAC1PATH (rw) register accessor: DAC1 Higher Pattern Register\n\nYou can [`read`](crate::Reg::read) this register and get [`dac1path::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dac1path::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@dac1path`]
135module"]
136pub type DAC1PATH = crate::Reg<dac1path::DAC1PATH_SPEC>;
137#[doc = "DAC1 Higher Pattern Register"]
138pub mod dac1path;