nrf5340_net_pac/cti_ns/
ctiintack.rs

1#[doc = "Register `CTIINTACK` writer"]
2pub struct W(crate::W<CTIINTACK_SPEC>);
3impl core::ops::Deref for W {
4    type Target = crate::W<CTIINTACK_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl core::ops::DerefMut for W {
11    #[inline(always)]
12    fn deref_mut(&mut self) -> &mut Self::Target {
13        &mut self.0
14    }
15}
16impl From<crate::W<CTIINTACK_SPEC>> for W {
17    #[inline(always)]
18    fn from(writer: crate::W<CTIINTACK_SPEC>) -> Self {
19        W(writer)
20    }
21}
22#[doc = "Processor debug request\n\nValue on reset: 0"]
23#[derive(Clone, Copy, Debug, PartialEq)]
24pub enum DEBUGREQ_AW {
25    #[doc = "1: Clears the ctitrigout."]
26    ACKNOWLEDGE = 1,
27}
28impl From<DEBUGREQ_AW> for bool {
29    #[inline(always)]
30    fn from(variant: DEBUGREQ_AW) -> Self {
31        variant as u8 != 0
32    }
33}
34#[doc = "Field `DEBUGREQ` writer - Processor debug request"]
35pub type DEBUGREQ_W<'a, const O: u8> = crate::BitWriter<'a, u32, CTIINTACK_SPEC, DEBUGREQ_AW, O>;
36impl<'a, const O: u8> DEBUGREQ_W<'a, O> {
37    #[doc = "Clears the ctitrigout."]
38    #[inline(always)]
39    pub fn acknowledge(self) -> &'a mut W {
40        self.variant(DEBUGREQ_AW::ACKNOWLEDGE)
41    }
42}
43#[doc = "Processor Restart\n\nValue on reset: 0"]
44#[derive(Clone, Copy, Debug, PartialEq)]
45pub enum CPURESTART_AW {
46    #[doc = "1: Clears the ctitrigout."]
47    ACKNOWLEDGE = 1,
48}
49impl From<CPURESTART_AW> for bool {
50    #[inline(always)]
51    fn from(variant: CPURESTART_AW) -> Self {
52        variant as u8 != 0
53    }
54}
55#[doc = "Field `CPURESTART` writer - Processor Restart"]
56pub type CPURESTART_W<'a, const O: u8> =
57    crate::BitWriter<'a, u32, CTIINTACK_SPEC, CPURESTART_AW, O>;
58impl<'a, const O: u8> CPURESTART_W<'a, O> {
59    #[doc = "Clears the ctitrigout."]
60    #[inline(always)]
61    pub fn acknowledge(self) -> &'a mut W {
62        self.variant(CPURESTART_AW::ACKNOWLEDGE)
63    }
64}
65#[doc = "N/A\n\nValue on reset: 0"]
66#[derive(Clone, Copy, Debug, PartialEq)]
67pub enum UNUSED0_AW {
68    #[doc = "1: Clears the ctitrigout."]
69    ACKNOWLEDGE = 1,
70}
71impl From<UNUSED0_AW> for bool {
72    #[inline(always)]
73    fn from(variant: UNUSED0_AW) -> Self {
74        variant as u8 != 0
75    }
76}
77#[doc = "Field `UNUSED0` writer - N/A"]
78pub type UNUSED0_W<'a, const O: u8> = crate::BitWriter<'a, u32, CTIINTACK_SPEC, UNUSED0_AW, O>;
79impl<'a, const O: u8> UNUSED0_W<'a, O> {
80    #[doc = "Clears the ctitrigout."]
81    #[inline(always)]
82    pub fn acknowledge(self) -> &'a mut W {
83        self.variant(UNUSED0_AW::ACKNOWLEDGE)
84    }
85}
86#[doc = "N/A\n\nValue on reset: 0"]
87#[derive(Clone, Copy, Debug, PartialEq)]
88pub enum UNUSED1_AW {
89    #[doc = "1: Clears the ctitrigout."]
90    ACKNOWLEDGE = 1,
91}
92impl From<UNUSED1_AW> for bool {
93    #[inline(always)]
94    fn from(variant: UNUSED1_AW) -> Self {
95        variant as u8 != 0
96    }
97}
98#[doc = "Field `UNUSED1` writer - N/A"]
99pub type UNUSED1_W<'a, const O: u8> = crate::BitWriter<'a, u32, CTIINTACK_SPEC, UNUSED1_AW, O>;
100impl<'a, const O: u8> UNUSED1_W<'a, O> {
101    #[doc = "Clears the ctitrigout."]
102    #[inline(always)]
103    pub fn acknowledge(self) -> &'a mut W {
104        self.variant(UNUSED1_AW::ACKNOWLEDGE)
105    }
106}
107#[doc = "N/A\n\nValue on reset: 0"]
108#[derive(Clone, Copy, Debug, PartialEq)]
109pub enum UNUSED2_AW {
110    #[doc = "1: Clears the ctitrigout."]
111    ACKNOWLEDGE = 1,
112}
113impl From<UNUSED2_AW> for bool {
114    #[inline(always)]
115    fn from(variant: UNUSED2_AW) -> Self {
116        variant as u8 != 0
117    }
118}
119#[doc = "Field `UNUSED2` writer - N/A"]
120pub type UNUSED2_W<'a, const O: u8> = crate::BitWriter<'a, u32, CTIINTACK_SPEC, UNUSED2_AW, O>;
121impl<'a, const O: u8> UNUSED2_W<'a, O> {
122    #[doc = "Clears the ctitrigout."]
123    #[inline(always)]
124    pub fn acknowledge(self) -> &'a mut W {
125        self.variant(UNUSED2_AW::ACKNOWLEDGE)
126    }
127}
128#[doc = "N/A\n\nValue on reset: 0"]
129#[derive(Clone, Copy, Debug, PartialEq)]
130pub enum UNUSED3_AW {
131    #[doc = "1: Clears the ctitrigout."]
132    ACKNOWLEDGE = 1,
133}
134impl From<UNUSED3_AW> for bool {
135    #[inline(always)]
136    fn from(variant: UNUSED3_AW) -> Self {
137        variant as u8 != 0
138    }
139}
140#[doc = "Field `UNUSED3` writer - N/A"]
141pub type UNUSED3_W<'a, const O: u8> = crate::BitWriter<'a, u32, CTIINTACK_SPEC, UNUSED3_AW, O>;
142impl<'a, const O: u8> UNUSED3_W<'a, O> {
143    #[doc = "Clears the ctitrigout."]
144    #[inline(always)]
145    pub fn acknowledge(self) -> &'a mut W {
146        self.variant(UNUSED3_AW::ACKNOWLEDGE)
147    }
148}
149#[doc = "N/A\n\nValue on reset: 0"]
150#[derive(Clone, Copy, Debug, PartialEq)]
151pub enum UNUSED4_AW {
152    #[doc = "1: Clears the ctitrigout."]
153    ACKNOWLEDGE = 1,
154}
155impl From<UNUSED4_AW> for bool {
156    #[inline(always)]
157    fn from(variant: UNUSED4_AW) -> Self {
158        variant as u8 != 0
159    }
160}
161#[doc = "Field `UNUSED4` writer - N/A"]
162pub type UNUSED4_W<'a, const O: u8> = crate::BitWriter<'a, u32, CTIINTACK_SPEC, UNUSED4_AW, O>;
163impl<'a, const O: u8> UNUSED4_W<'a, O> {
164    #[doc = "Clears the ctitrigout."]
165    #[inline(always)]
166    pub fn acknowledge(self) -> &'a mut W {
167        self.variant(UNUSED4_AW::ACKNOWLEDGE)
168    }
169}
170#[doc = "N/A\n\nValue on reset: 0"]
171#[derive(Clone, Copy, Debug, PartialEq)]
172pub enum UNUSED5_AW {
173    #[doc = "1: Clears the ctitrigout."]
174    ACKNOWLEDGE = 1,
175}
176impl From<UNUSED5_AW> for bool {
177    #[inline(always)]
178    fn from(variant: UNUSED5_AW) -> Self {
179        variant as u8 != 0
180    }
181}
182#[doc = "Field `UNUSED5` writer - N/A"]
183pub type UNUSED5_W<'a, const O: u8> = crate::BitWriter<'a, u32, CTIINTACK_SPEC, UNUSED5_AW, O>;
184impl<'a, const O: u8> UNUSED5_W<'a, O> {
185    #[doc = "Clears the ctitrigout."]
186    #[inline(always)]
187    pub fn acknowledge(self) -> &'a mut W {
188        self.variant(UNUSED5_AW::ACKNOWLEDGE)
189    }
190}
191impl W {
192    #[doc = "Bit 0 - Processor debug request"]
193    #[inline(always)]
194    pub fn debugreq(&mut self) -> DEBUGREQ_W<0> {
195        DEBUGREQ_W::new(self)
196    }
197    #[doc = "Bit 1 - Processor Restart"]
198    #[inline(always)]
199    pub fn cpurestart(&mut self) -> CPURESTART_W<1> {
200        CPURESTART_W::new(self)
201    }
202    #[doc = "Bit 2 - N/A"]
203    #[inline(always)]
204    pub fn unused0(&mut self) -> UNUSED0_W<2> {
205        UNUSED0_W::new(self)
206    }
207    #[doc = "Bit 3 - N/A"]
208    #[inline(always)]
209    pub fn unused1(&mut self) -> UNUSED1_W<3> {
210        UNUSED1_W::new(self)
211    }
212    #[doc = "Bit 4 - N/A"]
213    #[inline(always)]
214    pub fn unused2(&mut self) -> UNUSED2_W<4> {
215        UNUSED2_W::new(self)
216    }
217    #[doc = "Bit 5 - N/A"]
218    #[inline(always)]
219    pub fn unused3(&mut self) -> UNUSED3_W<5> {
220        UNUSED3_W::new(self)
221    }
222    #[doc = "Bit 6 - N/A"]
223    #[inline(always)]
224    pub fn unused4(&mut self) -> UNUSED4_W<6> {
225        UNUSED4_W::new(self)
226    }
227    #[doc = "Bit 7 - N/A"]
228    #[inline(always)]
229    pub fn unused5(&mut self) -> UNUSED5_W<7> {
230        UNUSED5_W::new(self)
231    }
232    #[doc = "Writes raw bits to the register."]
233    #[inline(always)]
234    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
235        self.0.bits(bits);
236        self
237    }
238}
239#[doc = "CTI Interrupt Acknowledge 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 [ctiintack](index.html) module"]
240pub struct CTIINTACK_SPEC;
241impl crate::RegisterSpec for CTIINTACK_SPEC {
242    type Ux = u32;
243}
244#[doc = "`write(|w| ..)` method takes [ctiintack::W](W) writer structure"]
245impl crate::Writable for CTIINTACK_SPEC {
246    type Writer = W;
247}
248#[doc = "`reset()` method sets CTIINTACK to value 0"]
249impl crate::Resettable for CTIINTACK_SPEC {
250    #[inline(always)]
251    fn reset_value() -> Self::Ux {
252        0
253    }
254}