muscab1_pac/
nspctrl.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    _reserved0: [u8; 0x90],
5    ahbnspppc0: Ahbnspppc0,
6    _reserved1: [u8; 0x0c],
7    ahbnspppcexp0: Ahbnspppcexp0,
8    ahbnspppcexp1: Ahbnspppcexp1,
9    ahbnspppcexp2: Ahbnspppcexp2,
10    ahbnspppcexp3: Ahbnspppcexp3,
11    apbnspppc0: Apbnspppc0,
12    apbnspppc1: Apbnspppc1,
13    _reserved7: [u8; 0x08],
14    apbnspppcexp0: Apbnspppcexp0,
15    apbnspppcexp1: Apbnspppcexp1,
16    apbnspppcexp2: Apbnspppcexp2,
17    apbnspppcexp3: Apbnspppcexp3,
18    _reserved11: [u8; 0x0f00],
19    pidr4: Pidr4,
20    _reserved12: [u8; 0x0c],
21    pidr0: Pidr0,
22    pidr1: Pidr1,
23    pidr2: Pidr2,
24    pidr3: Pidr3,
25    cidr0: Cidr0,
26    cidr1: Cidr1,
27    cidr2: Cidr2,
28    cidr3: Cidr3,
29}
30impl RegisterBlock {
31    #[doc = "0x90 - Non-Secure Unprivileged Access AHB slave Peripheral Protection Control #0"]
32    #[inline(always)]
33    pub const fn ahbnspppc0(&self) -> &Ahbnspppc0 {
34        &self.ahbnspppc0
35    }
36    #[doc = "0xa0 - Expansion 0 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control"]
37    #[inline(always)]
38    pub const fn ahbnspppcexp0(&self) -> &Ahbnspppcexp0 {
39        &self.ahbnspppcexp0
40    }
41    #[doc = "0xa4 - Expansion 1 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control"]
42    #[inline(always)]
43    pub const fn ahbnspppcexp1(&self) -> &Ahbnspppcexp1 {
44        &self.ahbnspppcexp1
45    }
46    #[doc = "0xa8 - Expansion 2 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control"]
47    #[inline(always)]
48    pub const fn ahbnspppcexp2(&self) -> &Ahbnspppcexp2 {
49        &self.ahbnspppcexp2
50    }
51    #[doc = "0xac - Expansion 3 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control"]
52    #[inline(always)]
53    pub const fn ahbnspppcexp3(&self) -> &Ahbnspppcexp3 {
54        &self.ahbnspppcexp3
55    }
56    #[doc = "0xb0 - Non-Secure Unprivileged Access APB slave Peripheral Protection Control 0"]
57    #[inline(always)]
58    pub const fn apbnspppc0(&self) -> &Apbnspppc0 {
59        &self.apbnspppc0
60    }
61    #[doc = "0xb4 - Non-Secure Unprivileged Access APB slave Peripheral Protection Control 1"]
62    #[inline(always)]
63    pub const fn apbnspppc1(&self) -> &Apbnspppc1 {
64        &self.apbnspppc1
65    }
66    #[doc = "0xc0 - Expansion 0 Non_Secure Unprivileged Access APB slave Peripheral Protection Control"]
67    #[inline(always)]
68    pub const fn apbnspppcexp0(&self) -> &Apbnspppcexp0 {
69        &self.apbnspppcexp0
70    }
71    #[doc = "0xc4 - Expansion 1 Non_Secure Unprivileged Access APB slave Peripheral Protection Control"]
72    #[inline(always)]
73    pub const fn apbnspppcexp1(&self) -> &Apbnspppcexp1 {
74        &self.apbnspppcexp1
75    }
76    #[doc = "0xc8 - Expansion 2 Non_Secure Unprivileged Access APB slave Peripheral Protection Control"]
77    #[inline(always)]
78    pub const fn apbnspppcexp2(&self) -> &Apbnspppcexp2 {
79        &self.apbnspppcexp2
80    }
81    #[doc = "0xcc - Expansion 3 Non_Secure Unprivileged Access APB slave Peripheral Protection Control"]
82    #[inline(always)]
83    pub const fn apbnspppcexp3(&self) -> &Apbnspppcexp3 {
84        &self.apbnspppcexp3
85    }
86    #[doc = "0xfd0 - Peripheral ID 4"]
87    #[inline(always)]
88    pub const fn pidr4(&self) -> &Pidr4 {
89        &self.pidr4
90    }
91    #[doc = "0xfe0 - Peripheral ID 0"]
92    #[inline(always)]
93    pub const fn pidr0(&self) -> &Pidr0 {
94        &self.pidr0
95    }
96    #[doc = "0xfe4 - Peripheral ID 1"]
97    #[inline(always)]
98    pub const fn pidr1(&self) -> &Pidr1 {
99        &self.pidr1
100    }
101    #[doc = "0xfe8 - Peripheral ID 2"]
102    #[inline(always)]
103    pub const fn pidr2(&self) -> &Pidr2 {
104        &self.pidr2
105    }
106    #[doc = "0xfec - Peripheral ID 3"]
107    #[inline(always)]
108    pub const fn pidr3(&self) -> &Pidr3 {
109        &self.pidr3
110    }
111    #[doc = "0xff0 - Component ID 0"]
112    #[inline(always)]
113    pub const fn cidr0(&self) -> &Cidr0 {
114        &self.cidr0
115    }
116    #[doc = "0xff4 - Component ID 1"]
117    #[inline(always)]
118    pub const fn cidr1(&self) -> &Cidr1 {
119        &self.cidr1
120    }
121    #[doc = "0xff8 - Component ID 2"]
122    #[inline(always)]
123    pub const fn cidr2(&self) -> &Cidr2 {
124        &self.cidr2
125    }
126    #[doc = "0xffc - Component ID 3"]
127    #[inline(always)]
128    pub const fn cidr3(&self) -> &Cidr3 {
129        &self.cidr3
130    }
131}
132#[doc = "AHBNSPPPC0 (rw) register accessor: Non-Secure Unprivileged Access AHB slave Peripheral Protection Control #0\n\nYou can [`read`](crate::Reg::read) this register and get [`ahbnspppc0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ahbnspppc0::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@ahbnspppc0`]
133module"]
134#[doc(alias = "AHBNSPPPC0")]
135pub type Ahbnspppc0 = crate::Reg<ahbnspppc0::Ahbnspppc0Spec>;
136#[doc = "Non-Secure Unprivileged Access AHB slave Peripheral Protection Control #0"]
137pub mod ahbnspppc0;
138#[doc = "AHBNSPPPCEXP0 (rw) register accessor: Expansion 0 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control\n\nYou can [`read`](crate::Reg::read) this register and get [`ahbnspppcexp0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ahbnspppcexp0::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@ahbnspppcexp0`]
139module"]
140#[doc(alias = "AHBNSPPPCEXP0")]
141pub type Ahbnspppcexp0 = crate::Reg<ahbnspppcexp0::Ahbnspppcexp0Spec>;
142#[doc = "Expansion 0 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control"]
143pub mod ahbnspppcexp0;
144#[doc = "AHBNSPPPCEXP1 (rw) register accessor: Expansion 1 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control\n\nYou can [`read`](crate::Reg::read) this register and get [`ahbnspppcexp1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ahbnspppcexp1::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@ahbnspppcexp1`]
145module"]
146#[doc(alias = "AHBNSPPPCEXP1")]
147pub type Ahbnspppcexp1 = crate::Reg<ahbnspppcexp1::Ahbnspppcexp1Spec>;
148#[doc = "Expansion 1 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control"]
149pub mod ahbnspppcexp1;
150#[doc = "AHBNSPPPCEXP2 (rw) register accessor: Expansion 2 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control\n\nYou can [`read`](crate::Reg::read) this register and get [`ahbnspppcexp2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ahbnspppcexp2::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@ahbnspppcexp2`]
151module"]
152#[doc(alias = "AHBNSPPPCEXP2")]
153pub type Ahbnspppcexp2 = crate::Reg<ahbnspppcexp2::Ahbnspppcexp2Spec>;
154#[doc = "Expansion 2 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control"]
155pub mod ahbnspppcexp2;
156#[doc = "AHBNSPPPCEXP3 (rw) register accessor: Expansion 3 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control\n\nYou can [`read`](crate::Reg::read) this register and get [`ahbnspppcexp3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ahbnspppcexp3::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@ahbnspppcexp3`]
157module"]
158#[doc(alias = "AHBNSPPPCEXP3")]
159pub type Ahbnspppcexp3 = crate::Reg<ahbnspppcexp3::Ahbnspppcexp3Spec>;
160#[doc = "Expansion 3 Non_Secure Unprivileged Access AHB slave Peripheral Protection Control"]
161pub mod ahbnspppcexp3;
162#[doc = "APBNSPPPC0 (rw) register accessor: Non-Secure Unprivileged Access APB slave Peripheral Protection Control 0\n\nYou can [`read`](crate::Reg::read) this register and get [`apbnspppc0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apbnspppc0::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@apbnspppc0`]
163module"]
164#[doc(alias = "APBNSPPPC0")]
165pub type Apbnspppc0 = crate::Reg<apbnspppc0::Apbnspppc0Spec>;
166#[doc = "Non-Secure Unprivileged Access APB slave Peripheral Protection Control 0"]
167pub mod apbnspppc0;
168#[doc = "APBNSPPPC1 (rw) register accessor: Non-Secure Unprivileged Access APB slave Peripheral Protection Control 1\n\nYou can [`read`](crate::Reg::read) this register and get [`apbnspppc1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apbnspppc1::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@apbnspppc1`]
169module"]
170#[doc(alias = "APBNSPPPC1")]
171pub type Apbnspppc1 = crate::Reg<apbnspppc1::Apbnspppc1Spec>;
172#[doc = "Non-Secure Unprivileged Access APB slave Peripheral Protection Control 1"]
173pub mod apbnspppc1;
174#[doc = "APBNSPPPCEXP0 (rw) register accessor: Expansion 0 Non_Secure Unprivileged Access APB slave Peripheral Protection Control\n\nYou can [`read`](crate::Reg::read) this register and get [`apbnspppcexp0::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apbnspppcexp0::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@apbnspppcexp0`]
175module"]
176#[doc(alias = "APBNSPPPCEXP0")]
177pub type Apbnspppcexp0 = crate::Reg<apbnspppcexp0::Apbnspppcexp0Spec>;
178#[doc = "Expansion 0 Non_Secure Unprivileged Access APB slave Peripheral Protection Control"]
179pub mod apbnspppcexp0;
180#[doc = "APBNSPPPCEXP1 (rw) register accessor: Expansion 1 Non_Secure Unprivileged Access APB slave Peripheral Protection Control\n\nYou can [`read`](crate::Reg::read) this register and get [`apbnspppcexp1::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apbnspppcexp1::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@apbnspppcexp1`]
181module"]
182#[doc(alias = "APBNSPPPCEXP1")]
183pub type Apbnspppcexp1 = crate::Reg<apbnspppcexp1::Apbnspppcexp1Spec>;
184#[doc = "Expansion 1 Non_Secure Unprivileged Access APB slave Peripheral Protection Control"]
185pub mod apbnspppcexp1;
186#[doc = "APBNSPPPCEXP2 (rw) register accessor: Expansion 2 Non_Secure Unprivileged Access APB slave Peripheral Protection Control\n\nYou can [`read`](crate::Reg::read) this register and get [`apbnspppcexp2::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apbnspppcexp2::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@apbnspppcexp2`]
187module"]
188#[doc(alias = "APBNSPPPCEXP2")]
189pub type Apbnspppcexp2 = crate::Reg<apbnspppcexp2::Apbnspppcexp2Spec>;
190#[doc = "Expansion 2 Non_Secure Unprivileged Access APB slave Peripheral Protection Control"]
191pub mod apbnspppcexp2;
192#[doc = "APBNSPPPCEXP3 (rw) register accessor: Expansion 3 Non_Secure Unprivileged Access APB slave Peripheral Protection Control\n\nYou can [`read`](crate::Reg::read) this register and get [`apbnspppcexp3::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apbnspppcexp3::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@apbnspppcexp3`]
193module"]
194#[doc(alias = "APBNSPPPCEXP3")]
195pub type Apbnspppcexp3 = crate::Reg<apbnspppcexp3::Apbnspppcexp3Spec>;
196#[doc = "Expansion 3 Non_Secure Unprivileged Access APB slave Peripheral Protection Control"]
197pub mod apbnspppcexp3;
198#[doc = "PIDR4 (r) register accessor: Peripheral ID 4\n\nYou can [`read`](crate::Reg::read) this register and get [`pidr4::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pidr4`]
199module"]
200#[doc(alias = "PIDR4")]
201pub type Pidr4 = crate::Reg<pidr4::Pidr4Spec>;
202#[doc = "Peripheral ID 4"]
203pub mod pidr4;
204#[doc = "PIDR0 (r) register accessor: Peripheral ID 0\n\nYou can [`read`](crate::Reg::read) this register and get [`pidr0::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pidr0`]
205module"]
206#[doc(alias = "PIDR0")]
207pub type Pidr0 = crate::Reg<pidr0::Pidr0Spec>;
208#[doc = "Peripheral ID 0"]
209pub mod pidr0;
210#[doc = "PIDR1 (r) register accessor: Peripheral ID 1\n\nYou can [`read`](crate::Reg::read) this register and get [`pidr1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pidr1`]
211module"]
212#[doc(alias = "PIDR1")]
213pub type Pidr1 = crate::Reg<pidr1::Pidr1Spec>;
214#[doc = "Peripheral ID 1"]
215pub mod pidr1;
216#[doc = "PIDR2 (r) register accessor: Peripheral ID 2\n\nYou can [`read`](crate::Reg::read) this register and get [`pidr2::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pidr2`]
217module"]
218#[doc(alias = "PIDR2")]
219pub type Pidr2 = crate::Reg<pidr2::Pidr2Spec>;
220#[doc = "Peripheral ID 2"]
221pub mod pidr2;
222#[doc = "PIDR3 (r) register accessor: Peripheral ID 3\n\nYou can [`read`](crate::Reg::read) this register and get [`pidr3::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@pidr3`]
223module"]
224#[doc(alias = "PIDR3")]
225pub type Pidr3 = crate::Reg<pidr3::Pidr3Spec>;
226#[doc = "Peripheral ID 3"]
227pub mod pidr3;
228#[doc = "CIDR0 (r) register accessor: Component ID 0\n\nYou can [`read`](crate::Reg::read) this register and get [`cidr0::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cidr0`]
229module"]
230#[doc(alias = "CIDR0")]
231pub type Cidr0 = crate::Reg<cidr0::Cidr0Spec>;
232#[doc = "Component ID 0"]
233pub mod cidr0;
234#[doc = "CIDR1 (r) register accessor: Component ID 1\n\nYou can [`read`](crate::Reg::read) this register and get [`cidr1::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cidr1`]
235module"]
236#[doc(alias = "CIDR1")]
237pub type Cidr1 = crate::Reg<cidr1::Cidr1Spec>;
238#[doc = "Component ID 1"]
239pub mod cidr1;
240#[doc = "CIDR2 (r) register accessor: Component ID 2\n\nYou can [`read`](crate::Reg::read) this register and get [`cidr2::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cidr2`]
241module"]
242#[doc(alias = "CIDR2")]
243pub type Cidr2 = crate::Reg<cidr2::Cidr2Spec>;
244#[doc = "Component ID 2"]
245pub mod cidr2;
246#[doc = "CIDR3 (r) register accessor: Component ID 3\n\nYou can [`read`](crate::Reg::read) this register and get [`cidr3::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@cidr3`]
247module"]
248#[doc(alias = "CIDR3")]
249pub type Cidr3 = crate::Reg<cidr3::Cidr3Spec>;
250#[doc = "Component ID 3"]
251pub mod cidr3;