Skip to main content

efm32pg12_pac/
prs.rs

1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    #[doc = "0x00 - Software Pulse Register"]
5    pub swpulse: SWPULSE,
6    #[doc = "0x04 - Software Level Register"]
7    pub swlevel: SWLEVEL,
8    #[doc = "0x08 - I/O Routing Pin Enable Register"]
9    pub routepen: ROUTEPEN,
10    _reserved3: [u8; 4usize],
11    #[doc = "0x10 - I/O Routing Location Register"]
12    pub routeloc0: ROUTELOC0,
13    #[doc = "0x14 - I/O Routing Location Register"]
14    pub routeloc1: ROUTELOC1,
15    #[doc = "0x18 - I/O Routing Location Register"]
16    pub routeloc2: ROUTELOC2,
17    _reserved6: [u8; 20usize],
18    #[doc = "0x30 - Control Register"]
19    pub ctrl: CTRL,
20    #[doc = "0x34 - DMA Request 0 Register"]
21    pub dmareq0: DMAREQ0,
22    #[doc = "0x38 - DMA Request 1 Register"]
23    pub dmareq1: DMAREQ1,
24    _reserved9: [u8; 4usize],
25    #[doc = "0x40 - PRS Channel Values"]
26    pub peek: PEEK,
27    _reserved10: [u8; 12usize],
28    #[doc = "0x50 - Channel Control Register"]
29    pub ch0_ctrl: CH0_CTRL,
30    #[doc = "0x54 - Channel Control Register"]
31    pub ch1_ctrl: CH1_CTRL,
32    #[doc = "0x58 - Channel Control Register"]
33    pub ch2_ctrl: CH2_CTRL,
34    #[doc = "0x5c - Channel Control Register"]
35    pub ch3_ctrl: CH3_CTRL,
36    #[doc = "0x60 - Channel Control Register"]
37    pub ch4_ctrl: CH4_CTRL,
38    #[doc = "0x64 - Channel Control Register"]
39    pub ch5_ctrl: CH5_CTRL,
40    #[doc = "0x68 - Channel Control Register"]
41    pub ch6_ctrl: CH6_CTRL,
42    #[doc = "0x6c - Channel Control Register"]
43    pub ch7_ctrl: CH7_CTRL,
44    #[doc = "0x70 - Channel Control Register"]
45    pub ch8_ctrl: CH8_CTRL,
46    #[doc = "0x74 - Channel Control Register"]
47    pub ch9_ctrl: CH9_CTRL,
48    #[doc = "0x78 - Channel Control Register"]
49    pub ch10_ctrl: CH10_CTRL,
50    #[doc = "0x7c - Channel Control Register"]
51    pub ch11_ctrl: CH11_CTRL,
52}
53#[doc = "Software Pulse Register\n\nThis register you can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [swpulse](swpulse) module"]
54pub type SWPULSE = crate::Reg<u32, _SWPULSE>;
55#[allow(missing_docs)]
56#[doc(hidden)]
57pub struct _SWPULSE;
58#[doc = "`write(|w| ..)` method takes [swpulse::W](swpulse::W) writer structure"]
59impl crate::Writable for SWPULSE {}
60#[doc = "Software Pulse Register"]
61pub mod swpulse;
62#[doc = "Software Level Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [swlevel](swlevel) module"]
63pub type SWLEVEL = crate::Reg<u32, _SWLEVEL>;
64#[allow(missing_docs)]
65#[doc(hidden)]
66pub struct _SWLEVEL;
67#[doc = "`read()` method returns [swlevel::R](swlevel::R) reader structure"]
68impl crate::Readable for SWLEVEL {}
69#[doc = "`write(|w| ..)` method takes [swlevel::W](swlevel::W) writer structure"]
70impl crate::Writable for SWLEVEL {}
71#[doc = "Software Level Register"]
72pub mod swlevel;
73#[doc = "I/O Routing Pin Enable Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [routepen](routepen) module"]
74pub type ROUTEPEN = crate::Reg<u32, _ROUTEPEN>;
75#[allow(missing_docs)]
76#[doc(hidden)]
77pub struct _ROUTEPEN;
78#[doc = "`read()` method returns [routepen::R](routepen::R) reader structure"]
79impl crate::Readable for ROUTEPEN {}
80#[doc = "`write(|w| ..)` method takes [routepen::W](routepen::W) writer structure"]
81impl crate::Writable for ROUTEPEN {}
82#[doc = "I/O Routing Pin Enable Register"]
83pub mod routepen;
84#[doc = "I/O Routing Location Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [routeloc0](routeloc0) module"]
85pub type ROUTELOC0 = crate::Reg<u32, _ROUTELOC0>;
86#[allow(missing_docs)]
87#[doc(hidden)]
88pub struct _ROUTELOC0;
89#[doc = "`read()` method returns [routeloc0::R](routeloc0::R) reader structure"]
90impl crate::Readable for ROUTELOC0 {}
91#[doc = "`write(|w| ..)` method takes [routeloc0::W](routeloc0::W) writer structure"]
92impl crate::Writable for ROUTELOC0 {}
93#[doc = "I/O Routing Location Register"]
94pub mod routeloc0;
95#[doc = "I/O Routing Location Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [routeloc1](routeloc1) module"]
96pub type ROUTELOC1 = crate::Reg<u32, _ROUTELOC1>;
97#[allow(missing_docs)]
98#[doc(hidden)]
99pub struct _ROUTELOC1;
100#[doc = "`read()` method returns [routeloc1::R](routeloc1::R) reader structure"]
101impl crate::Readable for ROUTELOC1 {}
102#[doc = "`write(|w| ..)` method takes [routeloc1::W](routeloc1::W) writer structure"]
103impl crate::Writable for ROUTELOC1 {}
104#[doc = "I/O Routing Location Register"]
105pub mod routeloc1;
106#[doc = "I/O Routing Location Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [routeloc2](routeloc2) module"]
107pub type ROUTELOC2 = crate::Reg<u32, _ROUTELOC2>;
108#[allow(missing_docs)]
109#[doc(hidden)]
110pub struct _ROUTELOC2;
111#[doc = "`read()` method returns [routeloc2::R](routeloc2::R) reader structure"]
112impl crate::Readable for ROUTELOC2 {}
113#[doc = "`write(|w| ..)` method takes [routeloc2::W](routeloc2::W) writer structure"]
114impl crate::Writable for ROUTELOC2 {}
115#[doc = "I/O Routing Location Register"]
116pub mod routeloc2;
117#[doc = "Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctrl](ctrl) module"]
118pub type CTRL = crate::Reg<u32, _CTRL>;
119#[allow(missing_docs)]
120#[doc(hidden)]
121pub struct _CTRL;
122#[doc = "`read()` method returns [ctrl::R](ctrl::R) reader structure"]
123impl crate::Readable for CTRL {}
124#[doc = "`write(|w| ..)` method takes [ctrl::W](ctrl::W) writer structure"]
125impl crate::Writable for CTRL {}
126#[doc = "Control Register"]
127pub mod ctrl;
128#[doc = "DMA Request 0 Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dmareq0](dmareq0) module"]
129pub type DMAREQ0 = crate::Reg<u32, _DMAREQ0>;
130#[allow(missing_docs)]
131#[doc(hidden)]
132pub struct _DMAREQ0;
133#[doc = "`read()` method returns [dmareq0::R](dmareq0::R) reader structure"]
134impl crate::Readable for DMAREQ0 {}
135#[doc = "`write(|w| ..)` method takes [dmareq0::W](dmareq0::W) writer structure"]
136impl crate::Writable for DMAREQ0 {}
137#[doc = "DMA Request 0 Register"]
138pub mod dmareq0;
139#[doc = "DMA Request 1 Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dmareq1](dmareq1) module"]
140pub type DMAREQ1 = crate::Reg<u32, _DMAREQ1>;
141#[allow(missing_docs)]
142#[doc(hidden)]
143pub struct _DMAREQ1;
144#[doc = "`read()` method returns [dmareq1::R](dmareq1::R) reader structure"]
145impl crate::Readable for DMAREQ1 {}
146#[doc = "`write(|w| ..)` method takes [dmareq1::W](dmareq1::W) writer structure"]
147impl crate::Writable for DMAREQ1 {}
148#[doc = "DMA Request 1 Register"]
149pub mod dmareq1;
150#[doc = "PRS Channel Values\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [peek](peek) module"]
151pub type PEEK = crate::Reg<u32, _PEEK>;
152#[allow(missing_docs)]
153#[doc(hidden)]
154pub struct _PEEK;
155#[doc = "`read()` method returns [peek::R](peek::R) reader structure"]
156impl crate::Readable for PEEK {}
157#[doc = "PRS Channel Values"]
158pub mod peek;
159#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch0_ctrl](ch0_ctrl) module"]
160pub type CH0_CTRL = crate::Reg<u32, _CH0_CTRL>;
161#[allow(missing_docs)]
162#[doc(hidden)]
163pub struct _CH0_CTRL;
164#[doc = "`read()` method returns [ch0_ctrl::R](ch0_ctrl::R) reader structure"]
165impl crate::Readable for CH0_CTRL {}
166#[doc = "`write(|w| ..)` method takes [ch0_ctrl::W](ch0_ctrl::W) writer structure"]
167impl crate::Writable for CH0_CTRL {}
168#[doc = "Channel Control Register"]
169pub mod ch0_ctrl;
170#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch1_ctrl](ch1_ctrl) module"]
171pub type CH1_CTRL = crate::Reg<u32, _CH1_CTRL>;
172#[allow(missing_docs)]
173#[doc(hidden)]
174pub struct _CH1_CTRL;
175#[doc = "`read()` method returns [ch1_ctrl::R](ch1_ctrl::R) reader structure"]
176impl crate::Readable for CH1_CTRL {}
177#[doc = "`write(|w| ..)` method takes [ch1_ctrl::W](ch1_ctrl::W) writer structure"]
178impl crate::Writable for CH1_CTRL {}
179#[doc = "Channel Control Register"]
180pub mod ch1_ctrl;
181#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch2_ctrl](ch2_ctrl) module"]
182pub type CH2_CTRL = crate::Reg<u32, _CH2_CTRL>;
183#[allow(missing_docs)]
184#[doc(hidden)]
185pub struct _CH2_CTRL;
186#[doc = "`read()` method returns [ch2_ctrl::R](ch2_ctrl::R) reader structure"]
187impl crate::Readable for CH2_CTRL {}
188#[doc = "`write(|w| ..)` method takes [ch2_ctrl::W](ch2_ctrl::W) writer structure"]
189impl crate::Writable for CH2_CTRL {}
190#[doc = "Channel Control Register"]
191pub mod ch2_ctrl;
192#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch3_ctrl](ch3_ctrl) module"]
193pub type CH3_CTRL = crate::Reg<u32, _CH3_CTRL>;
194#[allow(missing_docs)]
195#[doc(hidden)]
196pub struct _CH3_CTRL;
197#[doc = "`read()` method returns [ch3_ctrl::R](ch3_ctrl::R) reader structure"]
198impl crate::Readable for CH3_CTRL {}
199#[doc = "`write(|w| ..)` method takes [ch3_ctrl::W](ch3_ctrl::W) writer structure"]
200impl crate::Writable for CH3_CTRL {}
201#[doc = "Channel Control Register"]
202pub mod ch3_ctrl;
203#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch4_ctrl](ch4_ctrl) module"]
204pub type CH4_CTRL = crate::Reg<u32, _CH4_CTRL>;
205#[allow(missing_docs)]
206#[doc(hidden)]
207pub struct _CH4_CTRL;
208#[doc = "`read()` method returns [ch4_ctrl::R](ch4_ctrl::R) reader structure"]
209impl crate::Readable for CH4_CTRL {}
210#[doc = "`write(|w| ..)` method takes [ch4_ctrl::W](ch4_ctrl::W) writer structure"]
211impl crate::Writable for CH4_CTRL {}
212#[doc = "Channel Control Register"]
213pub mod ch4_ctrl;
214#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch5_ctrl](ch5_ctrl) module"]
215pub type CH5_CTRL = crate::Reg<u32, _CH5_CTRL>;
216#[allow(missing_docs)]
217#[doc(hidden)]
218pub struct _CH5_CTRL;
219#[doc = "`read()` method returns [ch5_ctrl::R](ch5_ctrl::R) reader structure"]
220impl crate::Readable for CH5_CTRL {}
221#[doc = "`write(|w| ..)` method takes [ch5_ctrl::W](ch5_ctrl::W) writer structure"]
222impl crate::Writable for CH5_CTRL {}
223#[doc = "Channel Control Register"]
224pub mod ch5_ctrl;
225#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch6_ctrl](ch6_ctrl) module"]
226pub type CH6_CTRL = crate::Reg<u32, _CH6_CTRL>;
227#[allow(missing_docs)]
228#[doc(hidden)]
229pub struct _CH6_CTRL;
230#[doc = "`read()` method returns [ch6_ctrl::R](ch6_ctrl::R) reader structure"]
231impl crate::Readable for CH6_CTRL {}
232#[doc = "`write(|w| ..)` method takes [ch6_ctrl::W](ch6_ctrl::W) writer structure"]
233impl crate::Writable for CH6_CTRL {}
234#[doc = "Channel Control Register"]
235pub mod ch6_ctrl;
236#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch7_ctrl](ch7_ctrl) module"]
237pub type CH7_CTRL = crate::Reg<u32, _CH7_CTRL>;
238#[allow(missing_docs)]
239#[doc(hidden)]
240pub struct _CH7_CTRL;
241#[doc = "`read()` method returns [ch7_ctrl::R](ch7_ctrl::R) reader structure"]
242impl crate::Readable for CH7_CTRL {}
243#[doc = "`write(|w| ..)` method takes [ch7_ctrl::W](ch7_ctrl::W) writer structure"]
244impl crate::Writable for CH7_CTRL {}
245#[doc = "Channel Control Register"]
246pub mod ch7_ctrl;
247#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch8_ctrl](ch8_ctrl) module"]
248pub type CH8_CTRL = crate::Reg<u32, _CH8_CTRL>;
249#[allow(missing_docs)]
250#[doc(hidden)]
251pub struct _CH8_CTRL;
252#[doc = "`read()` method returns [ch8_ctrl::R](ch8_ctrl::R) reader structure"]
253impl crate::Readable for CH8_CTRL {}
254#[doc = "`write(|w| ..)` method takes [ch8_ctrl::W](ch8_ctrl::W) writer structure"]
255impl crate::Writable for CH8_CTRL {}
256#[doc = "Channel Control Register"]
257pub mod ch8_ctrl;
258#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch9_ctrl](ch9_ctrl) module"]
259pub type CH9_CTRL = crate::Reg<u32, _CH9_CTRL>;
260#[allow(missing_docs)]
261#[doc(hidden)]
262pub struct _CH9_CTRL;
263#[doc = "`read()` method returns [ch9_ctrl::R](ch9_ctrl::R) reader structure"]
264impl crate::Readable for CH9_CTRL {}
265#[doc = "`write(|w| ..)` method takes [ch9_ctrl::W](ch9_ctrl::W) writer structure"]
266impl crate::Writable for CH9_CTRL {}
267#[doc = "Channel Control Register"]
268pub mod ch9_ctrl;
269#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch10_ctrl](ch10_ctrl) module"]
270pub type CH10_CTRL = crate::Reg<u32, _CH10_CTRL>;
271#[allow(missing_docs)]
272#[doc(hidden)]
273pub struct _CH10_CTRL;
274#[doc = "`read()` method returns [ch10_ctrl::R](ch10_ctrl::R) reader structure"]
275impl crate::Readable for CH10_CTRL {}
276#[doc = "`write(|w| ..)` method takes [ch10_ctrl::W](ch10_ctrl::W) writer structure"]
277impl crate::Writable for CH10_CTRL {}
278#[doc = "Channel Control Register"]
279pub mod ch10_ctrl;
280#[doc = "Channel Control Register\n\nThis register you can [`read`](crate::generic::Reg::read), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ch11_ctrl](ch11_ctrl) module"]
281pub type CH11_CTRL = crate::Reg<u32, _CH11_CTRL>;
282#[allow(missing_docs)]
283#[doc(hidden)]
284pub struct _CH11_CTRL;
285#[doc = "`read()` method returns [ch11_ctrl::R](ch11_ctrl::R) reader structure"]
286impl crate::Readable for CH11_CTRL {}
287#[doc = "`write(|w| ..)` method takes [ch11_ctrl::W](ch11_ctrl::W) writer structure"]
288impl crate::Writable for CH11_CTRL {}
289#[doc = "Channel Control Register"]
290pub mod ch11_ctrl;