e310x/qspi0/
delay0.rs

1#[doc = "Register `delay0` reader"]
2pub type R = crate::R<Delay0Spec>;
3#[doc = "Register `delay0` writer"]
4pub type W = crate::W<Delay0Spec>;
5#[doc = "Field `cssck` reader - CS to SCK Delay"]
6pub type CssckR = crate::FieldReader;
7#[doc = "Field `cssck` writer - CS to SCK Delay"]
8pub type CssckW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9#[doc = "Field `sckcs` reader - SCK to CS Delay"]
10pub type SckcsR = crate::FieldReader;
11#[doc = "Field `sckcs` writer - SCK to CS Delay"]
12pub type SckcsW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
13impl R {
14    #[doc = "Bits 0:7 - CS to SCK Delay"]
15    #[inline(always)]
16    pub fn cssck(&self) -> CssckR {
17        CssckR::new((self.bits & 0xff) as u8)
18    }
19    #[doc = "Bits 16:23 - SCK to CS Delay"]
20    #[inline(always)]
21    pub fn sckcs(&self) -> SckcsR {
22        SckcsR::new(((self.bits >> 16) & 0xff) as u8)
23    }
24}
25impl W {
26    #[doc = "Bits 0:7 - CS to SCK Delay"]
27    #[inline(always)]
28    pub fn cssck(&mut self) -> CssckW<Delay0Spec> {
29        CssckW::new(self, 0)
30    }
31    #[doc = "Bits 16:23 - SCK to CS Delay"]
32    #[inline(always)]
33    pub fn sckcs(&mut self) -> SckcsW<Delay0Spec> {
34        SckcsW::new(self, 16)
35    }
36}
37#[doc = "Delay Control 0 Register\n\nYou can [`read`](crate::Reg::read) this register and get [`delay0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`delay0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
38pub struct Delay0Spec;
39impl crate::RegisterSpec for Delay0Spec {
40    type Ux = u32;
41}
42#[doc = "`read()` method returns [`delay0::R`](R) reader structure"]
43impl crate::Readable for Delay0Spec {}
44#[doc = "`write(|w| ..)` method takes [`delay0::W`](W) writer structure"]
45impl crate::Writable for Delay0Spec {
46    type Safety = crate::Unsafe;
47    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
48    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
49}
50#[doc = "`reset()` method sets delay0 to value 0x0001_0001"]
51impl crate::Resettable for Delay0Spec {
52    const RESET_VALUE: u32 = 0x0001_0001;
53}