esp8266/spi0/
spi_slave1.rs1#[doc = "Register `SPI_SLAVE1` reader"]
2pub struct R(crate::R<SPI_SLAVE1_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SPI_SLAVE1_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SPI_SLAVE1_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SPI_SLAVE1_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `SPI_SLAVE1` writer"]
17pub struct W(crate::W<SPI_SLAVE1_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<SPI_SLAVE1_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<SPI_SLAVE1_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<SPI_SLAVE1_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `slv_status_bitlen` reader - In the slave mode, it is the length in bits for \"write-status\" and \"read-status\" operations. The register valueshall be (bit_num-1)"]
38pub struct SLV_STATUS_BITLEN_R(crate::FieldReader<u8, u8>);
39impl SLV_STATUS_BITLEN_R {
40 #[inline(always)]
41 pub(crate) fn new(bits: u8) -> Self {
42 SLV_STATUS_BITLEN_R(crate::FieldReader::new(bits))
43 }
44}
45impl core::ops::Deref for SLV_STATUS_BITLEN_R {
46 type Target = crate::FieldReader<u8, u8>;
47 #[inline(always)]
48 fn deref(&self) -> &Self::Target {
49 &self.0
50 }
51}
52#[doc = "Field `slv_status_bitlen` writer - In the slave mode, it is the length in bits for \"write-status\" and \"read-status\" operations. The register valueshall be (bit_num-1)"]
53pub struct SLV_STATUS_BITLEN_W<'a> {
54 w: &'a mut W,
55}
56impl<'a> SLV_STATUS_BITLEN_W<'a> {
57 #[doc = r"Writes raw bits to the field"]
58 #[inline(always)]
59 pub unsafe fn bits(self, value: u8) -> &'a mut W {
60 self.w.bits = (self.w.bits & !(0x1f << 27)) | ((value as u32 & 0x1f) << 27);
61 self.w
62 }
63}
64#[doc = "Field `slv_buf_bitlen` reader - In the slave mode, it is the length in bits for \"write-buffer\" and \"read-buffer\" operations. The register value shallbe (bit_num-1)"]
65pub struct SLV_BUF_BITLEN_R(crate::FieldReader<u16, u16>);
66impl SLV_BUF_BITLEN_R {
67 #[inline(always)]
68 pub(crate) fn new(bits: u16) -> Self {
69 SLV_BUF_BITLEN_R(crate::FieldReader::new(bits))
70 }
71}
72impl core::ops::Deref for SLV_BUF_BITLEN_R {
73 type Target = crate::FieldReader<u16, u16>;
74 #[inline(always)]
75 fn deref(&self) -> &Self::Target {
76 &self.0
77 }
78}
79#[doc = "Field `slv_buf_bitlen` writer - In the slave mode, it is the length in bits for \"write-buffer\" and \"read-buffer\" operations. The register value shallbe (bit_num-1)"]
80pub struct SLV_BUF_BITLEN_W<'a> {
81 w: &'a mut W,
82}
83impl<'a> SLV_BUF_BITLEN_W<'a> {
84 #[doc = r"Writes raw bits to the field"]
85 #[inline(always)]
86 pub unsafe fn bits(self, value: u16) -> &'a mut W {
87 self.w.bits = (self.w.bits & !(0x01ff << 16)) | ((value as u32 & 0x01ff) << 16);
88 self.w
89 }
90}
91#[doc = "Field `slv_rd_addr_bitlen` reader - In the slave mode, it is the address length in bits for \"read-buffer\" operation. The register value shall be(bit_num-1)"]
92pub struct SLV_RD_ADDR_BITLEN_R(crate::FieldReader<u8, u8>);
93impl SLV_RD_ADDR_BITLEN_R {
94 #[inline(always)]
95 pub(crate) fn new(bits: u8) -> Self {
96 SLV_RD_ADDR_BITLEN_R(crate::FieldReader::new(bits))
97 }
98}
99impl core::ops::Deref for SLV_RD_ADDR_BITLEN_R {
100 type Target = crate::FieldReader<u8, u8>;
101 #[inline(always)]
102 fn deref(&self) -> &Self::Target {
103 &self.0
104 }
105}
106#[doc = "Field `slv_rd_addr_bitlen` writer - In the slave mode, it is the address length in bits for \"read-buffer\" operation. The register value shall be(bit_num-1)"]
107pub struct SLV_RD_ADDR_BITLEN_W<'a> {
108 w: &'a mut W,
109}
110impl<'a> SLV_RD_ADDR_BITLEN_W<'a> {
111 #[doc = r"Writes raw bits to the field"]
112 #[inline(always)]
113 pub unsafe fn bits(self, value: u8) -> &'a mut W {
114 self.w.bits = (self.w.bits & !(0x3f << 10)) | ((value as u32 & 0x3f) << 10);
115 self.w
116 }
117}
118#[doc = "Field `slv_wr_addr_bitlen` reader - In the slave mode, it is the address length in bits for \"write-buffer\" operation. The register value shall be(bit_num-1)"]
119pub struct SLV_WR_ADDR_BITLEN_R(crate::FieldReader<u8, u8>);
120impl SLV_WR_ADDR_BITLEN_R {
121 #[inline(always)]
122 pub(crate) fn new(bits: u8) -> Self {
123 SLV_WR_ADDR_BITLEN_R(crate::FieldReader::new(bits))
124 }
125}
126impl core::ops::Deref for SLV_WR_ADDR_BITLEN_R {
127 type Target = crate::FieldReader<u8, u8>;
128 #[inline(always)]
129 fn deref(&self) -> &Self::Target {
130 &self.0
131 }
132}
133#[doc = "Field `slv_wr_addr_bitlen` writer - In the slave mode, it is the address length in bits for \"write-buffer\" operation. The register value shall be(bit_num-1)"]
134pub struct SLV_WR_ADDR_BITLEN_W<'a> {
135 w: &'a mut W,
136}
137impl<'a> SLV_WR_ADDR_BITLEN_W<'a> {
138 #[doc = r"Writes raw bits to the field"]
139 #[inline(always)]
140 pub unsafe fn bits(self, value: u8) -> &'a mut W {
141 self.w.bits = (self.w.bits & !(0x3f << 4)) | ((value as u32 & 0x3f) << 4);
142 self.w
143 }
144}
145#[doc = "Field `slv_wrsta_dummy_en` reader - In the slave mode, it is the enable bit of \"dummy\" phase for \"write-status\" operations."]
146pub struct SLV_WRSTA_DUMMY_EN_R(crate::FieldReader<bool, bool>);
147impl SLV_WRSTA_DUMMY_EN_R {
148 #[inline(always)]
149 pub(crate) fn new(bits: bool) -> Self {
150 SLV_WRSTA_DUMMY_EN_R(crate::FieldReader::new(bits))
151 }
152}
153impl core::ops::Deref for SLV_WRSTA_DUMMY_EN_R {
154 type Target = crate::FieldReader<bool, bool>;
155 #[inline(always)]
156 fn deref(&self) -> &Self::Target {
157 &self.0
158 }
159}
160#[doc = "Field `slv_wrsta_dummy_en` writer - In the slave mode, it is the enable bit of \"dummy\" phase for \"write-status\" operations."]
161pub struct SLV_WRSTA_DUMMY_EN_W<'a> {
162 w: &'a mut W,
163}
164impl<'a> SLV_WRSTA_DUMMY_EN_W<'a> {
165 #[doc = r"Sets the field bit"]
166 #[inline(always)]
167 pub fn set_bit(self) -> &'a mut W {
168 self.bit(true)
169 }
170 #[doc = r"Clears the field bit"]
171 #[inline(always)]
172 pub fn clear_bit(self) -> &'a mut W {
173 self.bit(false)
174 }
175 #[doc = r"Writes raw bits to the field"]
176 #[inline(always)]
177 pub fn bit(self, value: bool) -> &'a mut W {
178 self.w.bits = (self.w.bits & !(1 << 3)) | ((value as u32 & 1) << 3);
179 self.w
180 }
181}
182#[doc = "Field `slv_rdsta_dummy_en` reader - In the slave mode, it is the enable bit of \"dummy\" phase for \"read-status\" operations."]
183pub struct SLV_RDSTA_DUMMY_EN_R(crate::FieldReader<bool, bool>);
184impl SLV_RDSTA_DUMMY_EN_R {
185 #[inline(always)]
186 pub(crate) fn new(bits: bool) -> Self {
187 SLV_RDSTA_DUMMY_EN_R(crate::FieldReader::new(bits))
188 }
189}
190impl core::ops::Deref for SLV_RDSTA_DUMMY_EN_R {
191 type Target = crate::FieldReader<bool, bool>;
192 #[inline(always)]
193 fn deref(&self) -> &Self::Target {
194 &self.0
195 }
196}
197#[doc = "Field `slv_rdsta_dummy_en` writer - In the slave mode, it is the enable bit of \"dummy\" phase for \"read-status\" operations."]
198pub struct SLV_RDSTA_DUMMY_EN_W<'a> {
199 w: &'a mut W,
200}
201impl<'a> SLV_RDSTA_DUMMY_EN_W<'a> {
202 #[doc = r"Sets the field bit"]
203 #[inline(always)]
204 pub fn set_bit(self) -> &'a mut W {
205 self.bit(true)
206 }
207 #[doc = r"Clears the field bit"]
208 #[inline(always)]
209 pub fn clear_bit(self) -> &'a mut W {
210 self.bit(false)
211 }
212 #[doc = r"Writes raw bits to the field"]
213 #[inline(always)]
214 pub fn bit(self, value: bool) -> &'a mut W {
215 self.w.bits = (self.w.bits & !(1 << 2)) | ((value as u32 & 1) << 2);
216 self.w
217 }
218}
219#[doc = "Field `slv_wrbuf_dummy_en` reader - In the slave mode, it is the enable bit of \"dummy\" phase for \"write-buffer\" operations."]
220pub struct SLV_WRBUF_DUMMY_EN_R(crate::FieldReader<bool, bool>);
221impl SLV_WRBUF_DUMMY_EN_R {
222 #[inline(always)]
223 pub(crate) fn new(bits: bool) -> Self {
224 SLV_WRBUF_DUMMY_EN_R(crate::FieldReader::new(bits))
225 }
226}
227impl core::ops::Deref for SLV_WRBUF_DUMMY_EN_R {
228 type Target = crate::FieldReader<bool, bool>;
229 #[inline(always)]
230 fn deref(&self) -> &Self::Target {
231 &self.0
232 }
233}
234#[doc = "Field `slv_wrbuf_dummy_en` writer - In the slave mode, it is the enable bit of \"dummy\" phase for \"write-buffer\" operations."]
235pub struct SLV_WRBUF_DUMMY_EN_W<'a> {
236 w: &'a mut W,
237}
238impl<'a> SLV_WRBUF_DUMMY_EN_W<'a> {
239 #[doc = r"Sets the field bit"]
240 #[inline(always)]
241 pub fn set_bit(self) -> &'a mut W {
242 self.bit(true)
243 }
244 #[doc = r"Clears the field bit"]
245 #[inline(always)]
246 pub fn clear_bit(self) -> &'a mut W {
247 self.bit(false)
248 }
249 #[doc = r"Writes raw bits to the field"]
250 #[inline(always)]
251 pub fn bit(self, value: bool) -> &'a mut W {
252 self.w.bits = (self.w.bits & !(1 << 1)) | ((value as u32 & 1) << 1);
253 self.w
254 }
255}
256#[doc = "Field `slv_rdbuf_dummy_en` reader - In the slave mode, it is the enable bit of \"dummy\" phase for \"read-buffer\" operations."]
257pub struct SLV_RDBUF_DUMMY_EN_R(crate::FieldReader<bool, bool>);
258impl SLV_RDBUF_DUMMY_EN_R {
259 #[inline(always)]
260 pub(crate) fn new(bits: bool) -> Self {
261 SLV_RDBUF_DUMMY_EN_R(crate::FieldReader::new(bits))
262 }
263}
264impl core::ops::Deref for SLV_RDBUF_DUMMY_EN_R {
265 type Target = crate::FieldReader<bool, bool>;
266 #[inline(always)]
267 fn deref(&self) -> &Self::Target {
268 &self.0
269 }
270}
271#[doc = "Field `slv_rdbuf_dummy_en` writer - In the slave mode, it is the enable bit of \"dummy\" phase for \"read-buffer\" operations."]
272pub struct SLV_RDBUF_DUMMY_EN_W<'a> {
273 w: &'a mut W,
274}
275impl<'a> SLV_RDBUF_DUMMY_EN_W<'a> {
276 #[doc = r"Sets the field bit"]
277 #[inline(always)]
278 pub fn set_bit(self) -> &'a mut W {
279 self.bit(true)
280 }
281 #[doc = r"Clears the field bit"]
282 #[inline(always)]
283 pub fn clear_bit(self) -> &'a mut W {
284 self.bit(false)
285 }
286 #[doc = r"Writes raw bits to the field"]
287 #[inline(always)]
288 pub fn bit(self, value: bool) -> &'a mut W {
289 self.w.bits = (self.w.bits & !1) | (value as u32 & 1);
290 self.w
291 }
292}
293#[doc = "Field `spi_status_fast_enable` reader - Enable fast spi slave status"]
294pub struct SPI_STATUS_FAST_ENABLE_R(crate::FieldReader<bool, bool>);
295impl SPI_STATUS_FAST_ENABLE_R {
296 #[inline(always)]
297 pub(crate) fn new(bits: bool) -> Self {
298 SPI_STATUS_FAST_ENABLE_R(crate::FieldReader::new(bits))
299 }
300}
301impl core::ops::Deref for SPI_STATUS_FAST_ENABLE_R {
302 type Target = crate::FieldReader<bool, bool>;
303 #[inline(always)]
304 fn deref(&self) -> &Self::Target {
305 &self.0
306 }
307}
308#[doc = "Field `spi_status_fast_enable` writer - Enable fast spi slave status"]
309pub struct SPI_STATUS_FAST_ENABLE_W<'a> {
310 w: &'a mut W,
311}
312impl<'a> SPI_STATUS_FAST_ENABLE_W<'a> {
313 #[doc = r"Sets the field bit"]
314 #[inline(always)]
315 pub fn set_bit(self) -> &'a mut W {
316 self.bit(true)
317 }
318 #[doc = r"Clears the field bit"]
319 #[inline(always)]
320 pub fn clear_bit(self) -> &'a mut W {
321 self.bit(false)
322 }
323 #[doc = r"Writes raw bits to the field"]
324 #[inline(always)]
325 pub fn bit(self, value: bool) -> &'a mut W {
326 self.w.bits = (self.w.bits & !(1 << 26)) | ((value as u32 & 1) << 26);
327 self.w
328 }
329}
330#[doc = "Field `spi_status_read` reader - Enable spi slave status"]
331pub struct SPI_STATUS_READ_R(crate::FieldReader<bool, bool>);
332impl SPI_STATUS_READ_R {
333 #[inline(always)]
334 pub(crate) fn new(bits: bool) -> Self {
335 SPI_STATUS_READ_R(crate::FieldReader::new(bits))
336 }
337}
338impl core::ops::Deref for SPI_STATUS_READ_R {
339 type Target = crate::FieldReader<bool, bool>;
340 #[inline(always)]
341 fn deref(&self) -> &Self::Target {
342 &self.0
343 }
344}
345#[doc = "Field `spi_status_read` writer - Enable spi slave status"]
346pub struct SPI_STATUS_READ_W<'a> {
347 w: &'a mut W,
348}
349impl<'a> SPI_STATUS_READ_W<'a> {
350 #[doc = r"Sets the field bit"]
351 #[inline(always)]
352 pub fn set_bit(self) -> &'a mut W {
353 self.bit(true)
354 }
355 #[doc = r"Clears the field bit"]
356 #[inline(always)]
357 pub fn clear_bit(self) -> &'a mut W {
358 self.bit(false)
359 }
360 #[doc = r"Writes raw bits to the field"]
361 #[inline(always)]
362 pub fn bit(self, value: bool) -> &'a mut W {
363 self.w.bits = (self.w.bits & !(1 << 25)) | ((value as u32 & 1) << 25);
364 self.w
365 }
366}
367impl R {
368 #[doc = "Bits 27:31 - In the slave mode, it is the length in bits for \"write-status\" and \"read-status\" operations. The register valueshall be (bit_num-1)"]
369 #[inline(always)]
370 pub fn slv_status_bitlen(&self) -> SLV_STATUS_BITLEN_R {
371 SLV_STATUS_BITLEN_R::new(((self.bits >> 27) & 0x1f) as u8)
372 }
373 #[doc = "Bits 16:24 - In the slave mode, it is the length in bits for \"write-buffer\" and \"read-buffer\" operations. The register value shallbe (bit_num-1)"]
374 #[inline(always)]
375 pub fn slv_buf_bitlen(&self) -> SLV_BUF_BITLEN_R {
376 SLV_BUF_BITLEN_R::new(((self.bits >> 16) & 0x01ff) as u16)
377 }
378 #[doc = "Bits 10:15 - In the slave mode, it is the address length in bits for \"read-buffer\" operation. The register value shall be(bit_num-1)"]
379 #[inline(always)]
380 pub fn slv_rd_addr_bitlen(&self) -> SLV_RD_ADDR_BITLEN_R {
381 SLV_RD_ADDR_BITLEN_R::new(((self.bits >> 10) & 0x3f) as u8)
382 }
383 #[doc = "Bits 4:9 - In the slave mode, it is the address length in bits for \"write-buffer\" operation. The register value shall be(bit_num-1)"]
384 #[inline(always)]
385 pub fn slv_wr_addr_bitlen(&self) -> SLV_WR_ADDR_BITLEN_R {
386 SLV_WR_ADDR_BITLEN_R::new(((self.bits >> 4) & 0x3f) as u8)
387 }
388 #[doc = "Bit 3 - In the slave mode, it is the enable bit of \"dummy\" phase for \"write-status\" operations."]
389 #[inline(always)]
390 pub fn slv_wrsta_dummy_en(&self) -> SLV_WRSTA_DUMMY_EN_R {
391 SLV_WRSTA_DUMMY_EN_R::new(((self.bits >> 3) & 1) != 0)
392 }
393 #[doc = "Bit 2 - In the slave mode, it is the enable bit of \"dummy\" phase for \"read-status\" operations."]
394 #[inline(always)]
395 pub fn slv_rdsta_dummy_en(&self) -> SLV_RDSTA_DUMMY_EN_R {
396 SLV_RDSTA_DUMMY_EN_R::new(((self.bits >> 2) & 1) != 0)
397 }
398 #[doc = "Bit 1 - In the slave mode, it is the enable bit of \"dummy\" phase for \"write-buffer\" operations."]
399 #[inline(always)]
400 pub fn slv_wrbuf_dummy_en(&self) -> SLV_WRBUF_DUMMY_EN_R {
401 SLV_WRBUF_DUMMY_EN_R::new(((self.bits >> 1) & 1) != 0)
402 }
403 #[doc = "Bit 0 - In the slave mode, it is the enable bit of \"dummy\" phase for \"read-buffer\" operations."]
404 #[inline(always)]
405 pub fn slv_rdbuf_dummy_en(&self) -> SLV_RDBUF_DUMMY_EN_R {
406 SLV_RDBUF_DUMMY_EN_R::new((self.bits & 1) != 0)
407 }
408 #[doc = "Bit 26 - Enable fast spi slave status"]
409 #[inline(always)]
410 pub fn spi_status_fast_enable(&self) -> SPI_STATUS_FAST_ENABLE_R {
411 SPI_STATUS_FAST_ENABLE_R::new(((self.bits >> 26) & 1) != 0)
412 }
413 #[doc = "Bit 25 - Enable spi slave status"]
414 #[inline(always)]
415 pub fn spi_status_read(&self) -> SPI_STATUS_READ_R {
416 SPI_STATUS_READ_R::new(((self.bits >> 25) & 1) != 0)
417 }
418}
419impl W {
420 #[doc = "Bits 27:31 - In the slave mode, it is the length in bits for \"write-status\" and \"read-status\" operations. The register valueshall be (bit_num-1)"]
421 #[inline(always)]
422 pub fn slv_status_bitlen(&mut self) -> SLV_STATUS_BITLEN_W {
423 SLV_STATUS_BITLEN_W { w: self }
424 }
425 #[doc = "Bits 16:24 - In the slave mode, it is the length in bits for \"write-buffer\" and \"read-buffer\" operations. The register value shallbe (bit_num-1)"]
426 #[inline(always)]
427 pub fn slv_buf_bitlen(&mut self) -> SLV_BUF_BITLEN_W {
428 SLV_BUF_BITLEN_W { w: self }
429 }
430 #[doc = "Bits 10:15 - In the slave mode, it is the address length in bits for \"read-buffer\" operation. The register value shall be(bit_num-1)"]
431 #[inline(always)]
432 pub fn slv_rd_addr_bitlen(&mut self) -> SLV_RD_ADDR_BITLEN_W {
433 SLV_RD_ADDR_BITLEN_W { w: self }
434 }
435 #[doc = "Bits 4:9 - In the slave mode, it is the address length in bits for \"write-buffer\" operation. The register value shall be(bit_num-1)"]
436 #[inline(always)]
437 pub fn slv_wr_addr_bitlen(&mut self) -> SLV_WR_ADDR_BITLEN_W {
438 SLV_WR_ADDR_BITLEN_W { w: self }
439 }
440 #[doc = "Bit 3 - In the slave mode, it is the enable bit of \"dummy\" phase for \"write-status\" operations."]
441 #[inline(always)]
442 pub fn slv_wrsta_dummy_en(&mut self) -> SLV_WRSTA_DUMMY_EN_W {
443 SLV_WRSTA_DUMMY_EN_W { w: self }
444 }
445 #[doc = "Bit 2 - In the slave mode, it is the enable bit of \"dummy\" phase for \"read-status\" operations."]
446 #[inline(always)]
447 pub fn slv_rdsta_dummy_en(&mut self) -> SLV_RDSTA_DUMMY_EN_W {
448 SLV_RDSTA_DUMMY_EN_W { w: self }
449 }
450 #[doc = "Bit 1 - In the slave mode, it is the enable bit of \"dummy\" phase for \"write-buffer\" operations."]
451 #[inline(always)]
452 pub fn slv_wrbuf_dummy_en(&mut self) -> SLV_WRBUF_DUMMY_EN_W {
453 SLV_WRBUF_DUMMY_EN_W { w: self }
454 }
455 #[doc = "Bit 0 - In the slave mode, it is the enable bit of \"dummy\" phase for \"read-buffer\" operations."]
456 #[inline(always)]
457 pub fn slv_rdbuf_dummy_en(&mut self) -> SLV_RDBUF_DUMMY_EN_W {
458 SLV_RDBUF_DUMMY_EN_W { w: self }
459 }
460 #[doc = "Bit 26 - Enable fast spi slave status"]
461 #[inline(always)]
462 pub fn spi_status_fast_enable(&mut self) -> SPI_STATUS_FAST_ENABLE_W {
463 SPI_STATUS_FAST_ENABLE_W { w: self }
464 }
465 #[doc = "Bit 25 - Enable spi slave status"]
466 #[inline(always)]
467 pub fn spi_status_read(&mut self) -> SPI_STATUS_READ_W {
468 SPI_STATUS_READ_W { w: self }
469 }
470 #[doc = "Writes raw bits to the register."]
471 #[inline(always)]
472 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
473 self.0.bits(bits);
474 self
475 }
476}
477#[doc = "In the slave mode, it is the length in bits for \"write-status\" and \"read-status\" operations. The register valueshall be (bit_num-1)\n\nThis register you can [`read`]
478(crate::generic::Reg::read), [`write_with_zero`]
479(crate::generic::Reg::write_with_zero), [`reset`]
480(crate::generic::Reg::reset), [`write`]
481(crate::generic::Reg::write), [`modify`]
482(crate::generic::Reg::modify). See [API]
483(https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [spi_slave1]
484(index.html) module"]
485pub struct SPI_SLAVE1_SPEC;
486impl crate::RegisterSpec for SPI_SLAVE1_SPEC {
487 type Ux = u32;
488}
489#[doc = "`read()` method returns [spi_slave1::R]
490(R) reader structure"]
491impl crate::Readable for SPI_SLAVE1_SPEC {
492 type Reader = R;
493}
494#[doc = "`write(|w| ..)` method takes [spi_slave1::W]
495(W) writer structure"]
496impl crate::Writable for SPI_SLAVE1_SPEC {
497 type Writer = W;
498}
499#[doc = "`reset()` method sets SPI_SLAVE1 to value 0"]
500impl crate::Resettable for SPI_SLAVE1_SPEC {
501 #[inline(always)]
502 fn reset_value() -> Self::Ux {
503 0
504 }
505}