1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
#[doc = r"Register block"]
#[repr(C)]
pub struct RegisterBlock {
    sspcr0: SSPCR0,
    sspcr1: SSPCR1,
    sspdr: SSPDR,
    sspsr: SSPSR,
    sspcpsr: SSPCPSR,
    sspimsc: SSPIMSC,
    sspris: SSPRIS,
    sspmis: SSPMIS,
    sspicr: SSPICR,
    sspdmacr: SSPDMACR,
    _reserved10: [u8; 0x0fb8],
    sspperiphid0: SSPPERIPHID0,
    sspperiphid1: SSPPERIPHID1,
    sspperiphid2: SSPPERIPHID2,
    sspperiphid3: SSPPERIPHID3,
    ssppcellid0: SSPPCELLID0,
    ssppcellid1: SSPPCELLID1,
    ssppcellid2: SSPPCELLID2,
    ssppcellid3: SSPPCELLID3,
}
impl RegisterBlock {
    #[doc = "0x00 - Control register 0, SSPCR0 on page 3-4"]
    #[inline(always)]
    pub const fn sspcr0(&self) -> &SSPCR0 {
        &self.sspcr0
    }
    #[doc = "0x04 - Control register 1, SSPCR1 on page 3-5"]
    #[inline(always)]
    pub const fn sspcr1(&self) -> &SSPCR1 {
        &self.sspcr1
    }
    #[doc = "0x08 - Data register, SSPDR on page 3-6"]
    #[inline(always)]
    pub const fn sspdr(&self) -> &SSPDR {
        &self.sspdr
    }
    #[doc = "0x0c - Status register, SSPSR on page 3-7"]
    #[inline(always)]
    pub const fn sspsr(&self) -> &SSPSR {
        &self.sspsr
    }
    #[doc = "0x10 - Clock prescale register, SSPCPSR on page 3-8"]
    #[inline(always)]
    pub const fn sspcpsr(&self) -> &SSPCPSR {
        &self.sspcpsr
    }
    #[doc = "0x14 - Interrupt mask set or clear register, SSPIMSC on page 3-9"]
    #[inline(always)]
    pub const fn sspimsc(&self) -> &SSPIMSC {
        &self.sspimsc
    }
    #[doc = "0x18 - Raw interrupt status register, SSPRIS on page 3-10"]
    #[inline(always)]
    pub const fn sspris(&self) -> &SSPRIS {
        &self.sspris
    }
    #[doc = "0x1c - Masked interrupt status register, SSPMIS on page 3-11"]
    #[inline(always)]
    pub const fn sspmis(&self) -> &SSPMIS {
        &self.sspmis
    }
    #[doc = "0x20 - Interrupt clear register, SSPICR on page 3-11"]
    #[inline(always)]
    pub const fn sspicr(&self) -> &SSPICR {
        &self.sspicr
    }
    #[doc = "0x24 - DMA control register, SSPDMACR on page 3-12"]
    #[inline(always)]
    pub const fn sspdmacr(&self) -> &SSPDMACR {
        &self.sspdmacr
    }
    #[doc = "0xfe0 - Peripheral identification registers, SSPPeriphID0-3 on page 3-13"]
    #[inline(always)]
    pub const fn sspperiphid0(&self) -> &SSPPERIPHID0 {
        &self.sspperiphid0
    }
    #[doc = "0xfe4 - Peripheral identification registers, SSPPeriphID0-3 on page 3-13"]
    #[inline(always)]
    pub const fn sspperiphid1(&self) -> &SSPPERIPHID1 {
        &self.sspperiphid1
    }
    #[doc = "0xfe8 - Peripheral identification registers, SSPPeriphID0-3 on page 3-13"]
    #[inline(always)]
    pub const fn sspperiphid2(&self) -> &SSPPERIPHID2 {
        &self.sspperiphid2
    }
    #[doc = "0xfec - Peripheral identification registers, SSPPeriphID0-3 on page 3-13"]
    #[inline(always)]
    pub const fn sspperiphid3(&self) -> &SSPPERIPHID3 {
        &self.sspperiphid3
    }
    #[doc = "0xff0 - PrimeCell identification registers, SSPPCellID0-3 on page 3-16"]
    #[inline(always)]
    pub const fn ssppcellid0(&self) -> &SSPPCELLID0 {
        &self.ssppcellid0
    }
    #[doc = "0xff4 - PrimeCell identification registers, SSPPCellID0-3 on page 3-16"]
    #[inline(always)]
    pub const fn ssppcellid1(&self) -> &SSPPCELLID1 {
        &self.ssppcellid1
    }
    #[doc = "0xff8 - PrimeCell identification registers, SSPPCellID0-3 on page 3-16"]
    #[inline(always)]
    pub const fn ssppcellid2(&self) -> &SSPPCELLID2 {
        &self.ssppcellid2
    }
    #[doc = "0xffc - PrimeCell identification registers, SSPPCellID0-3 on page 3-16"]
    #[inline(always)]
    pub const fn ssppcellid3(&self) -> &SSPPCELLID3 {
        &self.ssppcellid3
    }
}
#[doc = "SSPCR0 (rw) register accessor: Control register 0, SSPCR0 on page 3-4  

You can [`read`](crate::generic::Reg::read) this register and get [`sspcr0::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sspcr0::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspcr0`]
module"]
pub type SSPCR0 = crate::Reg<sspcr0::SSPCR0_SPEC>;
#[doc = "Control register 0, SSPCR0 on page 3-4"]
pub mod sspcr0;
#[doc = "SSPCR1 (rw) register accessor: Control register 1, SSPCR1 on page 3-5  

You can [`read`](crate::generic::Reg::read) this register and get [`sspcr1::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sspcr1::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspcr1`]
module"]
pub type SSPCR1 = crate::Reg<sspcr1::SSPCR1_SPEC>;
#[doc = "Control register 1, SSPCR1 on page 3-5"]
pub mod sspcr1;
#[doc = "SSPDR (rw) register accessor: Data register, SSPDR on page 3-6  

You can [`read`](crate::generic::Reg::read) this register and get [`sspdr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sspdr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspdr`]
module"]
pub type SSPDR = crate::Reg<sspdr::SSPDR_SPEC>;
#[doc = "Data register, SSPDR on page 3-6"]
pub mod sspdr;
#[doc = "SSPSR (r) register accessor: Status register, SSPSR on page 3-7  

You can [`read`](crate::generic::Reg::read) this register and get [`sspsr::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspsr`]
module"]
pub type SSPSR = crate::Reg<sspsr::SSPSR_SPEC>;
#[doc = "Status register, SSPSR on page 3-7"]
pub mod sspsr;
#[doc = "SSPCPSR (rw) register accessor: Clock prescale register, SSPCPSR on page 3-8  

You can [`read`](crate::generic::Reg::read) this register and get [`sspcpsr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sspcpsr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspcpsr`]
module"]
pub type SSPCPSR = crate::Reg<sspcpsr::SSPCPSR_SPEC>;
#[doc = "Clock prescale register, SSPCPSR on page 3-8"]
pub mod sspcpsr;
#[doc = "SSPIMSC (rw) register accessor: Interrupt mask set or clear register, SSPIMSC on page 3-9  

You can [`read`](crate::generic::Reg::read) this register and get [`sspimsc::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sspimsc::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspimsc`]
module"]
pub type SSPIMSC = crate::Reg<sspimsc::SSPIMSC_SPEC>;
#[doc = "Interrupt mask set or clear register, SSPIMSC on page 3-9"]
pub mod sspimsc;
#[doc = "SSPRIS (r) register accessor: Raw interrupt status register, SSPRIS on page 3-10  

You can [`read`](crate::generic::Reg::read) this register and get [`sspris::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspris`]
module"]
pub type SSPRIS = crate::Reg<sspris::SSPRIS_SPEC>;
#[doc = "Raw interrupt status register, SSPRIS on page 3-10"]
pub mod sspris;
#[doc = "SSPMIS (r) register accessor: Masked interrupt status register, SSPMIS on page 3-11  

You can [`read`](crate::generic::Reg::read) this register and get [`sspmis::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspmis`]
module"]
pub type SSPMIS = crate::Reg<sspmis::SSPMIS_SPEC>;
#[doc = "Masked interrupt status register, SSPMIS on page 3-11"]
pub mod sspmis;
#[doc = "SSPICR (rw) register accessor: Interrupt clear register, SSPICR on page 3-11  

You can [`read`](crate::generic::Reg::read) this register and get [`sspicr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sspicr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspicr`]
module"]
pub type SSPICR = crate::Reg<sspicr::SSPICR_SPEC>;
#[doc = "Interrupt clear register, SSPICR on page 3-11"]
pub mod sspicr;
#[doc = "SSPDMACR (rw) register accessor: DMA control register, SSPDMACR on page 3-12  

You can [`read`](crate::generic::Reg::read) this register and get [`sspdmacr::R`].  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`sspdmacr::W`]. You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspdmacr`]
module"]
pub type SSPDMACR = crate::Reg<sspdmacr::SSPDMACR_SPEC>;
#[doc = "DMA control register, SSPDMACR on page 3-12"]
pub mod sspdmacr;
#[doc = "SSPPERIPHID0 (r) register accessor: Peripheral identification registers, SSPPeriphID0-3 on page 3-13  

You can [`read`](crate::generic::Reg::read) this register and get [`sspperiphid0::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspperiphid0`]
module"]
pub type SSPPERIPHID0 = crate::Reg<sspperiphid0::SSPPERIPHID0_SPEC>;
#[doc = "Peripheral identification registers, SSPPeriphID0-3 on page 3-13"]
pub mod sspperiphid0;
#[doc = "SSPPERIPHID1 (r) register accessor: Peripheral identification registers, SSPPeriphID0-3 on page 3-13  

You can [`read`](crate::generic::Reg::read) this register and get [`sspperiphid1::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspperiphid1`]
module"]
pub type SSPPERIPHID1 = crate::Reg<sspperiphid1::SSPPERIPHID1_SPEC>;
#[doc = "Peripheral identification registers, SSPPeriphID0-3 on page 3-13"]
pub mod sspperiphid1;
#[doc = "SSPPERIPHID2 (r) register accessor: Peripheral identification registers, SSPPeriphID0-3 on page 3-13  

You can [`read`](crate::generic::Reg::read) this register and get [`sspperiphid2::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspperiphid2`]
module"]
pub type SSPPERIPHID2 = crate::Reg<sspperiphid2::SSPPERIPHID2_SPEC>;
#[doc = "Peripheral identification registers, SSPPeriphID0-3 on page 3-13"]
pub mod sspperiphid2;
#[doc = "SSPPERIPHID3 (r) register accessor: Peripheral identification registers, SSPPeriphID0-3 on page 3-13  

You can [`read`](crate::generic::Reg::read) this register and get [`sspperiphid3::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@sspperiphid3`]
module"]
pub type SSPPERIPHID3 = crate::Reg<sspperiphid3::SSPPERIPHID3_SPEC>;
#[doc = "Peripheral identification registers, SSPPeriphID0-3 on page 3-13"]
pub mod sspperiphid3;
#[doc = "SSPPCELLID0 (r) register accessor: PrimeCell identification registers, SSPPCellID0-3 on page 3-16  

You can [`read`](crate::generic::Reg::read) this register and get [`ssppcellid0::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@ssppcellid0`]
module"]
pub type SSPPCELLID0 = crate::Reg<ssppcellid0::SSPPCELLID0_SPEC>;
#[doc = "PrimeCell identification registers, SSPPCellID0-3 on page 3-16"]
pub mod ssppcellid0;
#[doc = "SSPPCELLID1 (r) register accessor: PrimeCell identification registers, SSPPCellID0-3 on page 3-16  

You can [`read`](crate::generic::Reg::read) this register and get [`ssppcellid1::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@ssppcellid1`]
module"]
pub type SSPPCELLID1 = crate::Reg<ssppcellid1::SSPPCELLID1_SPEC>;
#[doc = "PrimeCell identification registers, SSPPCellID0-3 on page 3-16"]
pub mod ssppcellid1;
#[doc = "SSPPCELLID2 (r) register accessor: PrimeCell identification registers, SSPPCellID0-3 on page 3-16  

You can [`read`](crate::generic::Reg::read) this register and get [`ssppcellid2::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@ssppcellid2`]
module"]
pub type SSPPCELLID2 = crate::Reg<ssppcellid2::SSPPCELLID2_SPEC>;
#[doc = "PrimeCell identification registers, SSPPCellID0-3 on page 3-16"]
pub mod ssppcellid2;
#[doc = "SSPPCELLID3 (r) register accessor: PrimeCell identification registers, SSPPCellID0-3 on page 3-16  

You can [`read`](crate::generic::Reg::read) this register and get [`ssppcellid3::R`].  See [API](https://docs.rs/svd2rust/#read--modify--write-api).  

For information about available fields see [`mod@ssppcellid3`]
module"]
pub type SSPPCELLID3 = crate::Reg<ssppcellid3::SSPPCELLID3_SPEC>;
#[doc = "PrimeCell identification registers, SSPPCellID0-3 on page 3-16"]
pub mod ssppcellid3;