esp32c2/spi0/
rd_status.rs1#[doc = "Register `RD_STATUS` reader"]
2pub type R = crate::R<RD_STATUS_SPEC>;
3#[doc = "Register `RD_STATUS` writer"]
4pub type W = crate::W<RD_STATUS_SPEC>;
5#[doc = "Field `WB_MODE` reader - Mode bits in the flash fast read mode it is combined with spi_mem_fastrd_mode bit."]
6pub type WB_MODE_R = crate::FieldReader;
7#[doc = "Field `WB_MODE` writer - Mode bits in the flash fast read mode it is combined with spi_mem_fastrd_mode bit."]
8pub type WB_MODE_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9impl R {
10 #[doc = "Bits 16:23 - Mode bits in the flash fast read mode it is combined with spi_mem_fastrd_mode bit."]
11 #[inline(always)]
12 pub fn wb_mode(&self) -> WB_MODE_R {
13 WB_MODE_R::new(((self.bits >> 16) & 0xff) as u8)
14 }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("RD_STATUS")
20 .field("wb_mode", &self.wb_mode())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bits 16:23 - Mode bits in the flash fast read mode it is combined with spi_mem_fastrd_mode bit."]
26 #[inline(always)]
27 pub fn wb_mode(&mut self) -> WB_MODE_W<RD_STATUS_SPEC> {
28 WB_MODE_W::new(self, 16)
29 }
30}
31#[doc = "SPI0 read control register.\n\nYou can [`read`](crate::Reg::read) this register and get [`rd_status::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`rd_status::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct RD_STATUS_SPEC;
33impl crate::RegisterSpec for RD_STATUS_SPEC {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`rd_status::R`](R) reader structure"]
37impl crate::Readable for RD_STATUS_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`rd_status::W`](W) writer structure"]
39impl crate::Writable for RD_STATUS_SPEC {
40 type Safety = crate::Unsafe;
41 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
42 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
43}
44#[doc = "`reset()` method sets RD_STATUS to value 0"]
45impl crate::Resettable for RD_STATUS_SPEC {
46 const RESET_VALUE: u32 = 0;
47}