Skip to main content

nrf91/
spu_s.rs

1#[doc = r" Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4    _reserved0: [u8; 256usize],
5    #[doc = "0x100 - A security violation has been detected for the RAM memory space"]
6    pub events_ramaccerr: EVENTS_RAMACCERR,
7    #[doc = "0x104 - A security violation has been detected for the flash memory space"]
8    pub events_flashaccerr: EVENTS_FLASHACCERR,
9    #[doc = "0x108 - A security violation has been detected on one or several peripherals"]
10    pub events_periphaccerr: EVENTS_PERIPHACCERR,
11    _reserved1: [u8; 116usize],
12    #[doc = "0x180 - Publish configuration for event RAMACCERR"]
13    pub publish_ramaccerr: PUBLISH_RAMACCERR,
14    #[doc = "0x184 - Publish configuration for event FLASHACCERR"]
15    pub publish_flashaccerr: PUBLISH_FLASHACCERR,
16    #[doc = "0x188 - Publish configuration for event PERIPHACCERR"]
17    pub publish_periphaccerr: PUBLISH_PERIPHACCERR,
18    _reserved2: [u8; 372usize],
19    #[doc = "0x300 - Enable or disable interrupt"]
20    pub inten: INTEN,
21    #[doc = "0x304 - Enable interrupt"]
22    pub intenset: INTENSET,
23    #[doc = "0x308 - Disable interrupt"]
24    pub intenclr: INTENCLR,
25    _reserved3: [u8; 244usize],
26    #[doc = "0x400 - Show implemented features for the current device"]
27    pub cap: CAP,
28    _reserved4: [u8; 60usize],
29    #[doc = "0x440 - Unspecified"]
30    pub extdomain: [EXTDOMAIN; 1],
31    _reserved5: [u8; 60usize],
32    #[doc = "0x480 - Unspecified"]
33    pub dppi: [DPPI; 1],
34    _reserved6: [u8; 56usize],
35    #[doc = "0x4c0 - Unspecified"]
36    pub gpioport: [GPIOPORT; 1],
37    _reserved7: [u8; 56usize],
38    #[doc = "0x500 - Unspecified"]
39    pub flashnsc: [FLASHNSC; 2],
40    _reserved8: [u8; 48usize],
41    #[doc = "0x540 - Unspecified"]
42    pub ramnsc: [RAMNSC; 2],
43    _reserved9: [u8; 176usize],
44    #[doc = "0x600 - Unspecified"]
45    pub flashregion: [FLASHREGION; 32],
46    _reserved10: [u8; 128usize],
47    #[doc = "0x700 - Unspecified"]
48    pub ramregion: [RAMREGION; 32],
49    _reserved11: [u8; 128usize],
50    #[doc = "0x800 - Unspecified"]
51    pub periphid: [PERIPHID; 67],
52}
53#[doc = r" Register block"]
54#[repr(C)]
55pub struct EXTDOMAIN {
56    #[doc = "0x00 - Description cluster: Access for bus access generated from the external domain n List capabilities of the external domain n"]
57    pub perm: self::extdomain::PERM,
58}
59#[doc = r" Register block"]
60#[doc = "Unspecified"]
61pub mod extdomain;
62#[doc = r" Register block"]
63#[repr(C)]
64pub struct DPPI {
65    #[doc = "0x00 - Description cluster: Select between secure and non-secure attribute for the DPPI channels."]
66    pub perm: self::dppi::PERM,
67    #[doc = "0x04 - Description cluster: Prevent further modification of the corresponding PERM register"]
68    pub lock: self::dppi::LOCK,
69}
70#[doc = r" Register block"]
71#[doc = "Unspecified"]
72pub mod dppi;
73#[doc = r" Register block"]
74#[repr(C)]
75pub struct GPIOPORT {
76    #[doc = "0x00 - Description cluster: Select between secure and non-secure attribute for pins 0 to 31 of port n."]
77    pub perm: self::gpioport::PERM,
78    #[doc = "0x04 - Description cluster: Prevent further modification of the corresponding PERM register"]
79    pub lock: self::gpioport::LOCK,
80}
81#[doc = r" Register block"]
82#[doc = "Unspecified"]
83pub mod gpioport;
84#[doc = r" Register block"]
85#[repr(C)]
86pub struct FLASHNSC {
87    #[doc = "0x00 - Description cluster: Define which flash region can contain the non-secure callable (NSC) region n"]
88    pub region: self::flashnsc::REGION,
89    #[doc = "0x04 - Description cluster: Define the size of the non-secure callable (NSC) region n"]
90    pub size: self::flashnsc::SIZE,
91}
92#[doc = r" Register block"]
93#[doc = "Unspecified"]
94pub mod flashnsc;
95#[doc = r" Register block"]
96#[repr(C)]
97pub struct RAMNSC {
98    #[doc = "0x00 - Description cluster: Define which RAM region can contain the non-secure callable (NSC) region n"]
99    pub region: self::ramnsc::REGION,
100    #[doc = "0x04 - Description cluster: Define the size of the non-secure callable (NSC) region n"]
101    pub size: self::ramnsc::SIZE,
102}
103#[doc = r" Register block"]
104#[doc = "Unspecified"]
105pub mod ramnsc;
106#[doc = r" Register block"]
107#[repr(C)]
108pub struct FLASHREGION {
109    #[doc = "0x00 - Description cluster: Access permissions for flash region n"]
110    pub perm: self::flashregion::PERM,
111}
112#[doc = r" Register block"]
113#[doc = "Unspecified"]
114pub mod flashregion;
115#[doc = r" Register block"]
116#[repr(C)]
117pub struct RAMREGION {
118    #[doc = "0x00 - Description cluster: Access permissions for RAM region n"]
119    pub perm: self::ramregion::PERM,
120}
121#[doc = r" Register block"]
122#[doc = "Unspecified"]
123pub mod ramregion;
124#[doc = r" Register block"]
125#[repr(C)]
126pub struct PERIPHID {
127    #[doc = "0x00 - Description cluster: List capabilities and access permissions for the peripheral with ID n"]
128    pub perm: self::periphid::PERM,
129}
130#[doc = r" Register block"]
131#[doc = "Unspecified"]
132pub mod periphid;
133#[doc = "A security violation has been detected for the RAM memory space"]
134pub struct EVENTS_RAMACCERR {
135    register: ::vcell::VolatileCell<u32>,
136}
137#[doc = "A security violation has been detected for the RAM memory space"]
138pub mod events_ramaccerr;
139#[doc = "A security violation has been detected for the flash memory space"]
140pub struct EVENTS_FLASHACCERR {
141    register: ::vcell::VolatileCell<u32>,
142}
143#[doc = "A security violation has been detected for the flash memory space"]
144pub mod events_flashaccerr;
145#[doc = "A security violation has been detected on one or several peripherals"]
146pub struct EVENTS_PERIPHACCERR {
147    register: ::vcell::VolatileCell<u32>,
148}
149#[doc = "A security violation has been detected on one or several peripherals"]
150pub mod events_periphaccerr;
151#[doc = "Publish configuration for event RAMACCERR"]
152pub struct PUBLISH_RAMACCERR {
153    register: ::vcell::VolatileCell<u32>,
154}
155#[doc = "Publish configuration for event RAMACCERR"]
156pub mod publish_ramaccerr;
157#[doc = "Publish configuration for event FLASHACCERR"]
158pub struct PUBLISH_FLASHACCERR {
159    register: ::vcell::VolatileCell<u32>,
160}
161#[doc = "Publish configuration for event FLASHACCERR"]
162pub mod publish_flashaccerr;
163#[doc = "Publish configuration for event PERIPHACCERR"]
164pub struct PUBLISH_PERIPHACCERR {
165    register: ::vcell::VolatileCell<u32>,
166}
167#[doc = "Publish configuration for event PERIPHACCERR"]
168pub mod publish_periphaccerr;
169#[doc = "Enable or disable interrupt"]
170pub struct INTEN {
171    register: ::vcell::VolatileCell<u32>,
172}
173#[doc = "Enable or disable interrupt"]
174pub mod inten;
175#[doc = "Enable interrupt"]
176pub struct INTENSET {
177    register: ::vcell::VolatileCell<u32>,
178}
179#[doc = "Enable interrupt"]
180pub mod intenset;
181#[doc = "Disable interrupt"]
182pub struct INTENCLR {
183    register: ::vcell::VolatileCell<u32>,
184}
185#[doc = "Disable interrupt"]
186pub mod intenclr;
187#[doc = "Show implemented features for the current device"]
188pub struct CAP {
189    register: ::vcell::VolatileCell<u32>,
190}
191#[doc = "Show implemented features for the current device"]
192pub mod cap;