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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#[doc = "Register `ICLR` reader"]
pub type R = crate::R<IclrSpec>;
#[doc = "Register `ICLR` writer"]
pub type W = crate::W<IclrSpec>;
#[doc = "Field `ADICLRS` reader - ADICLRS"]
pub type AdiclrsR = crate::BitReader;
#[doc = "Field `ADICLRS` writer - ADICLRS"]
pub type AdiclrsW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ADICLRG` reader - ADICLRG"]
pub type AdiclrgR = crate::BitReader;
#[doc = "Field `ADICLRG` writer - ADICLRG"]
pub type AdiclrgW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ADICLRC` reader - ADICLRC"]
pub type AdiclrcR = crate::BitReader;
#[doc = "Field `ADICLRC` writer - ADICLRC"]
pub type AdiclrcW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ADICLRL` reader - ADICLRL"]
pub type AdiclrlR = crate::BitReader;
#[doc = "Field `ADICLRL` writer - ADICLRL"]
pub type AdiclrlW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ADICLRU` reader - ADICLRU"]
pub type AdiclruR = crate::BitReader;
#[doc = "Field `ADICLRU` writer - ADICLRU"]
pub type AdiclruW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `ADICLRO` reader - ADICLRO"]
pub type AdiclroR = crate::BitReader;
#[doc = "Field `ADICLRO` writer - ADICLRO"]
pub type AdiclroW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - ADICLRS"]
    #[inline(always)]
    pub fn adiclrs(&self) -> AdiclrsR {
        AdiclrsR::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - ADICLRG"]
    #[inline(always)]
    pub fn adiclrg(&self) -> AdiclrgR {
        AdiclrgR::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - ADICLRC"]
    #[inline(always)]
    pub fn adiclrc(&self) -> AdiclrcR {
        AdiclrcR::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 16 - ADICLRL"]
    #[inline(always)]
    pub fn adiclrl(&self) -> AdiclrlR {
        AdiclrlR::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - ADICLRU"]
    #[inline(always)]
    pub fn adiclru(&self) -> AdiclruR {
        AdiclruR::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 24 - ADICLRO"]
    #[inline(always)]
    pub fn adiclro(&self) -> AdiclroR {
        AdiclroR::new(((self.bits >> 24) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - ADICLRS"]
    #[inline(always)]
    #[must_use]
    pub fn adiclrs(&mut self) -> AdiclrsW<IclrSpec> {
        AdiclrsW::new(self, 0)
    }
    #[doc = "Bit 1 - ADICLRG"]
    #[inline(always)]
    #[must_use]
    pub fn adiclrg(&mut self) -> AdiclrgW<IclrSpec> {
        AdiclrgW::new(self, 1)
    }
    #[doc = "Bit 2 - ADICLRC"]
    #[inline(always)]
    #[must_use]
    pub fn adiclrc(&mut self) -> AdiclrcW<IclrSpec> {
        AdiclrcW::new(self, 2)
    }
    #[doc = "Bit 16 - ADICLRL"]
    #[inline(always)]
    #[must_use]
    pub fn adiclrl(&mut self) -> AdiclrlW<IclrSpec> {
        AdiclrlW::new(self, 16)
    }
    #[doc = "Bit 17 - ADICLRU"]
    #[inline(always)]
    #[must_use]
    pub fn adiclru(&mut self) -> AdiclruW<IclrSpec> {
        AdiclruW::new(self, 17)
    }
    #[doc = "Bit 24 - ADICLRO"]
    #[inline(always)]
    #[must_use]
    pub fn adiclro(&mut self) -> AdiclroW<IclrSpec> {
        AdiclroW::new(self, 24)
    }
}
#[doc = "ICLR\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`iclr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`iclr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IclrSpec;
impl crate::RegisterSpec for IclrSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`iclr::R`](R) reader structure"]
impl crate::Readable for IclrSpec {}
#[doc = "`write(|w| ..)` method takes [`iclr::W`](W) writer structure"]
impl crate::Writable for IclrSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets ICLR to value 0"]
impl crate::Resettable for IclrSpec {
    const RESET_VALUE: u32 = 0;
}