atsam4ls4a_pac/acifc/
parameter.rs

1#[doc = "Register `PARAMETER` reader"]
2pub struct R(crate::R<PARAMETER_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<PARAMETER_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<PARAMETER_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<PARAMETER_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `ACIMPL0` reader - Analog Comparator 0 Implemented"]
17pub type ACIMPL0_R = crate::BitReader<bool>;
18#[doc = "Field `ACIMPL1` reader - Analog Comparator 1 Implemented"]
19pub type ACIMPL1_R = crate::BitReader<bool>;
20#[doc = "Field `ACIMPL2` reader - Analog Comparator 2 Implemented"]
21pub type ACIMPL2_R = crate::BitReader<bool>;
22#[doc = "Field `ACIMPL3` reader - Analog Comparator 3 Implemented"]
23pub type ACIMPL3_R = crate::BitReader<bool>;
24#[doc = "Field `ACIMPL4` reader - Analog Comparator 4 Implemented"]
25pub type ACIMPL4_R = crate::BitReader<bool>;
26#[doc = "Field `ACIMPL5` reader - Analog Comparator 5 Implemented"]
27pub type ACIMPL5_R = crate::BitReader<bool>;
28#[doc = "Field `ACIMPL6` reader - Analog Comparator 6 Implemented"]
29pub type ACIMPL6_R = crate::BitReader<bool>;
30#[doc = "Field `ACIMPL7` reader - Analog Comparator 7 Implemented"]
31pub type ACIMPL7_R = crate::BitReader<bool>;
32#[doc = "Field `WIMPL0` reader - Window0 Mode Implemented"]
33pub type WIMPL0_R = crate::BitReader<bool>;
34#[doc = "Field `WIMPL1` reader - Window1 Mode Implemented"]
35pub type WIMPL1_R = crate::BitReader<bool>;
36#[doc = "Field `WIMPL2` reader - Window2 Mode Implemented"]
37pub type WIMPL2_R = crate::BitReader<bool>;
38#[doc = "Field `WIMPL3` reader - Window3 Mode Implemented"]
39pub type WIMPL3_R = crate::BitReader<bool>;
40impl R {
41    #[doc = "Bit 0 - Analog Comparator 0 Implemented"]
42    #[inline(always)]
43    pub fn acimpl0(&self) -> ACIMPL0_R {
44        ACIMPL0_R::new((self.bits & 1) != 0)
45    }
46    #[doc = "Bit 1 - Analog Comparator 1 Implemented"]
47    #[inline(always)]
48    pub fn acimpl1(&self) -> ACIMPL1_R {
49        ACIMPL1_R::new(((self.bits >> 1) & 1) != 0)
50    }
51    #[doc = "Bit 2 - Analog Comparator 2 Implemented"]
52    #[inline(always)]
53    pub fn acimpl2(&self) -> ACIMPL2_R {
54        ACIMPL2_R::new(((self.bits >> 2) & 1) != 0)
55    }
56    #[doc = "Bit 3 - Analog Comparator 3 Implemented"]
57    #[inline(always)]
58    pub fn acimpl3(&self) -> ACIMPL3_R {
59        ACIMPL3_R::new(((self.bits >> 3) & 1) != 0)
60    }
61    #[doc = "Bit 4 - Analog Comparator 4 Implemented"]
62    #[inline(always)]
63    pub fn acimpl4(&self) -> ACIMPL4_R {
64        ACIMPL4_R::new(((self.bits >> 4) & 1) != 0)
65    }
66    #[doc = "Bit 5 - Analog Comparator 5 Implemented"]
67    #[inline(always)]
68    pub fn acimpl5(&self) -> ACIMPL5_R {
69        ACIMPL5_R::new(((self.bits >> 5) & 1) != 0)
70    }
71    #[doc = "Bit 6 - Analog Comparator 6 Implemented"]
72    #[inline(always)]
73    pub fn acimpl6(&self) -> ACIMPL6_R {
74        ACIMPL6_R::new(((self.bits >> 6) & 1) != 0)
75    }
76    #[doc = "Bit 7 - Analog Comparator 7 Implemented"]
77    #[inline(always)]
78    pub fn acimpl7(&self) -> ACIMPL7_R {
79        ACIMPL7_R::new(((self.bits >> 7) & 1) != 0)
80    }
81    #[doc = "Bit 16 - Window0 Mode Implemented"]
82    #[inline(always)]
83    pub fn wimpl0(&self) -> WIMPL0_R {
84        WIMPL0_R::new(((self.bits >> 16) & 1) != 0)
85    }
86    #[doc = "Bit 17 - Window1 Mode Implemented"]
87    #[inline(always)]
88    pub fn wimpl1(&self) -> WIMPL1_R {
89        WIMPL1_R::new(((self.bits >> 17) & 1) != 0)
90    }
91    #[doc = "Bit 18 - Window2 Mode Implemented"]
92    #[inline(always)]
93    pub fn wimpl2(&self) -> WIMPL2_R {
94        WIMPL2_R::new(((self.bits >> 18) & 1) != 0)
95    }
96    #[doc = "Bit 19 - Window3 Mode Implemented"]
97    #[inline(always)]
98    pub fn wimpl3(&self) -> WIMPL3_R {
99        WIMPL3_R::new(((self.bits >> 19) & 1) != 0)
100    }
101}
102#[doc = "Parameter 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 [parameter](index.html) module"]
103pub struct PARAMETER_SPEC;
104impl crate::RegisterSpec for PARAMETER_SPEC {
105    type Ux = u32;
106}
107#[doc = "`read()` method returns [parameter::R](R) reader structure"]
108impl crate::Readable for PARAMETER_SPEC {
109    type Reader = R;
110}
111#[doc = "`reset()` method sets PARAMETER to value 0"]
112impl crate::Resettable for PARAMETER_SPEC {
113    const RESET_VALUE: Self::Ux = 0;
114}