stm32l4x2_pac/dfsdm/flt/
awsr.rs1#[doc = r" Value read from the register"]
2pub struct R {
3 bits: u32,
4}
5impl super::AWSR {
6 #[doc = r" Reads the contents of the register"]
7 #[inline]
8 pub fn read(&self) -> R {
9 R {
10 bits: self.register.get(),
11 }
12 }
13}
14#[doc = r" Value of the field"]
15pub struct AWHTFR {
16 bits: u8,
17}
18impl AWHTFR {
19 #[doc = r" Value of the field as raw bits"]
20 #[inline]
21 pub fn bits(&self) -> u8 {
22 self.bits
23 }
24}
25#[doc = r" Value of the field"]
26pub struct AWLTFR {
27 bits: u8,
28}
29impl AWLTFR {
30 #[doc = r" Value of the field as raw bits"]
31 #[inline]
32 pub fn bits(&self) -> u8 {
33 self.bits
34 }
35}
36impl R {
37 #[doc = r" Value of the register as raw bits"]
38 #[inline]
39 pub fn bits(&self) -> u32 {
40 self.bits
41 }
42 #[doc = "Bits 8:15 - Analog watchdog high threshold flag"]
43 #[inline]
44 pub fn awhtf(&self) -> AWHTFR {
45 let bits = {
46 const MASK: u8 = 255;
47 const OFFSET: u8 = 8;
48 ((self.bits >> OFFSET) & MASK as u32) as u8
49 };
50 AWHTFR { bits }
51 }
52 #[doc = "Bits 0:7 - Analog watchdog low threshold flag"]
53 #[inline]
54 pub fn awltf(&self) -> AWLTFR {
55 let bits = {
56 const MASK: u8 = 255;
57 const OFFSET: u8 = 0;
58 ((self.bits >> OFFSET) & MASK as u32) as u8
59 };
60 AWLTFR { bits }
61 }
62}