stm32l476/dfsdm1/
dfsdm_flt1awltr.rs

1#[doc = "Register `DFSDM_FLT1AWLTR` reader"]
2pub type R = crate::R<DfsdmFlt1awltrSpec>;
3#[doc = "Register `DFSDM_FLT1AWLTR` writer"]
4pub type W = crate::W<DfsdmFlt1awltrSpec>;
5#[doc = "Field `BKAWL` reader - Break signal assignment to analog watchdog low threshold event"]
6pub type BkawlR = crate::FieldReader;
7#[doc = "Field `BKAWL` writer - Break signal assignment to analog watchdog low threshold event"]
8pub type BkawlW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
9#[doc = "Field `AWLT` reader - Analog watchdog low threshold"]
10pub type AwltR = crate::FieldReader<u32>;
11#[doc = "Field `AWLT` writer - Analog watchdog low threshold"]
12pub type AwltW<'a, REG> = crate::FieldWriter<'a, REG, 24, u32>;
13impl R {
14    #[doc = "Bits 0:3 - Break signal assignment to analog watchdog low threshold event"]
15    #[inline(always)]
16    pub fn bkawl(&self) -> BkawlR {
17        BkawlR::new((self.bits & 0x0f) as u8)
18    }
19    #[doc = "Bits 8:31 - Analog watchdog low threshold"]
20    #[inline(always)]
21    pub fn awlt(&self) -> AwltR {
22        AwltR::new((self.bits >> 8) & 0x00ff_ffff)
23    }
24}
25impl W {
26    #[doc = "Bits 0:3 - Break signal assignment to analog watchdog low threshold event"]
27    #[inline(always)]
28    pub fn bkawl(&mut self) -> BkawlW<DfsdmFlt1awltrSpec> {
29        BkawlW::new(self, 0)
30    }
31    #[doc = "Bits 8:31 - Analog watchdog low threshold"]
32    #[inline(always)]
33    pub fn awlt(&mut self) -> AwltW<DfsdmFlt1awltrSpec> {
34        AwltW::new(self, 8)
35    }
36}
37#[doc = "analog watchdog low threshold register\n\nYou can [`read`](crate::Reg::read) this register and get [`dfsdm_flt1awltr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dfsdm_flt1awltr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
38pub struct DfsdmFlt1awltrSpec;
39impl crate::RegisterSpec for DfsdmFlt1awltrSpec {
40    type Ux = u32;
41}
42#[doc = "`read()` method returns [`dfsdm_flt1awltr::R`](R) reader structure"]
43impl crate::Readable for DfsdmFlt1awltrSpec {}
44#[doc = "`write(|w| ..)` method takes [`dfsdm_flt1awltr::W`](W) writer structure"]
45impl crate::Writable for DfsdmFlt1awltrSpec {
46    type Safety = crate::Unsafe;
47}
48#[doc = "`reset()` method sets DFSDM_FLT1AWLTR to value 0"]
49impl crate::Resettable for DfsdmFlt1awltrSpec {}