1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - Control A"]
5 pub ctrla: CTRLA,
6 _reserved1: [u8; 2usize],
7 #[doc = "0x04 - Control B"]
8 pub ctrlb: CTRLB,
9 #[doc = "0x08 - Control C"]
10 pub ctrlc: CTRLC,
11 _reserved3: [u8; 1usize],
12 #[doc = "0x0a - Event Control"]
13 pub evctrl: EVCTRL,
14 _reserved4: [u8; 1usize],
15 #[doc = "0x0c - Interrupt Enable Clear"]
16 pub intenclr: INTENCLR,
17 _reserved5: [u8; 3usize],
18 #[doc = "0x10 - Interrupt Enable Set"]
19 pub intenset: INTENSET,
20 _reserved6: [u8; 3usize],
21 #[doc = "0x14 - Interrupt Flag Status and Clear"]
22 pub intflag: INTFLAG,
23 _reserved7: [u8; 3usize],
24 #[doc = "0x18 - Status"]
25 pub status: STATUS,
26 _reserved8: [u8; 2usize],
27 #[doc = "0x1c - Address"]
28 pub addr: ADDR,
29 #[doc = "0x20 - Secure Unlock Register"]
30 pub sulck: SULCK,
31 #[doc = "0x22 - Non-Secure Unlock Register"]
32 pub nsulck: NSULCK,
33 #[doc = "0x24 - NVM Parameter"]
34 pub param: PARAM,
35 _reserved12: [u8; 8usize],
36 #[doc = "0x30 - Data Scramble Configuration"]
37 pub dscc: DSCC,
38 #[doc = "0x34 - Security Control"]
39 pub secctrl: SECCTRL,
40 #[doc = "0x38 - Secure Boot Configuration"]
41 pub scfgb: SCFGB,
42 #[doc = "0x3c - Secure Application and Data Configuration"]
43 pub scfgad: SCFGAD,
44 #[doc = "0x40 - Non-secure Write Enable"]
45 pub nonsec: NONSEC,
46 #[doc = "0x44 - Non-secure Write Reference Value"]
47 pub nschk: NSCHK,
48}
49#[doc = "Control A\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 avaliable fields see [ctrla](ctrla) module"]
50pub type CTRLA = crate::Reg<u16, _CTRLA>;
51#[allow(missing_docs)]
52#[doc(hidden)]
53pub struct _CTRLA;
54#[doc = "`write(|w| ..)` method takes [ctrla::W](ctrla::W) writer structure"]
55impl crate::Writable for CTRLA {}
56#[doc = "Control A"]
57pub mod ctrla;
58#[doc = "Control B\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 avaliable fields see [ctrlb](ctrlb) module"]
59pub type CTRLB = crate::Reg<u32, _CTRLB>;
60#[allow(missing_docs)]
61#[doc(hidden)]
62pub struct _CTRLB;
63#[doc = "`read()` method returns [ctrlb::R](ctrlb::R) reader structure"]
64impl crate::Readable for CTRLB {}
65#[doc = "`write(|w| ..)` method takes [ctrlb::W](ctrlb::W) writer structure"]
66impl crate::Writable for CTRLB {}
67#[doc = "Control B"]
68pub mod ctrlb;
69#[doc = "Control C\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 avaliable fields see [ctrlc](ctrlc) module"]
70pub type CTRLC = crate::Reg<u8, _CTRLC>;
71#[allow(missing_docs)]
72#[doc(hidden)]
73pub struct _CTRLC;
74#[doc = "`read()` method returns [ctrlc::R](ctrlc::R) reader structure"]
75impl crate::Readable for CTRLC {}
76#[doc = "`write(|w| ..)` method takes [ctrlc::W](ctrlc::W) writer structure"]
77impl crate::Writable for CTRLC {}
78#[doc = "Control C"]
79pub mod ctrlc;
80#[doc = "Event Control\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 avaliable fields see [evctrl](evctrl) module"]
81pub type EVCTRL = crate::Reg<u8, _EVCTRL>;
82#[allow(missing_docs)]
83#[doc(hidden)]
84pub struct _EVCTRL;
85#[doc = "`read()` method returns [evctrl::R](evctrl::R) reader structure"]
86impl crate::Readable for EVCTRL {}
87#[doc = "`write(|w| ..)` method takes [evctrl::W](evctrl::W) writer structure"]
88impl crate::Writable for EVCTRL {}
89#[doc = "Event Control"]
90pub mod evctrl;
91#[doc = "Interrupt Enable Clear\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 avaliable fields see [intenclr](intenclr) module"]
92pub type INTENCLR = crate::Reg<u8, _INTENCLR>;
93#[allow(missing_docs)]
94#[doc(hidden)]
95pub struct _INTENCLR;
96#[doc = "`read()` method returns [intenclr::R](intenclr::R) reader structure"]
97impl crate::Readable for INTENCLR {}
98#[doc = "`write(|w| ..)` method takes [intenclr::W](intenclr::W) writer structure"]
99impl crate::Writable for INTENCLR {}
100#[doc = "Interrupt Enable Clear"]
101pub mod intenclr;
102#[doc = "Interrupt Enable Set\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 avaliable fields see [intenset](intenset) module"]
103pub type INTENSET = crate::Reg<u8, _INTENSET>;
104#[allow(missing_docs)]
105#[doc(hidden)]
106pub struct _INTENSET;
107#[doc = "`read()` method returns [intenset::R](intenset::R) reader structure"]
108impl crate::Readable for INTENSET {}
109#[doc = "`write(|w| ..)` method takes [intenset::W](intenset::W) writer structure"]
110impl crate::Writable for INTENSET {}
111#[doc = "Interrupt Enable Set"]
112pub mod intenset;
113#[doc = "Interrupt Flag Status and Clear\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 avaliable fields see [intflag](intflag) module"]
114pub type INTFLAG = crate::Reg<u8, _INTFLAG>;
115#[allow(missing_docs)]
116#[doc(hidden)]
117pub struct _INTFLAG;
118#[doc = "`read()` method returns [intflag::R](intflag::R) reader structure"]
119impl crate::Readable for INTFLAG {}
120#[doc = "`write(|w| ..)` method takes [intflag::W](intflag::W) writer structure"]
121impl crate::Writable for INTFLAG {}
122#[doc = "Interrupt Flag Status and Clear"]
123pub mod intflag;
124#[doc = "Status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [status](status) module"]
125pub type STATUS = crate::Reg<u16, _STATUS>;
126#[allow(missing_docs)]
127#[doc(hidden)]
128pub struct _STATUS;
129#[doc = "`read()` method returns [status::R](status::R) reader structure"]
130impl crate::Readable for STATUS {}
131#[doc = "Status"]
132pub mod status;
133#[doc = "Address\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 avaliable fields see [addr](addr) module"]
134pub type ADDR = crate::Reg<u32, _ADDR>;
135#[allow(missing_docs)]
136#[doc(hidden)]
137pub struct _ADDR;
138#[doc = "`read()` method returns [addr::R](addr::R) reader structure"]
139impl crate::Readable for ADDR {}
140#[doc = "`write(|w| ..)` method takes [addr::W](addr::W) writer structure"]
141impl crate::Writable for ADDR {}
142#[doc = "Address"]
143pub mod addr;
144#[doc = "Secure Unlock 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 avaliable fields see [sulck](sulck) module"]
145pub type SULCK = crate::Reg<u16, _SULCK>;
146#[allow(missing_docs)]
147#[doc(hidden)]
148pub struct _SULCK;
149#[doc = "`read()` method returns [sulck::R](sulck::R) reader structure"]
150impl crate::Readable for SULCK {}
151#[doc = "`write(|w| ..)` method takes [sulck::W](sulck::W) writer structure"]
152impl crate::Writable for SULCK {}
153#[doc = "Secure Unlock Register"]
154pub mod sulck;
155#[doc = "Non-Secure Unlock 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 avaliable fields see [nsulck](nsulck) module"]
156pub type NSULCK = crate::Reg<u16, _NSULCK>;
157#[allow(missing_docs)]
158#[doc(hidden)]
159pub struct _NSULCK;
160#[doc = "`read()` method returns [nsulck::R](nsulck::R) reader structure"]
161impl crate::Readable for NSULCK {}
162#[doc = "`write(|w| ..)` method takes [nsulck::W](nsulck::W) writer structure"]
163impl crate::Writable for NSULCK {}
164#[doc = "Non-Secure Unlock Register"]
165pub mod nsulck;
166#[doc = "NVM Parameter\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 avaliable fields see [param](param) module"]
167pub type PARAM = crate::Reg<u32, _PARAM>;
168#[allow(missing_docs)]
169#[doc(hidden)]
170pub struct _PARAM;
171#[doc = "`read()` method returns [param::R](param::R) reader structure"]
172impl crate::Readable for PARAM {}
173#[doc = "`write(|w| ..)` method takes [param::W](param::W) writer structure"]
174impl crate::Writable for PARAM {}
175#[doc = "NVM Parameter"]
176pub mod param;
177#[doc = "Data Scramble Configuration\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 avaliable fields see [dscc](dscc) module"]
178pub type DSCC = crate::Reg<u32, _DSCC>;
179#[allow(missing_docs)]
180#[doc(hidden)]
181pub struct _DSCC;
182#[doc = "`write(|w| ..)` method takes [dscc::W](dscc::W) writer structure"]
183impl crate::Writable for DSCC {}
184#[doc = "Data Scramble Configuration"]
185pub mod dscc;
186#[doc = "Security Control\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 avaliable fields see [secctrl](secctrl) module"]
187pub type SECCTRL = crate::Reg<u32, _SECCTRL>;
188#[allow(missing_docs)]
189#[doc(hidden)]
190pub struct _SECCTRL;
191#[doc = "`read()` method returns [secctrl::R](secctrl::R) reader structure"]
192impl crate::Readable for SECCTRL {}
193#[doc = "`write(|w| ..)` method takes [secctrl::W](secctrl::W) writer structure"]
194impl crate::Writable for SECCTRL {}
195#[doc = "Security Control"]
196pub mod secctrl;
197#[doc = "Secure Boot Configuration\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 avaliable fields see [scfgb](scfgb) module"]
198pub type SCFGB = crate::Reg<u32, _SCFGB>;
199#[allow(missing_docs)]
200#[doc(hidden)]
201pub struct _SCFGB;
202#[doc = "`read()` method returns [scfgb::R](scfgb::R) reader structure"]
203impl crate::Readable for SCFGB {}
204#[doc = "`write(|w| ..)` method takes [scfgb::W](scfgb::W) writer structure"]
205impl crate::Writable for SCFGB {}
206#[doc = "Secure Boot Configuration"]
207pub mod scfgb;
208#[doc = "Secure Application and Data Configuration\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 avaliable fields see [scfgad](scfgad) module"]
209pub type SCFGAD = crate::Reg<u32, _SCFGAD>;
210#[allow(missing_docs)]
211#[doc(hidden)]
212pub struct _SCFGAD;
213#[doc = "`read()` method returns [scfgad::R](scfgad::R) reader structure"]
214impl crate::Readable for SCFGAD {}
215#[doc = "`write(|w| ..)` method takes [scfgad::W](scfgad::W) writer structure"]
216impl crate::Writable for SCFGAD {}
217#[doc = "Secure Application and Data Configuration"]
218pub mod scfgad;
219#[doc = "Non-secure Write Enable\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 avaliable fields see [nonsec](nonsec) module"]
220pub type NONSEC = crate::Reg<u32, _NONSEC>;
221#[allow(missing_docs)]
222#[doc(hidden)]
223pub struct _NONSEC;
224#[doc = "`read()` method returns [nonsec::R](nonsec::R) reader structure"]
225impl crate::Readable for NONSEC {}
226#[doc = "`write(|w| ..)` method takes [nonsec::W](nonsec::W) writer structure"]
227impl crate::Writable for NONSEC {}
228#[doc = "Non-secure Write Enable"]
229pub mod nonsec;
230#[doc = "Non-secure Write Reference Value\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 avaliable fields see [nschk](nschk) module"]
231pub type NSCHK = crate::Reg<u32, _NSCHK>;
232#[allow(missing_docs)]
233#[doc(hidden)]
234pub struct _NSCHK;
235#[doc = "`read()` method returns [nschk::R](nschk::R) reader structure"]
236impl crate::Readable for NSCHK {}
237#[doc = "`write(|w| ..)` method takes [nschk::W](nschk::W) writer structure"]
238impl crate::Writable for NSCHK {}
239#[doc = "Non-secure Write Reference Value"]
240pub mod nschk;