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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#[doc = "Register `CTIAPPCLEAR` writer"]
pub struct W(crate::W<CTIAPPCLEAR_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<CTIAPPCLEAR_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<CTIAPPCLEAR_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<CTIAPPCLEAR_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum APPCLEAR_0_AW {
    #[doc = "1: Clears the event for channel 0."]
    CLEAR = 1,
}
impl From<APPCLEAR_0_AW> for bool {
    #[inline(always)]
    fn from(variant: APPCLEAR_0_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `APPCLEAR_0` writer - Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel."]
pub type APPCLEAR_0_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, CTIAPPCLEAR_SPEC, APPCLEAR_0_AW, O>;
impl<'a, const O: u8> APPCLEAR_0_W<'a, O> {
    #[doc = "Clears the event for channel 0."]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(APPCLEAR_0_AW::CLEAR)
    }
}
#[doc = "Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum APPCLEAR_1_AW {
    #[doc = "1: Clears the event for channel 1."]
    CLEAR = 1,
}
impl From<APPCLEAR_1_AW> for bool {
    #[inline(always)]
    fn from(variant: APPCLEAR_1_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `APPCLEAR_1` writer - Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel."]
pub type APPCLEAR_1_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, CTIAPPCLEAR_SPEC, APPCLEAR_1_AW, O>;
impl<'a, const O: u8> APPCLEAR_1_W<'a, O> {
    #[doc = "Clears the event for channel 1."]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(APPCLEAR_1_AW::CLEAR)
    }
}
#[doc = "Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum APPCLEAR_2_AW {
    #[doc = "1: Clears the event for channel 2."]
    CLEAR = 1,
}
impl From<APPCLEAR_2_AW> for bool {
    #[inline(always)]
    fn from(variant: APPCLEAR_2_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `APPCLEAR_2` writer - Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel."]
pub type APPCLEAR_2_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, CTIAPPCLEAR_SPEC, APPCLEAR_2_AW, O>;
impl<'a, const O: u8> APPCLEAR_2_W<'a, O> {
    #[doc = "Clears the event for channel 2."]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(APPCLEAR_2_AW::CLEAR)
    }
}
#[doc = "Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel.\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum APPCLEAR_3_AW {
    #[doc = "1: Clears the event for channel 3."]
    CLEAR = 1,
}
impl From<APPCLEAR_3_AW> for bool {
    #[inline(always)]
    fn from(variant: APPCLEAR_3_AW) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `APPCLEAR_3` writer - Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel."]
pub type APPCLEAR_3_W<'a, const O: u8> =
    crate::BitWriter<'a, u32, CTIAPPCLEAR_SPEC, APPCLEAR_3_AW, O>;
impl<'a, const O: u8> APPCLEAR_3_W<'a, O> {
    #[doc = "Clears the event for channel 3."]
    #[inline(always)]
    pub fn clear(self) -> &'a mut W {
        self.variant(APPCLEAR_3_AW::CLEAR)
    }
}
impl W {
    #[doc = "Bit 0 - Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel."]
    #[inline(always)]
    pub fn appclear_0(&mut self) -> APPCLEAR_0_W<0> {
        APPCLEAR_0_W::new(self)
    }
    #[doc = "Bit 1 - Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel."]
    #[inline(always)]
    pub fn appclear_1(&mut self) -> APPCLEAR_1_W<1> {
        APPCLEAR_1_W::new(self)
    }
    #[doc = "Bit 2 - Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel."]
    #[inline(always)]
    pub fn appclear_2(&mut self) -> APPCLEAR_2_W<2> {
        APPCLEAR_2_W::new(self)
    }
    #[doc = "Bit 3 - Sets the corresponding bits in the CTIAPPSET to 0. There is one bit of the register for each channel."]
    #[inline(always)]
    pub fn appclear_3(&mut self) -> APPCLEAR_3_W<3> {
        APPCLEAR_3_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "CTI Application Trigger Clear register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctiappclear](index.html) module"]
pub struct CTIAPPCLEAR_SPEC;
impl crate::RegisterSpec for CTIAPPCLEAR_SPEC {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [ctiappclear::W](W) writer structure"]
impl crate::Writable for CTIAPPCLEAR_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets CTIAPPCLEAR to value 0"]
impl crate::Resettable for CTIAPPCLEAR_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}