1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#[doc = "Register `EXMIN` reader"]
pub struct R(crate::R<EXMIN_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<EXMIN_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<EXMIN_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<EXMIN_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `EXMINCH` reader - Extremes detector minimum data channel"]
pub type EXMINCH_R = crate::FieldReader<u8, u8>;
#[doc = "Field `EXMIN` reader - Extremes detector minimum value"]
pub type EXMIN_R = crate::FieldReader<u32, u32>;
impl R {
    #[doc = "Bits 0:2 - Extremes detector minimum data channel"]
    #[inline(always)]
    pub fn exminch(&self) -> EXMINCH_R {
        EXMINCH_R::new((self.bits & 7) as u8)
    }
    #[doc = "Bits 8:31 - Extremes detector minimum value"]
    #[inline(always)]
    pub fn exmin(&self) -> EXMIN_R {
        EXMIN_R::new(((self.bits >> 8) & 0x00ff_ffff) as u32)
    }
}
#[doc = "DFSDM Extremes detector minimum register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [exmin](index.html) module"]
pub struct EXMIN_SPEC;
impl crate::RegisterSpec for EXMIN_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [exmin::R](R) reader structure"]
impl crate::Readable for EXMIN_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets EXMIN to value 0"]
impl crate::Resettable for EXMIN_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}