stm32l476/dfsdm1/
ch6awscdr.rs1#[doc = "Register `CH6AWSCDR` reader"]
2pub type R = crate::R<Ch6awscdrSpec>;
3#[doc = "Register `CH6AWSCDR` writer"]
4pub type W = crate::W<Ch6awscdrSpec>;
5#[doc = "Field `SCDT` reader - SCDT"]
6pub type ScdtR = crate::FieldReader;
7#[doc = "Field `SCDT` writer - SCDT"]
8pub type ScdtW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9#[doc = "Field `BKSCD` reader - BKSCD"]
10pub type BkscdR = crate::FieldReader;
11#[doc = "Field `BKSCD` writer - BKSCD"]
12pub type BkscdW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
13#[doc = "Field `AWFOSR` reader - AWFOSR"]
14pub type AwfosrR = crate::FieldReader;
15#[doc = "Field `AWFOSR` writer - AWFOSR"]
16pub type AwfosrW<'a, REG> = crate::FieldWriter<'a, REG, 5>;
17#[doc = "Field `AWFORD` reader - AWFORD"]
18pub type AwfordR = crate::FieldReader;
19#[doc = "Field `AWFORD` writer - AWFORD"]
20pub type AwfordW<'a, REG> = crate::FieldWriter<'a, REG, 2>;
21impl R {
22 #[doc = "Bits 0:7 - SCDT"]
23 #[inline(always)]
24 pub fn scdt(&self) -> ScdtR {
25 ScdtR::new((self.bits & 0xff) as u8)
26 }
27 #[doc = "Bits 12:15 - BKSCD"]
28 #[inline(always)]
29 pub fn bkscd(&self) -> BkscdR {
30 BkscdR::new(((self.bits >> 12) & 0x0f) as u8)
31 }
32 #[doc = "Bits 16:20 - AWFOSR"]
33 #[inline(always)]
34 pub fn awfosr(&self) -> AwfosrR {
35 AwfosrR::new(((self.bits >> 16) & 0x1f) as u8)
36 }
37 #[doc = "Bits 22:23 - AWFORD"]
38 #[inline(always)]
39 pub fn awford(&self) -> AwfordR {
40 AwfordR::new(((self.bits >> 22) & 3) as u8)
41 }
42}
43impl W {
44 #[doc = "Bits 0:7 - SCDT"]
45 #[inline(always)]
46 pub fn scdt(&mut self) -> ScdtW<Ch6awscdrSpec> {
47 ScdtW::new(self, 0)
48 }
49 #[doc = "Bits 12:15 - BKSCD"]
50 #[inline(always)]
51 pub fn bkscd(&mut self) -> BkscdW<Ch6awscdrSpec> {
52 BkscdW::new(self, 12)
53 }
54 #[doc = "Bits 16:20 - AWFOSR"]
55 #[inline(always)]
56 pub fn awfosr(&mut self) -> AwfosrW<Ch6awscdrSpec> {
57 AwfosrW::new(self, 16)
58 }
59 #[doc = "Bits 22:23 - AWFORD"]
60 #[inline(always)]
61 pub fn awford(&mut self) -> AwfordW<Ch6awscdrSpec> {
62 AwfordW::new(self, 22)
63 }
64}
65#[doc = "CH6AWSCDR\n\nYou can [`read`](crate::Reg::read) this register and get [`ch6awscdr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ch6awscdr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
66pub struct Ch6awscdrSpec;
67impl crate::RegisterSpec for Ch6awscdrSpec {
68 type Ux = u32;
69}
70#[doc = "`read()` method returns [`ch6awscdr::R`](R) reader structure"]
71impl crate::Readable for Ch6awscdrSpec {}
72#[doc = "`write(|w| ..)` method takes [`ch6awscdr::W`](W) writer structure"]
73impl crate::Writable for Ch6awscdrSpec {
74 type Safety = crate::Unsafe;
75}
76#[doc = "`reset()` method sets CH6AWSCDR to value 0"]
77impl crate::Resettable for Ch6awscdrSpec {}